Changeset 4397 in orxonox.OLD for orxonox/trunk/src/world_entities/player.cc
- Timestamp:
- May 30, 2005, 4:57:04 PM (19 years ago)
- File:
-
- 1 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);
Note: See TracChangeset
for help on using the changeset viewer.