Changeset 3355 for code/branches/resource/src/core/GameState.cc
- Timestamp:
- Jul 26, 2009, 2:15:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource/src/core/GameState.cc
r3280 r3355 38 38 #include "util/Exception.h" 39 39 #include "util/OrxAssert.h" 40 #include "Game.h" 40 41 41 42 namespace orxonox … … 45 46 Constructor only initialises variables and sets the name permanently. 46 47 */ 47 GameState::GameState(const GameStateConstrParams& params) 48 : name_(params.name) 49 , bIgnoreTickTime_(params.bIgnoreTickTime) 48 GameState::GameState(const GameStateInfo& info) 49 : info_(info) 50 50 , parent_(0) 51 51 { … … 65 65 { 66 66 OrxAssert(this->activity_.active == false, "Deleting an active GameState is a very bad idea.."); 67 } 68 69 const std::string& GameState::getName() const 70 { 71 return info_.stateName; 67 72 } 68 73 … … 107 112 else 108 113 { 109 ThrowException(GameState, "Game state '" + name_+ "' doesn't have a child named '"114 ThrowException(GameState, "Game state '" + this->getName() + "' doesn't have a child named '" 110 115 + state->getName() + "'."); 111 116 }
Note: See TracChangeset
for help on using the changeset viewer.