Changeset 3238 for code/branches/core4/src/core/GameState.h
- Timestamp:
- Jun 28, 2009, 1:47:57 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/core/GameState.h
r3196 r3238 77 77 78 78 public: 79 GameState(const std::string& name, bool countTicktime = true);79 GameState(const std::string& name, bool ignoreTicktime = false); 80 80 virtual ~GameState(); 81 81 … … 84 84 GameState* getParent() const { return this->parent_; } 85 85 86 bool getCountTickTime() const { return this->bCountTickTime_; }86 bool ignoreTickTime() const { return this->bIgnoreTickTime_; } 87 87 88 88 void addChild(GameState* state); … … 90 90 91 91 protected: 92 virtual void activate() = 0;93 virtual void deactivate() = 0;94 virtual void update(const Clock& time) = 0;92 virtual void activate() { } 93 virtual void deactivate() { } 94 virtual void update(const Clock& time) { } 95 95 96 96 private: … … 103 103 const std::string name_; 104 104 State activity_; 105 const bool b CountTickTime_;105 const bool bIgnoreTickTime_; 106 106 GameState* parent_; 107 107 std::map<std::string, GameState*> children_;
Note: See TracChangeset
for help on using the changeset viewer.