Fixed pathfinding for usage with Rule::findTarget()

Fixed Entity::target being public
This commit is contained in:
trotFunky 2019-06-10 01:58:14 +02:00
parent 08e922b0d4
commit 4ab83f1124
4 changed files with 23 additions and 16 deletions

View file

@ -79,6 +79,11 @@ State Entity::getState() const
return currentState;
}
pro_maat::GridPos Entity::getTarget() const
{
return target;
}
const pro_maat::GridPos Entity::getPosition() const
{
// Safe : size is a multiple of pro_maat::pixelsPerUnit