Changeset 9260 for code/trunk/src/modules/gametypes/SpaceRaceManager.h
- Timestamp:
- Jun 2, 2012, 10:34:48 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/gametypes/SpaceRaceManager.h
r9016 r9260 46 46 namespace orxonox 47 47 { 48 /**49 @brief50 The SpaceRaceManager class controls a space race level, where the player has to reach check points in a given order.51 */48 /** 49 @brief 50 The SpaceRaceManager class controls a space race level, where the player has to reach check points in a given order. 51 */ 52 52 class _GametypesExport SpaceRaceManager : public BaseObject, public Tickable 53 53 { 54 54 friend class RaceCheckPoint; 55 55 56 56 public: 57 57 SpaceRaceManager(BaseObject* creator); 58 58 virtual ~SpaceRaceManager() ; 59 59 60 void XMLPort(Element& xmlelement, XMLPort::Mode mode); 61 int getIndex(RaceCheckPoint* r); 60 void XMLPort(Element& xmlelement, XMLPort::Mode mode); 61 62 62 void addCheckpoint(RaceCheckPoint* checkpoint); 63 63 RaceCheckPoint* getCheckpoint(unsigned int index) const; 64 64 int getIndex(RaceCheckPoint* checkpoint); 65 65 66 void checkpointReached(RaceCheckPoint* check, PlayerInfo* player); 66 67 67 68 void tick(float dt); 68 69 69 70 protected: 70 void setRadVis(PlayerInfo* player, bool b );//sets RadarVisibility of the checkpoints the player can reach.71 71 void setRadVis(PlayerInfo* player, bool bVisible); ///< sets RadarVisibility of the checkpoints the player can reach. 72 72 73 private: 73 74 std::vector<RaceCheckPoint*> checkpoints_; 74 bool firstcheckpointvisible_;//true if the first check point is visible. 75 75 bool firstcheckpointvisible_; ///< true if the first check point is visible. 76 76 }; 77 77 }
Note: See TracChangeset
for help on using the changeset viewer.