Changeset 1634 for code/branches/gcc43/src/orxonox/objects
- Timestamp:
- Jun 29, 2008, 7:36:33 PM (16 years ago)
- Location:
- code/branches/gcc43/src/orxonox/objects
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.