Changeset 4976 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- Aug 9, 2005, 12:48:44 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/npc.cc
r4597 r4976 20 20 21 21 #include "ai.h" 22 #include "data_tank.h"23 22 24 23 #include "npc.h" … … 27 26 28 27 29 NPC::NPC() : WorldEntity()28 NPC::NPC() 30 29 { 31 30 this->setClassID(CL_NPC, "NPC"); 32 31 hasDied = 0; 32 33 this->loadModel("models/bolido.obj"); 33 34 } 34 35 … … 59 60 60 61 61 void NPC::addAI(AI* ai)62 {}63 64 void NPC::paint()65 {66 //cout << "WorldEntity::WorldEntity();" << endl;67 /* fix: died flag approach is very stupid, just to show @ convention */68 if( hasDied == 0 ) {69 glPushMatrix();70 glTranslatef(xCor, yCor, 3.0);71 //glScalef(1.0, 3.0, 1.0);72 glutWireSphere(1.0, 10, 10);73 glPopMatrix();74 }75 }76 77 void NPC::drawNPC()78 {79 80 }81 82 62 83 63 /* define the reaction, if the ship is been hit */
Note: See TracChangeset
for help on using the changeset viewer.