Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
May 30, 2005, 4:57:04 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: ok… forces now apply to the right objects, but i don't really like the way it works…. we will see….

Location:
orxonox/trunk/src/world_entities
Files:
3 edited

Legend:

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

    r4389 r4397  
    3939   \param isFree if the player is free
    4040*/
    41 Player::Player() : WorldEntity()
     41Player::Player() : WorldEntity(), PhysicsInterface(this)
    4242{
    4343  /*
     
    4646     the player.cc for debug also
    4747  */
     48  this->setClassName("Player");
    4849  this->model = (Model*)ResourceManager::getInstance()->load("models/reaplow.obj", OBJ, RP_CAMPAIGN);
    4950  travelSpeed = 15.0;
     
    8283   \todo add more parameters to load
    8384*/
    84 Player::Player(const TiXmlElement* root) : WorldEntity(root)
    85 {
     85Player::Player(const TiXmlElement* root) : WorldEntity(root), PhysicsInterface(this)
     86{
     87  this->setClassName("Player");
    8688  this->weapons = new tList<Weapon>();
    8789  this->activeWeapon = NULL;
     
    196198void Player::tick (float time)
    197199{
     200  printf("%p\n", this);
     201  this->getRelCoor().debug();
     202 
    198203  /* link tick to weapon */
    199204  //this->activeWeapon->tick(time);
  • orxonox/trunk/src/world_entities/test_entity.cc

    r4320 r4397  
    2626
    2727
    28 TestEntity::TestEntity () : WorldEntity()
     28TestEntity::TestEntity () : WorldEntity(), PhysicsInterface(this)
    2929
    3030  this->setClassID(CL_TEST_ENTITY, "TestEntity");
  • orxonox/trunk/src/world_entities/test_entity.h

    r4276 r4397  
    33
    44#include "world_entity.h"
     5#include "physics_interface.h"
    56
    67class MD2Loader;
     
    1011class Material;
    1112
    12 class TestEntity : public WorldEntity 
     13class TestEntity : public WorldEntity, PhysicsInterface
    1314{
    1415  friend class World;
Note: See TracChangeset for help on using the changeset viewer.