Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4976 in orxonox.OLD for orxonox/trunk/src/world_entities


Ignore:
Timestamp:
Aug 9, 2005, 12:48:44 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: flotilia

File:
1 edited

Legend:

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

    r4597 r4976  
    2020
    2121#include "ai.h"
    22 #include "data_tank.h"
    2322
    2423#include "npc.h"
     
    2726
    2827
    29 NPC::NPC() : WorldEntity()
     28NPC::NPC()
    3029{
    3130  this->setClassID(CL_NPC, "NPC");
    3231  hasDied = 0;
     32
     33  this->loadModel("models/bolido.obj");
    3334}
    3435
     
    5960
    6061
    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 
    8262
    8363/* define the reaction, if the ship is been hit */
Note: See TracChangeset for help on using the changeset viewer.