Changeset 1634 for code/branches/gcc43/src/orxonox
- Timestamp:
- Jun 29, 2008, 7:36:33 PM (16 years ago)
- Location:
- code/branches/gcc43/src/orxonox
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gcc43/src/orxonox/GraphicsEngine.h
r1563 r1634 80 80 void windowClosed (Ogre::RenderWindow* rw); 81 81 82 inlineunsigned int getDetailLevelParticle() const82 unsigned int getDetailLevelParticle() const 83 83 { return this->detailLevelParticle_; } 84 84 -
code/branches/gcc43/src/orxonox/Orxonox.h
r1563 r1634 62 62 63 63 void abortRequest(); 64 // inlineaudio::AudioManager* getAudioManagerPointer() { return auMan_; };64 //audio::AudioManager* getAudioManagerPointer() { return auMan_; }; 65 65 66 66 static Orxonox* getSingleton(); 67 67 static void destroySingleton(); 68 68 69 static inlinevoid slomo(float factor) { Orxonox::setTimeFactor(factor); }69 static void slomo(float factor) { Orxonox::setTimeFactor(factor); } 70 70 static void setTimeFactor(float factor = 1.0); 71 static inlinefloat getTimeFactor() { return Orxonox::getSingleton()->timefactor_; }72 static inlinevoid exit() { Orxonox::getSingleton()->abortRequest(); }71 static float getTimeFactor() { return Orxonox::getSingleton()->timefactor_; } 72 static void exit() { Orxonox::getSingleton()->abortRequest(); } 73 73 74 74 private: -
code/branches/gcc43/src/orxonox/hud/BarOverlayElement.h
r1568 r1634 54 54 void clearColours(); 55 55 56 inlinevoid setRightToLeft(bool r2l)56 void setRightToLeft(bool r2l) 57 57 { this->right2Left_ = r2l; } 58 inlinebool getRightToLeft() const58 bool getRightToLeft() const 59 59 { return this->right2Left_; } 60 inlinefloat getValue() const60 float getValue() const 61 61 { return this->value_; } 62 62 -
code/branches/gcc43/src/orxonox/hud/HUD.h
r1567 r1634 55 55 void setFPS(); 56 56 57 inlinestd::list<RadarObject*>& getRadarObjects()57 std::list<RadarObject*>& getRadarObjects() 58 58 { return this->roSet_; } 59 59 -
code/branches/gcc43/src/orxonox/hud/Navigation.h
r1568 r1634 49 49 float getDist2Focus() const; 50 50 51 inlineRadarObject* getFocus() const51 RadarObject* getFocus() const 52 52 { return this->focus_; } 53 53 void releaseFocus(); -
code/branches/gcc43/src/orxonox/hud/RadarObject.h
r1566 r1634 46 46 47 47 void setMaterial(const ColourValue& colour, const std::string& texturename); 48 inlinevoid setColour(const ColourValue& colour)48 void setColour(const ColourValue& colour) 49 49 { this->setMaterial(colour, this->texturename_); } 50 inlinevoid setTexture(const std::string& texturename)50 void setTexture(const std::string& texturename) 51 51 { this->setMaterial(this->colour_, texturename); } 52 inlinevoid resetMaterial()52 void resetMaterial() 53 53 { this->setMaterial(this->colour_, this->texturename_); } 54 54 … … 56 56 Vector3 getOrientedVelocity() const; 57 57 58 inlineWorldEntity* getObject() const58 WorldEntity* getObject() const 59 59 { return this->object_; } 60 inlineOgre::PanelOverlayElement* getPanel() const60 Ogre::PanelOverlayElement* getPanel() const 61 61 { return this->panel_; } 62 62 -
code/branches/gcc43/src/orxonox/objects/Camera.h
r1505 r1634 46 46 47 47 void setPositionNode(Ogre::SceneNode* node); 48 inlineOgre::SceneNode* getCameraNode() { return this->positionNode_; }48 Ogre::SceneNode* getCameraNode() { return this->positionNode_; } 49 49 // maybe also BaseObject 50 50 void setTargetNode(Ogre::SceneNode* obj); … … 54 54 void tick(float dt); 55 55 void update(); 56 inlinebool hasFocus() { return this->bHasFocus_; }56 bool hasFocus() { return this->bHasFocus_; } 57 57 58 58 private: -
code/branches/gcc43/src/orxonox/objects/CameraHandler.h
r1505 r1634 52 52 53 53 public: 54 inlinestatic CameraHandler* getInstance() { if (!CameraHandler::singletonRef) CameraHandler::singletonRef = new CameraHandler(); return CameraHandler::singletonRef; }55 inline~CameraHandler() { CameraHandler::singletonRef = NULL; }56 inlineCamera* getActiveCamera() { return this->focusList_.back(); }54 static CameraHandler* getInstance() { if (!CameraHandler::singletonRef) CameraHandler::singletonRef = new CameraHandler(); return CameraHandler::singletonRef; } 55 ~CameraHandler() { CameraHandler::singletonRef = NULL; } 56 Camera* getActiveCamera() { return this->focusList_.back(); } 57 57 /*void registerCamera(Camera* newCam); 58 58 void changeActiveCamera(Camera* setCam);*/ -
code/branches/gcc43/src/orxonox/objects/ParticleSpawner.h
r1563 r1634 43 43 ParticleSpawner(const std::string& templateName, LODParticle::LOD detaillevel, float lifetime, float delay = 0, const Vector3& direction = Vector3::ZERO); 44 44 virtual ~ParticleSpawner(); 45 inlineParticleInterface* getParticleInterface() const45 ParticleInterface* getParticleInterface() const 46 46 { return this->particle_; } 47 47 -
code/branches/gcc43/src/orxonox/objects/SpaceShip.h
r1558 r1634 66 66 void getFocus(); 67 67 68 inlinefloat getMaxSpeed() const68 float getMaxSpeed() const 69 69 { return this->maxSpeed_; } 70 inlinefloat getMaxSideAndBackSpeed() const70 float getMaxSideAndBackSpeed() const 71 71 { return this->maxSideAndBackSpeed_; } 72 inlinefloat getMaxRotation() const72 float getMaxRotation() const 73 73 { return this->maxRotation_; } 74 inlinefloat getTransAcc() const74 float getTransAcc() const 75 75 { return this->translationAcceleration_; } 76 inlinefloat getRotAcc() const76 float getRotAcc() const 77 77 { return this->rotationAcceleration_; } 78 inlinefloat getTransDamp() const78 float getTransDamp() const 79 79 { return this->translationDamping_; } 80 inlinefloat getRotDamp() const80 float getRotDamp() const 81 81 { return this->rotationDamping_; } 82 82 … … 98 98 void doFire(); 99 99 100 inlineconst Vector3& getDir() const100 const Vector3& getDir() const 101 101 { return this->currentDir_; } 102 inlineconst Vector3& getInitialDir() const102 const Vector3& getInitialDir() const 103 103 { return this->initialDir_; } 104 inlineconst Vector3& getOrth() const104 const Vector3& getOrth() const 105 105 { return this->currentOrth_; } 106 inlineconst Vector3& getInitialOrth() const106 const Vector3& getInitialOrth() const 107 107 { return this->initialOrth_; } 108 108 -
code/branches/gcc43/src/orxonox/objects/WorldEntity.h
r1535 r1634 53 53 virtual void loadParams(TiXmlElement* xmlElem); 54 54 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 55 virtual inlinebool create(){ return Synchronisable::create(); }55 virtual bool create(){ return Synchronisable::create(); } 56 56 57 57 void attachWorldEntity(WorldEntity* entity); 58 58 const WorldEntity* getAttachedWorldEntity(unsigned int index) const; 59 59 60 inlineOgre::SceneNode* getNode()60 Ogre::SceneNode* getNode() 61 61 { return this->node_; } 62 62 63 inlinevoid setNode(Ogre::SceneNode* node)63 void setNode(Ogre::SceneNode* node) 64 64 { this->node_ = node; } 65 65 66 inlinevoid setPosition(const Vector3& pos)66 void setPosition(const Vector3& pos) 67 67 { this->node_->setPosition(pos); } 68 inlinevoid setPositionLoader1(const Vector3& pos)68 void setPositionLoader1(const Vector3& pos) 69 69 { this->node_->setPosition(pos); } 70 inlinevoid setPositionLoader2(Real x, Real y, Real z)70 void setPositionLoader2(Real x, Real y, Real z) 71 71 { this->node_->setPosition(x, y, z); } 72 inlinevoid setPosition(Real x, Real y, Real z)72 void setPosition(Real x, Real y, Real z) 73 73 { this->node_->setPosition(x, y, z); } 74 inlineconst Vector3& getPosition() const74 const Vector3& getPosition() const 75 75 { return this->node_->getPosition(); } 76 76 77 inlinevoid translate(const Vector3 &d, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_PARENT)77 void translate(const Vector3 &d, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_PARENT) 78 78 { this->node_->translate(d, relativeTo); } 79 inlinevoid translate(Real x, Real y, Real z, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_PARENT)79 void translate(Real x, Real y, Real z, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_PARENT) 80 80 { this->node_->translate(x, y, z, relativeTo); } 81 inlinevoid translate(const Matrix3 &axes, const Vector3 &move, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_PARENT)81 void translate(const Matrix3 &axes, const Vector3 &move, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_PARENT) 82 82 { this->node_->translate(axes, move, relativeTo); } 83 inlinevoid translate(const Matrix3 &axes, Real x, Real y, Real z, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_PARENT)83 void translate(const Matrix3 &axes, Real x, Real y, Real z, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_PARENT) 84 84 { this->node_->translate(axes, x, y, z, relativeTo); } 85 85 86 inlinevoid yaw(const Radian &angle, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL)86 void yaw(const Radian &angle, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL) 87 87 { this->node_->yaw(angle, relativeTo); } 88 inlinevoid pitch(const Radian &angle, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL)88 void pitch(const Radian &angle, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL) 89 89 { this->node_->pitch(angle, relativeTo); } 90 inlinevoid roll(const Radian &angle, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL)90 void roll(const Radian &angle, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL) 91 91 { this->node_->roll(angle, relativeTo); } 92 92 void setYawPitchRoll(const Degree& yaw, const Degree& pitch, const Degree& roll); 93 93 94 inlinevoid setYaw(const Degree &angle)94 void setYaw(const Degree &angle) 95 95 { this->node_->yaw(angle, Ogre::Node::TS_LOCAL); } 96 inlinevoid setPitch(const Degree &angle)96 void setPitch(const Degree &angle) 97 97 { this->node_->pitch(angle, Ogre::Node::TS_LOCAL); } 98 inlinevoid setRoll(const Degree &angle)98 void setRoll(const Degree &angle) 99 99 { this->node_->roll(angle, Ogre::Node::TS_LOCAL); } 100 100 101 inlineconst Ogre::Quaternion& getOrientation()101 const Ogre::Quaternion& getOrientation() 102 102 { return this->node_->getOrientation(); } 103 inlinevoid setOrientation(const Ogre::Quaternion& quat)103 void setOrientation(const Ogre::Quaternion& quat) 104 104 { this->node_->setOrientation(quat); } 105 inlinevoid rotate(const Vector3 &axis, const Radian &angle, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL)105 void rotate(const Vector3 &axis, const Radian &angle, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL) 106 106 { this->node_->rotate(axis, angle, relativeTo); } 107 inlinevoid setDirectionLoader(Real x, Real y, Real z)107 void setDirectionLoader(Real x, Real y, Real z) 108 108 { this->setDirection(x, y, z); } 109 inlinevoid setDirection(Real x, Real y, Real z, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z)109 void setDirection(Real x, Real y, Real z, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z) 110 110 { this->node_->setDirection(x, y, z, relativeTo, localDirectionVector); } 111 inlinevoid setDirection(const Vector3 &vec, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z)111 void setDirection(const Vector3 &vec, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z) 112 112 { this->node_->setDirection(vec, relativeTo, localDirectionVector); } 113 inlinevoid lookAt(const Vector3 &targetPoint, Ogre::Node::TransformSpace relativeTo, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z)113 void lookAt(const Vector3 &targetPoint, Ogre::Node::TransformSpace relativeTo, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z) 114 114 { this->node_->lookAt(targetPoint, relativeTo, localDirectionVector); } 115 115 116 inlinevoid setScale(const Vector3 &scale)116 void setScale(const Vector3 &scale) 117 117 { this->node_->setScale(scale); } 118 inlinevoid setScale(Real x, Real y, Real z)118 void setScale(Real x, Real y, Real z) 119 119 { this->node_->setScale(x, y, z); } 120 inlinevoid setScale(Real scale)120 void setScale(Real scale) 121 121 { this->node_->setScale(scale, scale, scale); } 122 inlinevoid setTotalScale(Real scale)122 void setTotalScale(Real scale) 123 123 { this->node_->setScale(scale, scale, scale); } 124 inlineconst Vector3& getScale(void) const124 const Vector3& getScale(void) const 125 125 { return this->node_->getScale(); } 126 inlinevoid scale(const Vector3 &scale)126 void scale(const Vector3 &scale) 127 127 { this->node_->scale(scale); } 128 inlinevoid scale(Real x, Real y, Real z)128 void scale(Real x, Real y, Real z) 129 129 { this->node_->scale(x, y, z); } 130 inlinevoid scale(Real scale)130 void scale(Real scale) 131 131 { this->node_->scale(scale, scale, scale); } 132 132 133 inlinevoid attachObject(Ogre::MovableObject *obj)133 void attachObject(Ogre::MovableObject *obj) 134 134 { this->node_->attachObject(obj); } 135 inlinevoid attachObject(Mesh &mesh)135 void attachObject(Mesh &mesh) 136 136 { this->node_->attachObject(mesh.getEntity()); } 137 inlinevoid detachObject(Ogre::MovableObject *obj)137 void detachObject(Ogre::MovableObject *obj) 138 138 { this->node_->detachObject(obj); } 139 inlinevoid detachAllObjects()139 void detachAllObjects() 140 140 { this->node_->detachAllObjects(); } 141 141 142 inlinevoid setVelocity(const Vector3& velocity)142 void setVelocity(const Vector3& velocity) 143 143 { this->velocity_ = velocity; } 144 inlinevoid setVelocity(Real x, Real y, Real z)144 void setVelocity(Real x, Real y, Real z) 145 145 { this->velocity_.x = x; this->velocity_.y = y; this->velocity_.z = z; } 146 inlineconst Vector3& getVelocity() const146 const Vector3& getVelocity() const 147 147 { return this->velocity_; } 148 148 149 inlinevoid setAcceleration(const Vector3& acceleration)149 void setAcceleration(const Vector3& acceleration) 150 150 { this->acceleration_ = acceleration; } 151 inlinevoid setAcceleration(Real x, Real y, Real z)151 void setAcceleration(Real x, Real y, Real z) 152 152 { this->acceleration_.x = x; this->acceleration_.y = y; this->acceleration_.z = z; } 153 inlineconst Vector3& getAcceleration() const153 const Vector3& getAcceleration() const 154 154 { return this->acceleration_; } 155 155 156 inlinevoid setRotationAxisLoader(const Vector3& axis)156 void setRotationAxisLoader(const Vector3& axis) 157 157 { this->rotationAxis_ = axis; rotationAxis_.normalise(); } 158 inlinevoid setRotationAxis(const Vector3& axis)158 void setRotationAxis(const Vector3& axis) 159 159 { this->rotationAxis_ = axis; rotationAxis_.normalise(); } 160 inlinevoid setRotationAxis(Real x, Real y, Real z)160 void setRotationAxis(Real x, Real y, Real z) 161 161 { this->rotationAxis_.x = x; this->rotationAxis_.y = y; this->rotationAxis_.z = z; rotationAxis_.normalise(); } 162 inlineconst Vector3& getRotationAxis() const162 const Vector3& getRotationAxis() const 163 163 { return this->rotationAxis_; } 164 164 165 // inlinevoid setRotationRate(const Radian& angle)165 // void setRotationRate(const Radian& angle) 166 166 // { this->rotationRate_ = angle; } 167 inlinevoid setRotationRate(const Degree& angle)167 void setRotationRate(const Degree& angle) 168 168 { this->rotationRate_ = angle; this->setStatic(angle == Degree(0)); } 169 inlineconst Radian& getRotationRate() const169 const Radian& getRotationRate() const 170 170 { return this->rotationRate_; } 171 171 172 inlinevoid setMomentum(const Radian& angle)172 void setMomentum(const Radian& angle) 173 173 { this->momentum_ = angle; } 174 inlinevoid setMomentum(const Degree& angle)174 void setMomentum(const Degree& angle) 175 175 { this->momentum_ = angle; } 176 inlineconst Radian& getMomentum() const176 const Radian& getMomentum() const 177 177 { return this->momentum_; } 178 178 179 inlinevoid setStatic(bool bStatic)179 void setStatic(bool bStatic) 180 180 { this->bStatic_ = bStatic; } 181 inlinebool isStatic()181 bool isStatic() 182 182 { return this->bStatic_; } 183 183 -
code/branches/gcc43/src/orxonox/objects/weapon/AmmunitionDump.h
r1505 r1634 60 60 61 61 protected: 62 inlinebool create() { return Synchronisable::create(); }62 bool create() { return Synchronisable::create(); } 63 63 void registerAllVariables(); 64 64 -
code/branches/gcc43/src/orxonox/objects/weapon/BaseWeapon.h
r1505 r1634 72 72 void setAmmoDump(AmmunitionDump*); 73 73 74 inlinevirtual void loadParams(TiXmlElement* xmlElem) { Model::loadParams(xmlElem); };74 virtual void loadParams(TiXmlElement* xmlElem) { Model::loadParams(xmlElem); }; 75 75 76 76 virtual void tick(float dt); -
code/branches/gcc43/src/orxonox/objects/weapon/Bullet.h
r1505 r1634 46 46 virtual void tick(float dt) { } 47 47 48 inlinevirtual void loadParams(TiXmlElement* xmlElem) { Model::loadParams(xmlElem); };48 virtual void loadParams(TiXmlElement* xmlElem) { Model::loadParams(xmlElem); }; 49 49 }; 50 50 } -
code/branches/gcc43/src/orxonox/objects/weapon/BulletManager.h
r1505 r1634 57 57 virtual void tick(float dt); 58 58 59 inlinevirtual void loadParams(TiXmlElement* xmlElem) { BaseObject::loadParams(xmlElem); };59 virtual void loadParams(TiXmlElement* xmlElem) { BaseObject::loadParams(xmlElem); }; 60 60 61 61 protected: 62 inlinebool create() { return Synchronisable::create(); }62 bool create() { return Synchronisable::create(); } 63 63 void registerAllVariables(); 64 64 -
code/branches/gcc43/src/orxonox/tools/BillboardSet.h
r1558 r1634 46 46 void setBillboardSet(const std::string& file, const ColourValue& colour = ColourValue(1.0, 1.0, 1.0), int count = 1, const Vector3& position = Vector3::ZERO); 47 47 48 inlineOgre::BillboardSet* getBillboardSet()48 Ogre::BillboardSet* getBillboardSet() 49 49 { return this->billboardSet_; } 50 50 51 inlineconst std::string& getName() const51 const std::string& getName() const 52 52 { return this->billboardSet_->getName(); } 53 53 54 inlinevoid setVisible(bool visible)54 void setVisible(bool visible) 55 55 { this->billboardSet_->setVisible(visible); } 56 inlinebool getVisible() const56 bool getVisible() const 57 57 { return this->billboardSet_->getVisible(); } 58 58 -
code/branches/gcc43/src/orxonox/tools/Light.h
r1505 r1634 47 47 void setLight(Ogre::Light::LightTypes type = Ogre::Light::LT_POINT, const ColourValue& diffuse = ColourValue(1.0, 1.0, 1.0), const ColourValue& specular = ColourValue(1.0, 1.0, 1.0)); 48 48 49 inlineOgre::Light* getLight()49 Ogre::Light* getLight() 50 50 { return this->light_; } 51 51 52 inlineconst std::string& getName() const52 const std::string& getName() const 53 53 { return this->light_->getName(); } 54 54 -
code/branches/gcc43/src/orxonox/tools/Mesh.h
r1558 r1634 45 45 void setMesh(const std::string& file); 46 46 47 inlineOgre::Entity* getEntity()47 Ogre::Entity* getEntity() 48 48 { return this->entity_; } 49 49 50 inlineconst std::string& getName() const50 const std::string& getName() const 51 51 { return this->entity_->getName(); } 52 52 53 inlinevoid setVisible(bool visible)53 void setVisible(bool visible) 54 54 { this->entity_->setVisible(visible); } 55 inlinebool getVisible() const55 bool getVisible() const 56 56 { return this->entity_->getVisible(); } 57 57 -
code/branches/gcc43/src/orxonox/tools/ParticleInterface.h
r1563 r1634 51 51 ~ParticleInterface(); 52 52 53 inlineOgre::ParticleSystem* getParticleSystem() const53 Ogre::ParticleSystem* getParticleSystem() const 54 54 { return this->particleSystem_; } 55 55 … … 77 77 void detailLevelChanged(unsigned int newlevel); 78 78 79 inlinevoid storeThisAsCurrentParticleInterface()79 void storeThisAsCurrentParticleInterface() 80 80 { ParticleInterface::currentParticleInterface_s = this; } 81 inlinestatic ParticleInterface* getCurrentParticleInterface()81 static ParticleInterface* getCurrentParticleInterface() 82 82 { return ParticleInterface::currentParticleInterface_s; } 83 83 -
code/branches/gcc43/src/orxonox/tools/Timer.h
r1552 r1634 81 81 82 82 /** @brief Starts the Timer: Function-call after 'interval' seconds. */ 83 inlinevoid startTimer()83 void startTimer() 84 84 { this->bActive_ = true; this->time_ = this->interval_; } 85 85 /** @brief Stops the Timer. */ 86 inlinevoid stopTimer()86 void stopTimer() 87 87 { this->bActive_ = false; this->time_ = this->interval_; } 88 88 /** @brief Pauses the Timer - it will continue with the actual state if you unpause it. */ 89 inlinevoid pauseTimer()89 void pauseTimer() 90 90 { this->bActive_ = false; } 91 91 /** @brief Unpauses the Timer - continues with the given state. */ 92 inlinevoid unpauseTimer()92 void unpauseTimer() 93 93 { this->bActive_ = true; } 94 94 /** @brief Returns true if the Timer is active (= not stoped, not paused). @return True = Time is active */ 95 inlinebool isActive() const95 bool isActive() const 96 96 { return this->bActive_; } 97 97 /** @brief Gives the Timer some extra time. @param time The amount of extra time in seconds */ 98 inlinevoid addTime(float time)98 void addTime(float time) 99 99 { this->time_ += time; } 100 100 /** @brief Decreases the remaining time of the Timer. @param time The amount of time to remove */ 101 inlinevoid removeTime(float time)101 void removeTime(float time) 102 102 { this->time_ -= time; } 103 103 /** @brief Sets the interval of the Timer. @param interval The interval */ 104 inlinevoid setInterval(float interval)104 void setInterval(float interval) 105 105 { this->interval_ = interval; } 106 106 /** @brief Sets bLoop to a given value. @param bLoop True = loop */ 107 inlinevoid setLoop(bool bLoop)107 void setLoop(bool bLoop) 108 108 { this->bLoop_ = bLoop; } 109 109
Note: See TracChangeset
for help on using the changeset viewer.