Changeset 10698 in orxonox.OLD for trunk/src/world_entities/player.cc
- Timestamp:
- Jun 14, 2007, 5:33:43 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/player.cc
r10516 r10698 19 19 20 20 #include "event_handler.h" 21 #include "creatures/fps_player.h" 21 22 22 23 #include "state.h" … … 74 75 PRINTF(4)("Enter new Playable\n"); 75 76 this->playable = playable; 76 this->_hud.setArmorWidget(this->playable->getHealthWidget()); 77 if (dynamic_cast<SpaceShip*>(this->playable) != 0) 77 78 if( playable->isA(FPSPlayer::staticClassID()) ) 79 { 80 this->_hud.setMode(Hud::FirstPerson); 81 this->_hud.setHealthWidget(this->playable->getHealthWidget()); 82 } 83 else 84 { 85 this->_hud.setMode(Hud::Full3D); 86 this->_hud.setHealthWidget(this->playable->getHealthWidget()); 87 } 88 /*if (dynamic_cast<SpaceShip*>(this->playable) != 0) 78 89 this->_hud.setWeaponManager(&this->playable->getWeaponManager(), &dynamic_cast<SpaceShip*>(this->playable)->getWeaponManagerSecondary()); 79 90 else 80 this->_hud.setWeaponManager(&this->playable->getWeaponManager()); 91 this->_hud.setWeaponManager(&this->playable->getWeaponManager());*/ 81 92 82 93 this->playable->setPlayer(this);
Note: See TracChangeset
for help on using the changeset viewer.