Changeset 4977 in orxonox.OLD for orxonox/trunk/src/world_entities/npc.cc
- Timestamp:
- Aug 10, 2005, 11:26:59 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/npc.cc
r4976 r4977 16 16 */ 17 17 18 #include <iostream>19 #include <GL/glut.h>20 18 21 #include "ai.h"19 //#include "ai.h" 22 20 23 21 #include "npc.h" … … 29 27 { 30 28 this->setClassID(CL_NPC, "NPC"); 31 hasDied = 0;32 29 33 30 this->loadModel("models/bolido.obj"); … … 35 32 36 33 NPC::~NPC () {} 37 38 39 void NPC::setPosition(float x, float y, float z)40 {41 xCor = x; yCor = y; zCor = z;42 }43 44 void NPC::getPosition(float* x, float* y, float* z)45 {46 *x = xCor;47 *y = yCor;48 *z = zCor;49 }50 51 void NPC::setCollisionRadius(float r)52 {53 collisionRadius = r;54 }55 56 float NPC::getCollisionRadius()57 {58 return collisionRadius;59 }60 34 61 35 … … 71 45 void NPC::die() 72 46 { 73 hasDied = 1;74 47 }
Note: See TracChangeset
for help on using the changeset viewer.