Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jun 11, 2005, 12:55:48 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: setClassID implemented in all files

File:
1 edited

Legend:

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

    r3472 r4597  
    11
    22
    3 /* 
     3/*
    44   orxonox - the future of 3D-vertical-scrollers
    55
     
    2727
    2828
    29 NPC::NPC()
    30   : WorldEntity()
     29NPC::NPC() : WorldEntity()
    3130{
     31  this->setClassID(CL_NPC, "NPC");
    3232  hasDied = 0;
    3333}
     
    4141}
    4242
    43 void NPC::getPosition(float* x, float* y, float* z) 
     43void NPC::getPosition(float* x, float* y, float* z)
    4444{
    45   *x = xCor; 
    46   *y = yCor; 
     45  *x = xCor;
     46  *y = yCor;
    4747  *z = zCor;
    4848}
    4949
    50 void NPC::setCollisionRadius(float r) 
     50void NPC::setCollisionRadius(float r)
    5151{
    5252  collisionRadius = r;
    5353}
    5454
    55 float NPC::getCollisionRadius() 
     55float NPC::getCollisionRadius()
    5656{
    5757  return collisionRadius;
     
    6464void NPC::paint()
    6565{
    66   //cout << "WorldEntity::WorldEntity();" << endl; 
     66  //cout << "WorldEntity::WorldEntity();" << endl;
    6767  /* fix: died flag approach is very stupid, just to show @ convention */
    6868  if( hasDied == 0 ) {
     
    7575}
    7676
    77 void NPC::drawNPC() 
     77void NPC::drawNPC()
    7878{
    7979
Note: See TracChangeset for help on using the changeset viewer.