Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
May 30, 2005, 4:57:04 PM (19 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….

File:
1 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);
Note: See TracChangeset for help on using the changeset viewer.