Changeset 6217 in orxonox.OLD for branches/christmas_branche/src/world_entities
- Timestamp:
- Dec 21, 2005, 11:52:49 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/christmas_branche/src/world_entities/test_entity.cc
r6207 r6217 20 20 #include "executor/executor.h" 21 21 #include "factory.h" 22 #include "load_param.h" 22 23 23 24 #include "test_entity.h" … … 69 70 { 70 71 static_cast<WorldEntity*>(this)->loadParams(root); 72 73 LoadParam(root, "md2animation", this, TestEntity, setAnim) 74 .describe("sets the animation of the md2 model") 75 .defaultValues(1, 1); 76 71 77 } 72 78 73 79 74 80 void TestEntity::setAnim(int animationIndex) 75 {} 81 { 82 if( likely(this->getModel(0) != NULL)) 83 ((MD2Model*)this->getModel(0))->setAnim(animationIndex); 84 } 76 85 77 86
Note: See TracChangeset
for help on using the changeset viewer.