Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 30, 2008, 5:38:03 AM (16 years ago)
Author:
landauf
Message:
  • added set and tset functions to the ConfigValueContainer to (temporary) set a config-value to a new value
  • ConfigValueContainer uses now the functions of MultiTypeMath to convert and assign values
  • added some errorhandling to the CommandExecutor in case there are not enough parameters when executing the command
  • added updateConfigValues function to Identifier
  • added addTime and removeTime functions to the Timer
  • some changes in Executor to allow adding description and default-values when using the ConsoleCommand macro
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core2/src/orxonox/tools/Timer.h

    r871 r957  
    8383            /** @brief Returns true if the Timer is active (= not stoped, not paused). @return True = Time is active */
    8484            inline bool isActive() const { return this->bActive_; }
     85            /** @brief Gives the Timer some extra time. @param time The amount of extra time in seconds */
     86            inline void addTime(float time) { this->time_ += time; }
     87            /** @brief Decreases the remaining time of the Timer. @param time The amount of time to remove */
     88            inline void removeTime(float time) { this->time_ -= time; }
    8589
    8690        protected:
Note: See TracChangeset for help on using the changeset viewer.