Changeset 5982 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Dec 8, 2005, 12:22:53 AM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/space_ships/space_ship.cc
r5978 r5982 88 88 Weapon* wpLeft = new TestGun(1); 89 89 wpLeft->setName("testGun Left"); 90 Weapon* cannon = dynamic_cast<Weapon*>(Factory:: getFirst()->fabricate(CL_CANNON));90 Weapon* cannon = dynamic_cast<Weapon*>(Factory::fabricate(CL_CANNON)); 91 91 92 92 cannon->setName("BFG"); … … 118 118 xMouse = yMouse = 0; 119 119 mouseSensitivity = 0.001; 120 120 121 121 cycle = 0.0; 122 122 123 123 124 124 travelSpeed = 15.0; … … 271 271 272 272 //orient the spaceship model in the direction of movement. 273 273 274 274 // this is the air friction (necessary for a smooth control) 275 275 if(velocity.len() != 0) velocity -= velocity*0.01; 276 276 277 277 this->shiftCoor(Vector(0,1,0)*cos(this->cycle*2.0)*0.02); 278 278 279 279 //SDL_WarpMouse(GraphicsEngine::getInstance()->getResolutionX()/2, GraphicsEngine::getInstance()->getResolutionY()/2); 280 280 … … 327 327 //rotVal += .4; 328 328 } 329 329 330 330 if( this->bRollL /* > -this->getRelCoor().z*2*/) 331 331 { … … 385 385 void SpaceShip::process(const Event &event) 386 386 { 387 388 387 388 389 389 if( event.type == SDLK_a) 390 390 this->bRollL = event.bPressed; -
trunk/src/world_entities/weapons/ground_turret.cc
r5915 r5982 85 85 element = root->FirstChildElement("weapon-left"); 86 86 if (element != NULL) element = element->FirstChildElement(); 87 this->left = dynamic_cast<Weapon*>( Factory:: getFirst()->fabricate( element) );87 this->left = dynamic_cast<Weapon*>( Factory::fabricate( element) ); 88 88 if (this->left) 89 89 { … … 94 94 element = root->FirstChildElement("weapon-right"); 95 95 if (element != NULL) if (element != NULL) element = element->FirstChildElement(); 96 this->right = dynamic_cast<Weapon*>( Factory:: getFirst()->fabricate( element) );96 this->right = dynamic_cast<Weapon*>( Factory::fabricate( element) ); 97 97 if (this->right) 98 98 { -
trunk/src/world_entities/weapons/weapon_manager.cc
r5885 r5982 140 140 LOAD_PARAM_START_CYCLE(root, element); 141 141 142 Weapon* newWeapon = dynamic_cast<Weapon*>(Factory:: getFirst()->fabricate(element));142 Weapon* newWeapon = dynamic_cast<Weapon*>(Factory::fabricate(element)); 143 143 /// @todo implement this !! 144 144
Note: See TracChangeset
for help on using the changeset viewer.