Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2009, 9:57:52 PM (15 years ago)
Author:
landauf
Message:

merged gametypes branch back to trunk

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/orxonox/objects/gametypes/Gametype.h

    r2890 r3033  
    128128                { return this->players_.size(); }
    129129
     130            virtual void addTime(float t);
     131            virtual void removeTime(float t);
     132
     133            inline  void startTimer()
     134            {
     135                this->time_ = this->timeLimit_;
     136                this->timerIsActive_ = true;
     137            }
     138
     139            inline void stopTimer()
     140              { this->timerIsActive_ = false; }
     141
     142            inline float getTime()
     143              { return this->time_; }
     144
     145            inline bool getTimerIsActive()
     146              { return timerIsActive_; }
     147
     148            inline void setTimeLimit(float t)
     149              { this->timeLimit_ = t; }
     150
     151            virtual void resetTimer();
     152            virtual void resetTimer(float t);
     153
    130154        protected:
    131155            virtual SpawnPoint* getBestSpawnPoint(PlayerInfo* player) const;
     
    134158            virtual void checkStart();
    135159            virtual void spawnPlayer(PlayerInfo* player);
     160            virtual void spawnPlayerAsDefaultPawn(PlayerInfo* player);
    136161            virtual void spawnPlayersIfRequested();
    137162            virtual void spawnDeadPlayersIfRequested();
     
    141166            bool bAutoStart_;
    142167            bool bForceSpawn_;
     168
     169            float time_;
     170            float timeLimit_;
     171            bool timerIsActive_;
    143172
    144173            float initialStartCountdown_;
Note: See TracChangeset for help on using the changeset viewer.