#include <path.h>
Public Member Functions | |
| Path () | |
| bool | IsEmpty () const |
| void | PushDirection (MapEnums::Direction direction) |
| MapEnums::Direction | PopDirection () |
| void | GetNextDirection (MapEnums::Direction &direction, bool &rotating_left) const |
| void | GetNextPosition (MapPosition3D &position) const |
| bool | IsInDestination (const MapPosition3D &position, const MapSize &size) |
| bool | IsFinished () |
| void | SetFinished (bool finished) |
| bool | IsReachable () |
| void | SetReachable (bool reachable) |
Public Attributes | |
| MapArea | dest_area |
| MapEnums::Segment | dest_segment |
| Ref< Unit > | dest_unit |
Protected Attributes | |
| bool | finished |
| bool | reachable |
| list < MapEnums::Direction > | steps |
Private Member Functions | |
| void | UpdateDestination () |
| Path::Path | ( | ) | [inline] |
| bool Path::IsEmpty | ( | ) | const [inline] |
| void Path::PushDirection | ( | MapEnums::Direction | direction | ) | [inline] |
| MapEnums::Direction Path::PopDirection | ( | ) | [inline] |
| void Path::GetNextDirection | ( | MapEnums::Direction & | direction, | |
| bool & | rotating_left | |||
| ) | const [inline] |
| void Path::GetNextPosition | ( | MapPosition3D & | position | ) | const [inline] |
| bool Path::IsInDestination | ( | const MapPosition3D & | position, | |
| const MapSize & | size | |||
| ) |
| bool Path::IsFinished | ( | ) |
| void Path::SetFinished | ( | bool | finished | ) | [inline] |
| bool Path::IsReachable | ( | ) |
| void Path::SetReachable | ( | bool | reachable | ) | [inline] |
| void Path::UpdateDestination | ( | ) | [inline, private] |
bool Path::finished [protected] |
bool Path::reachable [protected] |
list<MapEnums::Direction> Path::steps [protected] |
1.5.3