Changeset 4397 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- May 30, 2005, 4:57:04 PM (20 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/player.cc
r4389 r4397 39 39 \param isFree if the player is free 40 40 */ 41 Player::Player() : WorldEntity() 41 Player::Player() : WorldEntity(), PhysicsInterface(this) 42 42 { 43 43 /* … … 46 46 the player.cc for debug also 47 47 */ 48 this->setClassName("Player"); 48 49 this->model = (Model*)ResourceManager::getInstance()->load("models/reaplow.obj", OBJ, RP_CAMPAIGN); 49 50 travelSpeed = 15.0; … … 82 83 \todo add more parameters to load 83 84 */ 84 Player::Player(const TiXmlElement* root) : WorldEntity(root) 85 { 85 Player::Player(const TiXmlElement* root) : WorldEntity(root), PhysicsInterface(this) 86 { 87 this->setClassName("Player"); 86 88 this->weapons = new tList<Weapon>(); 87 89 this->activeWeapon = NULL; … … 196 198 void Player::tick (float time) 197 199 { 200 printf("%p\n", this); 201 this->getRelCoor().debug(); 202 198 203 /* link tick to weapon */ 199 204 //this->activeWeapon->tick(time); -
orxonox/trunk/src/world_entities/test_entity.cc
r4320 r4397 26 26 27 27 28 TestEntity::TestEntity () : WorldEntity() 28 TestEntity::TestEntity () : WorldEntity(), PhysicsInterface(this) 29 29 { 30 30 this->setClassID(CL_TEST_ENTITY, "TestEntity"); -
orxonox/trunk/src/world_entities/test_entity.h
r4276 r4397 3 3 4 4 #include "world_entity.h" 5 #include "physics_interface.h" 5 6 6 7 class MD2Loader; … … 10 11 class Material; 11 12 12 class TestEntity : public WorldEntity 13 class TestEntity : public WorldEntity, PhysicsInterface 13 14 { 14 15 friend class World;
Note: See TracChangeset
for help on using the changeset viewer.