Changeset 4597 in orxonox.OLD for orxonox/trunk/src/world_entities/npc.cc
- Timestamp:
- Jun 11, 2005, 12:55:48 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/npc.cc
r3472 r4597 1 1 2 2 3 /* 3 /* 4 4 orxonox - the future of 3D-vertical-scrollers 5 5 … … 27 27 28 28 29 NPC::NPC() 30 : WorldEntity() 29 NPC::NPC() : WorldEntity() 31 30 { 31 this->setClassID(CL_NPC, "NPC"); 32 32 hasDied = 0; 33 33 } … … 41 41 } 42 42 43 void NPC::getPosition(float* x, float* y, float* z) 43 void NPC::getPosition(float* x, float* y, float* z) 44 44 { 45 *x = xCor; 46 *y = yCor; 45 *x = xCor; 46 *y = yCor; 47 47 *z = zCor; 48 48 } 49 49 50 void NPC::setCollisionRadius(float r) 50 void NPC::setCollisionRadius(float r) 51 51 { 52 52 collisionRadius = r; 53 53 } 54 54 55 float NPC::getCollisionRadius() 55 float NPC::getCollisionRadius() 56 56 { 57 57 return collisionRadius; … … 64 64 void NPC::paint() 65 65 { 66 //cout << "WorldEntity::WorldEntity();" << endl; 66 //cout << "WorldEntity::WorldEntity();" << endl; 67 67 /* fix: died flag approach is very stupid, just to show @ convention */ 68 68 if( hasDied == 0 ) { … … 75 75 } 76 76 77 void NPC::drawNPC() 77 void NPC::drawNPC() 78 78 { 79 79
Note: See TracChangeset
for help on using the changeset viewer.