Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10545 in orxonox.OLD for trunk/src/world_entities/npcs/npc.cc


Ignore:
Timestamp:
Jan 31, 2007, 5:39:05 AM (17 years ago)
Author:
marcscha
Message:

pirate explosion fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/npcs/npc.cc

    r10542 r10545  
    7373                        ->addMethod("setAI", Executor1<NPC, lua_State*, bool>(&NPC::setAI))
    7474                        ->addMethod("setVisibility", Executor1<WorldEntity, lua_State*, bool>(&WorldEntity::setVisibility))
    75                         ->addMethod("destroy", Executor0<NPC, lua_State*/*, WorldEntity**/>(&NPC::destroy))
     75                        ->addMethod("destroy", Executor0<NPC, lua_State*/*, WorldEntity**/>(&NPC::destroyThis))
    7676                       );
    7777
     
    8181  this->registerObject(this, NPC::_objectList);
    8282
    83   this->toList(OM_GROUP_01);
     83  this->toList(OM_GROUP_00);
    8484  this->bAIEnabled = false;
    8585
     
    262262}
    263263
    264 void NPC::destroy( /*WorldEntity* killer*/ )
     264void NPC::destroy( WorldEntity* killer )
    265265{
    266266
     
    314314  //}
    315315
     316  this->toList(OM_NULL);
     317  this->setAI( false);
     318  this->setAbsCoor(-10000,-10000,-10000);
     319 
     320
    316321}
    317322
     
    430435void NPC::hit( float damage, WorldEntity* killer)
    431436{
     437  this->destroy( killer);
    432438  this->setDamage(killer->getDamage());
    433439}
Note: See TracChangeset for help on using the changeset viewer.