Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5682 in orxonox.OLD for branches/world_entities/src/world_entities


Ignore:
Timestamp:
Nov 21, 2005, 10:27:33 PM (19 years ago)
Author:
bensch
Message:

we: Base for NPC

Location:
branches/world_entities/src/world_entities
Files:
1 copied
2 moved

Legend:

Unmodified
Added
Removed
  • branches/world_entities/src/world_entities/npc_test.cc

    r5680 r5682  
    1818
    1919
    20 #include "npc2.h"
     20#include "npc_test.h"
    2121#include "obb_tree.h"
    2222
  • branches/world_entities/src/world_entities/npc_test1.cc

    r5680 r5682  
    1818
    1919
    20 #include "npc.h"
     20#include "npc_test1.h"
    2121#include "obb_tree.h"
    2222
     
    3030
    3131
    32 NPC::NPC()
     32NPCTest1::NPCTest1()
    3333{
    34   this->setClassID(CL_NPC, "NPC");
     34  this->setClassID(CL_NPC, "NPCTest1");
    3535
    3636  if ((float)rand()/RAND_MAX > .5f)
     
    4343
    4444
    45 NPC::~NPC () {}
     45NPCTest1::~NPCTest1 () {}
    4646
    4747
    48 void NPC::collidesWith(WorldEntity* entity, const Vector& location)
     48void NPCTest1::collidesWith(WorldEntity* entity, const Vector& location)
    4949{
    5050  if (entity->isA(CL_PROJECTILE) && entity != this->collider)
     
    7878
    7979
    80 void NPC::tick(float dt)
     80void NPCTest1::tick(float dt)
    8181{
    8282//  Vector direction = (State::getCameraTarget()->getAbsCoor() - this->getAbsCoor());
Note: See TracChangeset for help on using the changeset viewer.