Changeset 9051 in orxonox.OLD for branches/single_player_map/src/world_entities/npcs
- Timestamp:
 - Jul 3, 2006, 5:15:21 PM (19 years ago)
 - Location:
 - branches/single_player_map/src/world_entities/npcs
 - Files:
 - 
          
- 2 edited
 
- 
          generic_npc.cc (modified) (1 diff)
 - 
          generic_npc.h (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
branches/single_player_map/src/world_entities/npcs/generic_npc.cc
r9043 r9051 181 181 void GenericNPC::stop() 182 182 { 183 184 } 185 186 187 183 this->animationStack.push(this->behaviourList); 184 this->behaviourList = new std::list<GenericNPC::Anim>; 185 } 186 187 188 /** 189 * continue the generic animation 190 */ 191 void GenericNPC::resume() 192 { 193 delete this->behaviourList; 194 this->behaviourList = this->animationStack.top(); 195 this->animationStack.pop(); 196 } 197 198 199 /** 200 * each animation has to be initialized here 201 */ 188 202 void GenericNPC::initNPC() 189 203 {  - 
        
branches/single_player_map/src/world_entities/npcs/generic_npc.h
r9042 r9051 55 55 /* stopping the movement */ 56 56 void stop(); 57 void resume(); 57 58 void nextStep(); 58 59 … … 126 127 127 128 std::list<GenericNPC::Anim>* behaviourList; 128 std::stack<std::list<GenericNPC::Anim>* > animationStack;129 std::stack<std::list<GenericNPC::Anim>*> animationStack; 129 130 Vector destCoor; 130 131 Quaternion destDir;  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






