Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jan 28, 2007, 4:15:22 PM (18 years ago)
Author:
snellen
Message:

debugdraw track in npc

Location:
trunk/src/world_entities/npcs
Files:
2 edited

Legend:

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

    r10444 r10447  
    166166  .defaultValues(0);
    167167
    168 
    169     // Track
    170168  LoadParamXML(root, "Weapons", this, NPC, addWeapons)
    171169  .describe("creates and adds weapons");
     
    268266
    269267}
     268
     269void NPC::draw() const
     270{
     271 WorldEntity::draw();
     272  if( this->entityTrack != NULL)
     273    this->entityTrack->drawGraph();
     274}
  • trunk/src/world_entities/npcs/npc.h

    r10440 r10447  
    2929
    3030  virtual void tick(float dt);
     31  void draw() const;
    3132  inline int getTeam()  { return teamNumber; }
    3233  inline void fire(){ this->bFire=true;}
Note: See TracChangeset for help on using the changeset viewer.