Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 3, 2006, 12:19:30 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/creatures/md2_creature.cc

    r8724 r9869  
    2222#include "objModel.h"
    2323#include "md2/md2Model.h"
    24 #include "util/loading/resource_manager.h"
    2524#include "state.h"
    2625
     
    3736#include "debug.h"
    3837
    39 CREATE_FACTORY(MD2Creature, CL_MD2_CREATURE);
     38#include "class_id_DEPRECATED.h"
     39ObjectListDefinitionID(MD2Creature, CL_MD2_CREATURE);
     40CREATE_FACTORY(MD2Creature);
    4041
    4142/**
     
    8687  PRINTF(4)("MD2CREATURE INIT\n");
    8788  //  this->setRelDir(Quaternion(M_PI, Vector(1,0,0)));
    88   this->setClassID(CL_MD2_CREATURE, "MD2Creature");
     89  this->registerObject(this, MD2Creature::_objectList);
    8990
    9091  this->toList(OM_GROUP_01);
     
    9596  Weapon* wpLeft = new TestGun(1);
    9697  wpLeft->setName("testGun Left");
    97   Weapon* cannon = dynamic_cast<Weapon*>(Factory::fabricate(CL_CANNON));
     98  Weapon* cannon = dynamic_cast<Weapon*>(Factory::fabricate("Cannon"));
    9899
    99100  cannon->setName("BFG");
     
    112113  this->cameraConnNode.addChild(State::getCameraNode());
    113114  State::getCameraTargetNode()->setRelCoor(10,0,0);
    114  
     115
    115116
    116117
Note: See TracChangeset for help on using the changeset viewer.