Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 25, 2006, 9:58:58 PM (18 years ago)
Author:
bensch
Message:

some more WorldEntities adapted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/world_entities/npcs/npc_test.cc

    r9235 r9707  
    3030#include "effects/explosion.h"
    3131
     32#include "class_id.h"
    3233CREATE_FACTORY(NPC2, CL_NPC_TEST2);
    33 
     34NewObjectListDefinitionID(NPC2, CL_NPC_TEST2);
    3435
    3536NPC2::NPC2(const TiXmlElement* root)
    3637  : NPC(NULL)
    3738{
    38   this->setClassID(CL_NPC_TEST2, "NPC2");
     39  this->registerObject(this, NPC2::_objectList);
    3940
    4041  if ((float)rand()/RAND_MAX > .5f)
Note: See TracChangeset for help on using the changeset viewer.