Changeset 7337 in orxonox.OLD for trunk/src/world_entities/space_ships/turbine_hover.cc
- Timestamp:
- Apr 19, 2006, 12:24:20 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/space_ships/turbine_hover.cc
r7326 r7337 88 88 //this->addWeapon(cannon, 0, 2); 89 89 90 this->getWeaponManager() ->changeWeaponConfig(1);91 dynamic_cast<Element2D*>(this->getWeaponManager() ->getFixedTarget())->setVisibility( false);90 this->getWeaponManager().changeWeaponConfig(1); 91 dynamic_cast<Element2D*>(this->getWeaponManager().getFixedTarget())->setVisibility( false); 92 92 93 93 this->loadModel("models/ships/hoverglider_mainbody.obj"); … … 186 186 registerEvent(EV_MOUSE_MOTION); 187 187 188 dynamic_cast<Element2D*>(this->getWeaponManager() ->getFixedTarget())->setVisibility( false);188 dynamic_cast<Element2D*>(this->getWeaponManager().getFixedTarget())->setVisibility( false); 189 189 190 190 // WEAPON_MANAGER configuration 191 this->getWeaponManager() ->setSlotCount(5);192 193 this->getWeaponManager() ->setSlotPosition(0, Vector(-0.28, 1.186, -2.750), &this->wingNodeLeft);194 this->getWeaponManager() ->setSlotCapability(0, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);195 196 this->getWeaponManager() ->setSlotPosition(1, Vector(-0.28, 1.186, 2.750), &this->wingNodeRight);197 this->getWeaponManager() ->setSlotCapability(1, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);198 199 this->getWeaponManager() ->setSlotPosition(2, Vector(-1.63, .809, -.003));200 this->getWeaponManager() ->setSlotCapability(2, WTYPE_HEAVY);191 this->getWeaponManager().setSlotCount(5); 192 193 this->getWeaponManager().setSlotPosition(0, Vector(-0.28, 1.186, -2.750), &this->wingNodeLeft); 194 this->getWeaponManager().setSlotCapability(0, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 195 196 this->getWeaponManager().setSlotPosition(1, Vector(-0.28, 1.186, 2.750), &this->wingNodeRight); 197 this->getWeaponManager().setSlotCapability(1, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 198 199 this->getWeaponManager().setSlotPosition(2, Vector(-1.63, .809, -.003)); 200 this->getWeaponManager().setSlotCapability(2, WTYPE_HEAVY); 201 201 202 202 /// TODO: THESE ARE TOO MUCH 203 this->getWeaponManager() ->setSlotPosition(3, Vector(-1.63, .678, -.652));204 this->getWeaponManager() ->setSlotDirection(3, Quaternion(-24/180 * M_PI, Vector(1,0,0)));205 206 this->getWeaponManager() ->setSlotPosition(4, Vector(-1.63, .678, .652));207 this->getWeaponManager() ->setSlotDirection(4, Quaternion(24/180 * M_PI, Vector(1,0,0)));203 this->getWeaponManager().setSlotPosition(3, Vector(-1.63, .678, -.652)); 204 this->getWeaponManager().setSlotDirection(3, Quaternion(-24/180 * M_PI, Vector(1,0,0))); 205 206 this->getWeaponManager().setSlotPosition(4, Vector(-1.63, .678, .652)); 207 this->getWeaponManager().setSlotDirection(4, Quaternion(24/180 * M_PI, Vector(1,0,0))); 208 208 209 209 this->cameraNode.setRelCoor(1,5,0); 210 this->getWeaponManager() ->getFixedTarget()->setParent(&this->cameraNode);211 this->getWeaponManager() ->getFixedTarget()->setRelCoor(1000,0,0);210 this->getWeaponManager().getFixedTarget()->setParent(&this->cameraNode); 211 this->getWeaponManager().getFixedTarget()->setRelCoor(1000,0,0); 212 212 } 213 213 … … 224 224 void TurbineHover::enter() 225 225 { 226 dynamic_cast<Element2D*>(this->getWeaponManager() ->getFixedTarget())->setVisibility( true);226 dynamic_cast<Element2D*>(this->getWeaponManager().getFixedTarget())->setVisibility( true); 227 227 228 228 if (State::getCameraNode != NULL) … … 236 236 void TurbineHover::leave() 237 237 { 238 dynamic_cast<Element2D*>(this->getWeaponManager() ->getFixedTarget())->setVisibility( false);238 dynamic_cast<Element2D*>(this->getWeaponManager().getFixedTarget())->setVisibility( false); 239 239 this->detachCamera(); 240 240
Note: See TracChangeset
for help on using the changeset viewer.