Changeset 9709 in orxonox.OLD for branches/new_class_id/src/world_entities/creatures/md2_creature.cc
- Timestamp:
- Aug 31, 2006, 10:51:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/world_entities/creatures/md2_creature.cc
r8724 r9709 37 37 #include "debug.h" 38 38 39 CREATE_FACTORY(MD2Creature, CL_MD2_CREATURE); 39 #include "class_id.h" 40 NewObjectListDefinitionID(MD2Creature, CL_MD2_CREATURE); 41 CREATE_FACTORY(MD2Creature); 40 42 41 43 /** … … 86 88 PRINTF(4)("MD2CREATURE INIT\n"); 87 89 // this->setRelDir(Quaternion(M_PI, Vector(1,0,0))); 88 this-> setClassID(CL_MD2_CREATURE, "MD2Creature");90 this->registerObject(this, MD2Creature::_objectList); 89 91 90 92 this->toList(OM_GROUP_01); … … 95 97 Weapon* wpLeft = new TestGun(1); 96 98 wpLeft->setName("testGun Left"); 97 Weapon* cannon = dynamic_cast<Weapon*>(Factory::fabricate( CL_CANNON));99 Weapon* cannon = dynamic_cast<Weapon*>(Factory::fabricate("Cannon")); 98 100 99 101 cannon->setName("BFG"); … … 112 114 this->cameraConnNode.addChild(State::getCameraNode()); 113 115 State::getCameraTargetNode()->setRelCoor(10,0,0); 114 116 115 117 116 118
Note: See TracChangeset
for help on using the changeset viewer.