Changeset 9869 in orxonox.OLD for trunk/src/world_entities/creatures/md2_creature.cc
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/creatures/md2_creature.cc
r8724 r9869 22 22 #include "objModel.h" 23 23 #include "md2/md2Model.h" 24 #include "util/loading/resource_manager.h"25 24 #include "state.h" 26 25 … … 37 36 #include "debug.h" 38 37 39 CREATE_FACTORY(MD2Creature, CL_MD2_CREATURE); 38 #include "class_id_DEPRECATED.h" 39 ObjectListDefinitionID(MD2Creature, CL_MD2_CREATURE); 40 CREATE_FACTORY(MD2Creature); 40 41 41 42 /** … … 86 87 PRINTF(4)("MD2CREATURE INIT\n"); 87 88 // this->setRelDir(Quaternion(M_PI, Vector(1,0,0))); 88 this-> setClassID(CL_MD2_CREATURE, "MD2Creature");89 this->registerObject(this, MD2Creature::_objectList); 89 90 90 91 this->toList(OM_GROUP_01); … … 95 96 Weapon* wpLeft = new TestGun(1); 96 97 wpLeft->setName("testGun Left"); 97 Weapon* cannon = dynamic_cast<Weapon*>(Factory::fabricate( CL_CANNON));98 Weapon* cannon = dynamic_cast<Weapon*>(Factory::fabricate("Cannon")); 98 99 99 100 cannon->setName("BFG"); … … 112 113 this->cameraConnNode.addChild(State::getCameraNode()); 113 114 State::getCameraTargetNode()->setRelCoor(10,0,0); 114 115 115 116 116 117
Note: See TracChangeset
for help on using the changeset viewer.