Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 7, 2015, 8:42:03 PM (10 years ago)
Author:
gania
Message:

converted hack to a legal class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/campaignHS15/src/orxonox/controllers/ActionpointController.h

    r10946 r10953  
    3535#include "../modules/pickup/PickupSpawner.h"
    3636#include <map>
     37
     38#include <boost/shared_ptr.hpp>
    3739
    3840
     
    246248                bool bDefaultPatrol_;
    247249                bool stop_;
    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
    252250                unsigned int ticks_;     //<! local tick counter           
     251
    253252    };
    254253}
Note: See TracChangeset for help on using the changeset viewer.