Changeset 10270 in orxonox.OLD for branches/playability/src/world_entities/space_ships
- Timestamp:
- Jan 17, 2007, 5:52:08 PM (18 years ago)
- Location:
- branches/playability/src/world_entities/space_ships
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/space_ships/space_ship.cc
r10261 r10270 395 395 396 396 LoadParam(root, "playmode", this, SpaceShip, setPlaymodeXML); 397 LoadParam(root, "cameraDistance", this, SpaceShip, setCameraDistance); 398 LoadParam(root, "cameraFovy", this, SpaceShip, setCameraFovy); 397 399 } 398 400 … … 418 420 this->secWeaponMan.showCrosshair(); 419 421 this->toList( OM_GROUP_01 ); 422 State::getPlayer()->hud().setRadarCenterNode(this->travelNode); 420 423 State::getPlayer()->hud().setOverlayActive(true); 421 424 //dynamic_cast <OrxGui::GLGuiEnergyWidgetVertical*> (State::getPlayer()->hud().getArmorWidget())->setDisplayedName("Armor"); … … 431 434 State::getPlayer()->hud().setOverlayActive(false); 432 435 State::getCamera()->setEventHandling(true); 436 State::getPlayer()->hud().setRadarCenterNode(NULL); 433 437 //dynamic_cast<Element2D*>(this->secWeaponMan.getFixedTarget())->setVisibility( false); 434 438 //this->detachCamera(); … … 1080 1084 } 1081 1085 } 1086 1087 void SpaceShip::setCameraDistance(float dist) 1088 { 1089 State::getCamera()->setViewTopDistance(dist); 1090 } 1091 1092 void SpaceShip::setCameraFovy(float fovy) 1093 { 1094 State::getCamera()->setViewTopFovy(fovy); 1095 } -
branches/playability/src/world_entities/space_ships/space_ship.h
r10261 r10270 71 71 inline float getElectronicCur() { return this->electronicCur; }; //!< returns current electronic value 72 72 inline float getElectronicMax() { return this->electronicMax; }; //!< returns current electronic value 73 74 inline PNode* getTravelNode() { return this->travelNode; }; 73 75 74 76 //damage handler … … 179 181 float cameraSpeed; 180 182 183 void setCameraDistance(float dist); 184 void setCameraFovy(float fovy); 185 181 186 /* 182 187 Quaternion mouseDir; //!< the direction where the player wants to fly
Note: See TracChangeset
for help on using the changeset viewer.