Changeset 10685 in orxonox.OLD for branches/hud/src/world_entities/player.cc
- Timestamp:
- Jun 11, 2007, 4:40:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/hud/src/world_entities/player.cc
r10516 r10685 19 19 20 20 #include "event_handler.h" 21 #include "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.setMod(Hud::Playmode FirstPerson); 81 this->_hud.setHealthWidget(this->playable->getHealthWidget()); 82 } 83 else 84 { 85 this->_hud.setMode(Hud::Playmode 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.