Changeset 8879 in orxonox.OLD for branches/single_player_map/src/world_entities/door.cc
- Timestamp:
- Jun 28, 2006, 5:55:06 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/world_entities/door.cc
r8878 r8879 21 21 #include "util/loading/load_param.h" 22 22 23 24 23 #include "interactive_model.h" 24 #include "md2/md2Model.h" 25 25 26 26 #include "door.h" … … 57 57 this->setClassID(CL_DOOR, "Door"); 58 58 this->toList(OM_COMMON); 59 60 this->bLocked = false; 59 61 } 60 62 … … 70 72 .describe("sets the action radius of the door") 71 73 .defaultValues(1); 72 73 74 } 74 75 … … 77 78 * sets the animatin of this entity 78 79 */ 79 void Door::setAnimation(int animationIndex, int animPlaybackMode)80 void Door::setAnimation(int firstFrame, int lastFrame, int fps, int bStoppable, int animPlayback) 80 81 { 81 82 if( likely(this->getModel(0) != NULL)) 82 ((InteractiveModel*)this->getModel(0))->setAnimation(animationIndex, animPlaybackMode); 83 ((InteractiveModel*)this->getModel(0))->setAnimation(firstFrame, lastFrame, fps, bStoppable, animPlayback); 84 85 83 86 } 84 87 … … 105 108 return; 106 109 107 // this->setAnimation();110 this->setAnimation(0, 1, 5, 0, MD2_ANIM_ONCE); 108 111 109 112 }
Note: See TracChangeset
for help on using the changeset viewer.