- Timestamp:
- Dec 7, 2015, 3:14:40 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15/src/orxonox/controllers/ActionpointController.h
r10934 r10935 170 170 bool getDefaultPatrol () 171 171 { return this->bDefaultPatrol_; } 172 // Trigger interface 173 // bool stop(bool bTriggered, BaseObject* trigger); 174 // bool go(bool bTriggered, BaseObject* trigger); 175 // virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode); 172 176 173 177 174 virtual void stayNearProtect(); … … 243 240 void nextActionpoint(); 244 241 //----[Actionpoint methods]---- 245 bool bFirstTick_; 246 247 /* void setSpawners(); 248 Vector3 bestHealthPickup (float searchRadius); 249 // Point closestPickup(PickupType::Value pickupType); 250 std::multimap <int, std::pair<PickupSpawner*, bool> > healthSpawners_; 251 std::multimap <int, std::pair<PickupSpawner*, bool> > damageSpawners_; 252 std::multimap <int, std::pair<PickupSpawner*, bool> > speedSpawners_; 253 */ 254 bool bActionCalled_; 255 bool bManeuverCalled_; 242 256 243 bool bDefaultFightAll_; 257 244 258 bool bActive_;259 245 bool bPatrolling_; 260 246 bool bDefaultPatrol_; 261 247 bool stop_; 262 static int sTicks_; 263 static int nextActionpointControllerId_; 264 int actionpointControllerId_; 265 int ticks_; 248 static unsigned int sTicks_; //<! a hack? I don't want action() and maneuver() to be called multiple times in a tick, so I keep 249 //<! track of ticks and if current tick is "assigned" to this object, than I call maneuver()/action() 250 static unsigned int nextActionpointControllerId_; //<! if level has 16 ActionpointControllers, than this variable equals to 17 after first tick 251 unsigned int actionpointControllerId_; //<! integer from 0 to nextActionpointControllerId_, different for every ActionpointController in level 252 unsigned int ticks_; //<! local tick counter 266 253 267 254
Note: See TracChangeset
for help on using the changeset viewer.










