Changeset 5682 in orxonox.OLD for branches/world_entities/src/world_entities/npc_test1.cc
- Timestamp:
- Nov 21, 2005, 10:27:33 PM (19 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/world_entities/src/world_entities/npc_test1.cc
r5680 r5682 18 18 19 19 20 #include "npc .h"20 #include "npc_test1.h" 21 21 #include "obb_tree.h" 22 22 … … 30 30 31 31 32 NPC ::NPC()32 NPCTest1::NPCTest1() 33 33 { 34 this->setClassID(CL_NPC, "NPC ");34 this->setClassID(CL_NPC, "NPCTest1"); 35 35 36 36 if ((float)rand()/RAND_MAX > .5f) … … 43 43 44 44 45 NPC ::~NPC() {}45 NPCTest1::~NPCTest1 () {} 46 46 47 47 48 void NPC ::collidesWith(WorldEntity* entity, const Vector& location)48 void NPCTest1::collidesWith(WorldEntity* entity, const Vector& location) 49 49 { 50 50 if (entity->isA(CL_PROJECTILE) && entity != this->collider) … … 78 78 79 79 80 void NPC ::tick(float dt)80 void NPCTest1::tick(float dt) 81 81 { 82 82 // Vector direction = (State::getCameraTarget()->getAbsCoor() - this->getAbsCoor());
Note: See TracChangeset
for help on using the changeset viewer.