
com.almasb.fxgl.pathfinding.Pathfinder Maven / Gradle / Ivy
/*
* FXGL - JavaFX Game Library. The MIT License (MIT).
* Copyright (c) AlmasB ([email protected]).
* See LICENSE for details.
*/
package com.almasb.fxgl.pathfinding;
import com.almasb.fxgl.core.collection.grid.Cell;
import java.util.List;
/**
* @author Almas Baimagambetov ([email protected])
*/
public interface Pathfinder {
/**
* Empty list is returned if no path exists.
*
* @return a list of cells from source (excl.) to target (incl.)
*/
List findPath(int sourceX, int sourceY, int targetX, int targetY);
/**
* Empty list is returned if no path exists.
*
* @return a list of cells from source (excl.) to target (incl.) while ignoring busyCells
*/
List findPath(int sourceX, int sourceY, int targetX, int targetY, List busyCells);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy