Fixed pathfinding for usage with Rule::findTarget()
Fixed Entity::target being public
This commit is contained in:
parent
08e922b0d4
commit
4ab83f1124
4 changed files with 23 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue