Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 17, 2009, 9:23:41 PM (15 years ago)
Author:
Aurelian
Message:

some fixes on the timer, visibility of checkpoint removed (done in the xml-file)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gametypes/src/orxonox/objects/gametypes/Gametype.h

    r2970 r2978  
    130130
    131131            inline  void startTimer()
    132               { this->timerIsActive_ = true; }
     132            {
     133                this->time_ = this->timeLimit_;
     134                this->timerIsActive_ = true;
     135            }
    133136
    134137            inline void stopTimer()
     
    140143            inline bool getTimerIsActive()
    141144              { return timerIsActive_; }
     145
     146            inline void setTimeLimit(float t)
     147              { this->timeLimit_ = t; }
    142148
    143149            virtual void resetTimer();
Note: See TracChangeset for help on using the changeset viewer.