- Timestamp:
- Jun 18, 2007, 7:40:40 PM (18 years ago)
- Location:
- branches/presentation/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/util/hud.cc
r10717 r10721 536 536 statWidgetsNumber++; 537 537 538 if ( expectedHealthSizeY * statWidgetsNumber> overlayWidth)538 if ((expectedHealthSizeY * statWidgetsNumber) > overlayWidth) 539 539 { 540 540 newSizeY = overlayWidth / float(statWidgetsNumber); -
branches/presentation/src/world_entities/npcs/npc.cc
r10710 r10721 407 407 { 408 408 int slot = ws->getWeaponSlot(); 409 // int side = ws->getWeaponSide(); //FIXME / REMOVE : is not used409 // int side = ws->getWeaponSide(); //FIXME / REMOVED: is not used 410 410 this->getWeaponManager().setSlotPosition(slot, (*it).second->getCenter()); 411 411 this->getWeaponManager().setSlotDirection(slot, ws->getRelDir()); -
branches/presentation/src/world_entities/space_ships/space_ship.cc
r10720 r10721 205 205 206 206 this->mouseSensitivity = 4; 207 this->xMouse = this->yMouse = 0; 208 207 209 208 210 this->weaponMan.changeWeaponConfig(0); … … 222 224 loadEngine(15); 223 225 224 // this->loadModel("models/spaceships/fighter_redesign9.obj");225 //this->setVisibiliy(false);226 227 226 bForward = bBackward = bLeft = bRight = bAscend = bDescend = bRollL = bRollR = bFire = bSecFire = false; 228 229 // this->setHealthMax(shieldMax);230 // this->setHealth(shieldCur);231 227 232 228 this->travelNode = new PNode(); … … 261 257 262 258 this->secWeaponMan.getFixedTarget()->setParent(this); 263 this->secWeaponMan.getFixedTarget()->setRelCoor( 100000,0,0);259 this->secWeaponMan.getFixedTarget()->setRelCoor(50000,0,0); 264 260 this->secWeaponMan.setRotationSpeed(0); 265 261 … … 289 285 //this->airFriction = 0.0f; 290 286 291 srand(time(0)); //initaialize RNG287 // srand(time(0)); //initaialize RNG 292 288 293 289 this->travelNode->debugDraw(); … … 377 373 this->resetElectronic(); 378 374 this->velocity = Vector(0.0, 0.0, 0.0); 375 this->xMouse = this->yMouse = 0; 379 376 } 380 377 … … 593 590 // printf("Mouse Coord: %f, %f\n", this->xMouse, this->yMouse); 594 591 this->weaponMan.getFixedTarget()->setRelCoor(100000, -100 * this->mouseSensitivity * yMouse, 100 * this->mouseSensitivity * xMouse); 595 this->secWeaponMan.getFixedTarget()->setRelCoor( 100000, -100 * this->mouseSensitivity * yMouse, 100 * this->mouseSensitivity * xMouse);592 this->secWeaponMan.getFixedTarget()->setRelCoor(50000, -50 * this->mouseSensitivity * yMouse, 50 * this->mouseSensitivity * xMouse); 596 593 } 597 594 else if (!(State::getCamera()->getEventHandling())) -
branches/presentation/src/world_entities/space_ships/space_ship.h
r10719 r10721 202 202 203 203 204 Quaternion mouseDir; //!< the direction where the player wants to fly204 //Quaternion mouseDir; //!< the direction where the player wants to fly 205 205 /*Quaternion oldMouseDir; //!< the direction where the player wanted to fly 206 206 float shipInertia; //!< the inertia of the ship(how fast the ship reacts to a mouse input) -
branches/presentation/src/world_entities/weapons/crosshair.cc
r10714 r10721 64 64 this->material = new Material; 65 65 66 //this->subscribeEvent(ES_GAME, EV_MOUSE_MOTION);66 // this->subscribeEvent(ES_GAME, EV_MOUSE_MOTION); 67 67 68 68 // center the mouse on the screen, and also hide the cursors 69 /* SDL_WarpMouse(GraphicsEngine::getInstance()->getResolutionX()/2, GraphicsEngine::getInstance()->getResolutionY()/2); 70 GraphicsEngine::showMouse(false);71 SDL_WarpMouse(GraphicsEngine::getInstance()->getResolutionX()/2, GraphicsEngine::getInstance()->getResolutionY()/2);*/ 69 /* SDL_WarpMouse(GraphicsEngine::getInstance()->getResolutionX()/2, GraphicsEngine::getInstance()->getResolutionY()/2);*/ 70 // GraphicsEngine::showMouse(false); 71 // SDL_WarpMouse(GraphicsEngine::getInstance()->getResolutionX()/2, GraphicsEngine::getInstance()->getResolutionY()/2); 72 72 } 73 73 -
branches/presentation/src/world_entities/weapons/nadion_laser.cc
r10719 r10721 147 147 148 148 pj->setAbsCoor(this->getEmissionPoint()); 149 // pj->setAbsDir(this->getAbsDir()); 149 // pj->setAbsDir(Quaternion(this->getDefaultTarget()->getAbsCoor() - this->getAbsCoor(), Vector(0,0,0))); 150 pj->setAbsDir(this->getAbsDir()); 150 151 pj->activate(); 151 152 -
branches/presentation/src/world_entities/weapons/weapon_manager.h
r10719 r10721 91 91 Weapon* getWeapon(int slotID) const; 92 92 93 // FIXME ::94 93 // bool hasFreeSlot(int configID, long capability = WTYPE_ALL) { return ( getNextFreeSlot(configID, capability ) != -1)? true : false; }; 95 94 -
branches/presentation/src/world_entities/world_entity.cc
r10718 r10721 1184 1184 increaseHealth(time * this->healthRegen); 1185 1185 increaseShield(time * this->shieldRegen); 1186 // updateHealthWidget(); 1187 // updateShieldWidget(); 1188 1189 //this->setHealth( this->shieldCur); // FIXME currently just to test share system 1186 1190 1187 1191 1188 if (this->electronic != this->electronicMax || this->electronicRegen != 0){ -
branches/presentation/src/world_entities/world_entity.h
r10710 r10721 208 208 209 209 /* --- Misc Stuff Block --- */ 210 void debugWE() { this->debugEntity(); } 211 ; ///FIXME 210 void debugWE() { this->debugEntity(); }; ///FIXME 212 211 void debugEntity() const; 213 212
Note: See TracChangeset
for help on using the changeset viewer.