Changeset 3355 for code/branches/resource/src/core/GameState.h
- Timestamp:
- Jul 26, 2009, 2:15:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource/src/core/GameState.h
r3280 r3355 45 45 /** 46 46 @brief 47 Helper class to group construction parameters for better genericity.48 */49 struct GameStateConstrParams50 {51 std::string name;52 bool bIgnoreTickTime;53 };54 55 /**56 @brief57 47 An implementation of a tree to manage game states. 58 48 This leads to a certain hierarchy that is created at runtime. … … 87 77 88 78 public: 89 GameState(const GameState ConstrParams& params);79 GameState(const GameStateInfo& info); 90 80 virtual ~GameState(); 91 81 92 const std::string& getName() const { return name_; } 93 State getActivity() const { return this->activity_; } 94 GameState* getParent() const { return this->parent_; } 95 96 bool ignoreTickTime() const { return this->bIgnoreTickTime_; } 82 const std::string& getName() const; 83 State getActivity() const { return activity_; } 84 GameState* getParent() const { return parent_; } 85 const GameStateInfo& getInfo() const { return info_; } 97 86 98 87 void addChild(GameState* state); … … 111 100 void updateInternal(const Clock& time); 112 101 113 const std::string name_;102 const GameStateInfo& info_; 114 103 State activity_; 115 const bool bIgnoreTickTime_;116 104 GameState* parent_; 117 105 std::map<std::string, GameState*> children_;
Note: See TracChangeset
for help on using the changeset viewer.