Changeset 2817 for code/branches/gui/src/core/RootGameState.cc
- Timestamp:
- Mar 21, 2009, 10:17:59 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/core/RootGameState.cc
r2815 r2817 36 36 { 37 37 RootGameState::RootGameState(const std::string& name) 38 : GameState <GameStateBase>(name)38 : GameState(name) 39 39 , stateRequest_("") 40 40 { … … 50 50 the method can assume certain things to be granted (like 'this' is always active). 51 51 */ 52 void RootGameState::makeTransition(GameState Base* source, GameStateBase* destination)52 void RootGameState::makeTransition(GameState* source, GameState* destination) 53 53 { 54 54 if (source != 0) … … 65 65 66 66 // Check for 'destination' in the children map first 67 std::map<GameState Base*, GameStateBase*>::const_iterator it67 std::map<GameState*, GameState*>::const_iterator it 68 68 = this->grandchildrenToChildren_.find(destination); 69 69 if (it != this->grandchildrenToChildren_.end()) 70 70 { 71 OrxAssert(static_cast<GameState Base*>(it->second) != 0,71 OrxAssert(static_cast<GameState*>(it->second) != 0, 72 72 "There was a mix with RootGameState and GameState, could not cast."); 73 GameState Base* child = static_cast<GameStateBase*>(it->second);73 GameState* child = static_cast<GameState*>(it->second); 74 74 // child state. Don't use 'state', might be a grandchild! 75 75 this->activeChild_ = child; … … 85 85 void RootGameState::gotoState(const std::string& name) 86 86 { 87 GameState Base* request = getState(name);87 GameState* request = getState(name); 88 88 if (request) 89 89 { 90 GameState Base* current = getCurrentState();90 GameState* current = getCurrentState(); 91 91 if (current) 92 92 {
Note: See TracChangeset
for help on using the changeset viewer.