You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
379 B
29 lines
379 B
package mightypork.rogue.world.entity;
|
|
|
|
|
|
import mightypork.rogue.world.Coord;
|
|
|
|
|
|
public class SimpleEntityPathFindingContext extends EntityPathfindingContext {
|
|
|
|
public SimpleEntityPathFindingContext(Entity entity)
|
|
{
|
|
super(entity);
|
|
}
|
|
|
|
|
|
@Override
|
|
public int getCost(Coord from, Coord to)
|
|
{
|
|
return 10;
|
|
}
|
|
|
|
|
|
@Override
|
|
public int getMinCost()
|
|
{
|
|
return 10;
|
|
}
|
|
|
|
|
|
}
|
|
|