Changeset 7039 for code/branches/presentation3
- Timestamp:
- May 31, 2010, 9:33:09 AM (14 years ago)
- Location:
- code/branches/presentation3/src
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/libraries/network/ChatListener.h
r6928 r7039 38 38 { 39 39 public: 40 40 /* constructor, destructor */ 41 41 ChatListener(); 42 42 virtual ~ChatListener() {} -
code/branches/presentation3/src/modules/designtools/CreateStars.cc
r7028 r7039 121 121 XMLPortParam(CreateStars, "radiusDiff", setRadiusDiff, getRadiusDiff, xmlelement, mode); 122 122 XMLPortParam(CreateStars, "radius", setRadius, getRadius, xmlelement, mode); 123 123 } 124 124 125 125 } -
code/branches/presentation3/src/modules/designtools/ScreenshotManager.cc
r7015 r7039 25 25 mDisableOverlays = overlayFlag; 26 26 //get current window size 27 mWindowWidth 28 mWindowHeight 27 mWindowWidth = pRenderWindow->getWidth(); 28 mWindowHeight = pRenderWindow->getHeight(); 29 29 //create temporary texture 30 30 mTempTex = Ogre::TextureManager::getSingleton().createManual("ScreenShotTex", … … 64 64 //set the viewport settings 65 65 Ogre::Viewport *vp = mRT->getViewport(0); 66 vp->setClearEveryFrame(true); 66 vp->setClearEveryFrame(true); 67 67 vp->setOverlaysEnabled(false); 68 68 … … 78 78 // Simple case where the contents of the screen are taken directly 79 79 // Also used when an invalid value is passed within gridSize (zero or negative grid size) 80 mRT->update(); 80 mRT->update(); //render 81 81 82 82 //write the file on the Harddisk … … 91 91 92 92 // compute the Stepsize for the drid 93 Ogre::Real frustumGridStepHorizontal 94 Ogre::Real frustumGridStepVertical 93 Ogre::Real frustumGridStepHorizontal = (originalFrustumRight * 2) / mGridSize; 94 Ogre::Real frustumGridStepVertical = (originalFrustumTop * 2) / mGridSize; 95 95 96 96 // process each grid … … 103 103 // Shoggoth frustum extents setting 104 104 // compute the new frustum extents 105 frustumLeft 106 frustumRight 107 frustumTop 108 frustumBottom 105 frustumLeft = originalFrustumLeft + frustumGridStepHorizontal * x; 106 frustumRight = frustumLeft + frustumGridStepHorizontal; 107 frustumTop = originalFrustumTop - frustumGridStepVertical * y; 108 frustumBottom = frustumTop - frustumGridStepVertical; 109 109 110 110 // set the frustum extents value to the camera … … 113 113 // ignore time duration between frames 114 114 Ogre::Root::getSingletonPtr()->clearEventTimes(); 115 mRT->update(); 115 mRT->update(); //render 116 116 117 117 //define the current -
code/branches/presentation3/src/modules/designtools/ScreenshotManager.h
r7022 r7039 40 40 41 41 protected: 42 std::string 42 std::string mFileExtension; 43 43 unsigned int mGridSize, mWindowWidth, mWindowHeight; 44 44 bool mDisableOverlays; -
code/branches/presentation3/src/modules/designtools/SkyboxGenerator.cc
r6994 r7039 151 151 } 152 152 } 153 154 155 153 154 void SkyboxGenerator::createSkybox( ) 155 { 156 156 SkyboxGenerator::getInstance().takeScreenshot_ = true; 157 157 CommandExecutor::execute("pause"); 158 158 } 159 159 } -
code/branches/presentation3/src/modules/pickup/items/ShieldPickup.h
r6998 r7039 50 50 A Pickup which can add a Shield to the Pawn. 51 51 52 53 52 1) The percentage: The percentage the shield takes from the damage dealt to a Pawn 53 2) The hit points: The amount of damage points a shield can teake before collapsing 54 54 3) The activation type: 'immediate' or 'onUse'. defines if the item is used when it's picked up or only after the player chooses to use it. 55 55 4) The duration: the activation time of the pickup. -
code/branches/presentation3/src/modules/weapons/RocketController.h
r7021 r7039 49 49 public: 50 50 RocketController(BaseObject* creator); 51 51 virtual ~RocketController(); 52 52 53 53 virtual void tick(float dt); 54 54 SimpleRocket* getRocket() const 55 55 { return this->rocket_; }; 56 56 void setTarget(WorldEntity* target); 57 57 protected: 58 59 60 58 void moveToPosition(const Vector3& target); 59 void setTargetPosition(); 60 void moveToTargetPosition(); 61 61 62 62 private: 63 64 65 66 67 63 SimpleRocket* rocket_; //!<The Rocket it controlls 64 Vector3 targetPosition_; 65 WeakPtr<PlayerInfo> player_; 66 67 WeakPtr<WorldEntity> target_; 68 68 69 69 -
code/branches/presentation3/src/modules/weapons/projectiles/SimpleRocket.h
r7025 r7039 51 51 SimpleRocket(BaseObject* creator); 52 52 virtual ~SimpleRocket(); 53 53 virtual void tick(float dt); 54 54 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a SimpleRocket through XML. 55 55 … … 66 66 virtual void rotatePitch(const Vector2& value); 67 67 virtual void rotateRoll(const Vector2& value); 68 68 void setDestroy(); 69 69 70 70 /** … … 99 99 inline void rotatePitch(float value) 100 100 { 101 101 this->rotatePitch(Vector2(value, 0)); } 102 102 /** 103 103 @brief Rotates the SimpleRocket around the z-axis by the specifed amount. … … 106 106 inline void rotateRoll(float value) 107 107 { 108 108 this->rotateRoll(Vector2(value, 0)); } 109 109 110 110 void setOwner(Pawn* owner); -
code/branches/presentation3/src/orxonox/Level.h
r6926 r7039 57 57 void playerEntered(PlayerInfo* player); 58 58 void playerLeft(PlayerInfo* player); 59 59 60 60 MeshLodInformation* getLodInfo(std::string meshName) const; 61 61 -
code/branches/presentation3/src/orxonox/graphics/MeshLodInformation.cc
r7036 r7039 41 41 42 42 MeshLodInformation::MeshLodInformation(BaseObject* creator) 43 43 : BaseObject(creator), lodLevel_(5), bEnabled_(true), numLevels_(10), reductionRate_(0.15) 44 44 { 45 45 RegisterObject(MeshLodInformation); … … 62 62 std::string MeshLodInformation::getMeshName() 63 63 { 64 64 return MeshLodInformation::getMeshSource(); 65 65 } 66 67 68 66 67 void MeshLodInformation::setLodLevel(float lodLevel) 68 { 69 69 if(lodLevel>=0) 70 71 72 73 74 75 76 77 78 79 80 81 82 83 70 lodLevel_=lodLevel; 71 } 72 float MeshLodInformation::getLodLevel() 73 { 74 return lodLevel_; 75 } 76 void MeshLodInformation::setMeshSource(std::string meshSource) 77 { 78 meshSource_ = meshSource; 79 } 80 std::string MeshLodInformation::getMeshSource() 81 { 82 return meshSource_; 83 } 84 84 85 85 } -
code/branches/presentation3/src/orxonox/worldentities/Drone.cc
r7034 r7039 1 2 3 4 5 6 7 1 /* 8 2 * ORXONOX - the hottest 3D action shooter ever to exist … … 47 41 Drone::Drone(BaseObject* creator) : Pawn(creator) 48 42 { 49 43 RegisterObject(Drone); 50 44 51 45 this->myController_ = 0; … … 80 74 SUPER(Drone, XMLPort, xmlelement, mode); 81 75 82 83 84 76 XMLPortParam(Drone, "primaryThrust_", setPrimaryThrust, getPrimaryThrust, xmlelement, mode); 77 XMLPortParam(Drone, "auxilaryThrust_", setAuxilaryThrust, getAuxilaryThrust, xmlelement, mode); 78 XMLPortParam(Drone, "rotationThrust_", setRotationThrust, getRotationThrust, xmlelement, mode); 85 79 XMLPortParam(Drone, "maxDistanceToOwner_", setMaxDistanceToOwner, getMaxDistanceToOwner, xmlelement, mode); 86 80 XMLPortParam(Drone, "minDistanceToOwner_", setMinDistanceToOwner, getMinDistanceToOwner, xmlelement, mode); -
code/branches/presentation3/src/orxonox/worldentities/Drone.h
r7034 r7039 114 114 inline void setMinDistanceToOwner( float distance) 115 115 { this->minDistanceToOwner_=distance; } 116 116 117 117 118 118 /** 119 119 @brief Gets the primary thrust to the input amount. 120 @ preturn The amount of thrust.120 @return The amount of thrust. 121 121 */ 122 122 inline float getPrimaryThrust() 123 123 { return this->primaryThrust_; } 124 124 inline float getAuxilaryThrust() 125 125 { return this->auxilaryThrust_; } 126 126 inline float getRotationThrust() 127 127 { return this->rotationThrust_; } 128 128 inline float getMaxDistanceToOwner() 129 129 { return this->maxDistanceToOwner_; } 130 130 inline float getMinDistanceToOwner()
Note: See TracChangeset
for help on using the changeset viewer.