26 #ifndef SAGA2_PATROL_H 27 #define SAGA2_PATROL_H 32 class PatrolRouteList;
33 extern PatrolRouteList **patrolRouteList;
53 int16 vertices()
const {
58 const TilePoint &operator[](int16 index)
const;
72 friend void initPatrolRoutes();
73 friend void cleanupPatrolRoutes();
89 return *_routes[index];
101 enum PatrolRouteIteratorFlags {
105 kPatrolRouteReverse = (1 << 0),
106 kPatrolRouteAlternate = (1 << 1),
107 kPatrolRouteRepeat = (1 << 2),
108 kPatrolRouteRandom = (1 << 3),
111 kPatrolRouteInAlternate = (1 << 4)
137 bool isRepeating()
const {
138 return _flags & (kPatrolRouteRepeat | kPatrolRouteRandom);
142 int16 wayPointNum()
const {
154 return _routeNo == iter._routeNo && _vertexNo == iter._vertexNo
155 && _mapNum == iter._mapNum && _flags == iter._flags;
164 void initPatrolRoutes();
167 void cleanupPatrolRoutes();
Definition: memstream.h:194
Definition: tcoords.h:127