- Timestamp:
- Dec 13, 2008, 10:54:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy2/src/orxonox/objects/gametypes/Gametype.h
r2171 r2428 38 38 #include "objects/worldentities/ControllableEntity.h" 39 39 #include "objects/Tickable.h" 40 #include "objects/infos/GametypeInfo.h" 40 41 41 42 namespace orxonox … … 60 61 virtual ~Gametype() {} 61 62 63 void setConfigValues(); 64 62 65 virtual void tick(float dt); 63 66 67 inline const GametypeInfo* getGametypeInfo() const 68 { return &this->gtinfo_; } 69 64 70 inline bool hasStarted() const 65 { return this-> bStarted_; }71 { return this->gtinfo_.bStarted_; } 66 72 inline bool hasEnded() const 67 { return this-> bEnded_; }73 { return this->gtinfo_.bEnded_; } 68 74 69 75 virtual void start(); … … 88 94 89 95 inline bool isStartCountdownRunning() const 90 { return this-> bStartCountdownRunning_; }96 { return this->gtinfo_.bStartCountdownRunning_; } 91 97 inline float getStartCountdown() const 92 { return this-> startCountdown_; }98 { return this->gtinfo_.startCountdown_; } 93 99 94 100 private: … … 104 110 void spawnDeadPlayersIfRequested(); 105 111 106 bool bStarted_;107 bool bEnded_; 112 GametypeInfo gtinfo_; 113 108 114 bool bAutoStart_; 109 115 bool bForceSpawn_; 110 116 111 117 float initialStartCountdown_; 112 float startCountdown_;113 bool bStartCountdownRunning_;114 118 115 119 std::map<PlayerInfo*, PlayerState::Enum> players_;
Note: See TracChangeset
for help on using the changeset viewer.