Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 29, 2008, 7:36:33 PM (16 years ago)
Author:
nicolasc
Message:

just a test - don't morge this

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gcc43/src/orxonox/objects/WorldEntity.h

    r1535 r1634  
    5353            virtual void loadParams(TiXmlElement* xmlElem);
    5454            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    55             virtual inline bool create(){ return Synchronisable::create(); }
     55            virtual bool create(){ return Synchronisable::create(); }
    5656
    5757            void attachWorldEntity(WorldEntity* entity);
    5858            const WorldEntity* getAttachedWorldEntity(unsigned int index) const;
    5959
    60             inline Ogre::SceneNode* getNode()
     60            Ogre::SceneNode* getNode()
    6161                { return this->node_; }
    6262
    63             inline void setNode(Ogre::SceneNode* node)
     63            void setNode(Ogre::SceneNode* node)
    6464                { this->node_ = node; }
    6565
    66             inline void setPosition(const Vector3& pos)
     66            void setPosition(const Vector3& pos)
    6767                { this->node_->setPosition(pos); }
    68             inline void setPositionLoader1(const Vector3& pos)
     68            void setPositionLoader1(const Vector3& pos)
    6969                { this->node_->setPosition(pos); }
    70             inline void setPositionLoader2(Real x, Real y, Real z)
     70            void setPositionLoader2(Real x, Real y, Real z)
    7171                { this->node_->setPosition(x, y, z); }
    72             inline void setPosition(Real x, Real y, Real z)
     72            void setPosition(Real x, Real y, Real z)
    7373                { this->node_->setPosition(x, y, z); }
    74             inline const Vector3& getPosition() const
     74            const Vector3& getPosition() const
    7575                { return this->node_->getPosition(); }
    7676
    77             inline void 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)
    7878                { this->node_->translate(d, relativeTo); }
    79             inline void 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)
    8080                { this->node_->translate(x, y, z, relativeTo); }
    81             inline void 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)
    8282                { this->node_->translate(axes, move, relativeTo); }
    83             inline void 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)
    8484                { this->node_->translate(axes, x, y, z, relativeTo); }
    8585
    86             inline void 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)
    8787                { this->node_->yaw(angle, relativeTo); }
    88             inline void 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)
    8989                { this->node_->pitch(angle, relativeTo); }
    90             inline void 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)
    9191                { this->node_->roll(angle, relativeTo); }
    9292            void setYawPitchRoll(const Degree& yaw, const Degree& pitch, const Degree& roll);
    9393
    94             inline void setYaw(const Degree &angle)
     94            void setYaw(const Degree &angle)
    9595                { this->node_->yaw(angle, Ogre::Node::TS_LOCAL); }
    96             inline void setPitch(const Degree &angle)
     96            void setPitch(const Degree &angle)
    9797                { this->node_->pitch(angle, Ogre::Node::TS_LOCAL); }
    98             inline void setRoll(const Degree &angle)
     98            void setRoll(const Degree &angle)
    9999                { this->node_->roll(angle, Ogre::Node::TS_LOCAL); }
    100100
    101             inline const Ogre::Quaternion& getOrientation()
     101            const Ogre::Quaternion& getOrientation()
    102102              { return this->node_->getOrientation(); }
    103             inline void setOrientation(const Ogre::Quaternion& quat)
     103            void setOrientation(const Ogre::Quaternion& quat)
    104104              { this->node_->setOrientation(quat); }
    105             inline void 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)
    106106              { this->node_->rotate(axis, angle, relativeTo); }
    107             inline void setDirectionLoader(Real x, Real y, Real z)
     107            void setDirectionLoader(Real x, Real y, Real z)
    108108              { this->setDirection(x, y, z); }
    109             inline void 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)
    110110              { this->node_->setDirection(x, y, z, relativeTo, localDirectionVector); }
    111             inline void 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)
    112112              { this->node_->setDirection(vec, relativeTo, localDirectionVector); }
    113             inline void 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)
    114114              { this->node_->lookAt(targetPoint, relativeTo, localDirectionVector); }
    115115
    116             inline void setScale(const Vector3 &scale)
     116            void setScale(const Vector3 &scale)
    117117              { this->node_->setScale(scale); }
    118             inline void setScale(Real x, Real y, Real z)
     118            void setScale(Real x, Real y, Real z)
    119119              { this->node_->setScale(x, y, z); }
    120             inline void setScale(Real scale)
     120            void setScale(Real scale)
    121121              { this->node_->setScale(scale, scale, scale); }
    122             inline void setTotalScale(Real scale)
     122            void setTotalScale(Real scale)
    123123              { this->node_->setScale(scale, scale, scale); }
    124             inline const Vector3& getScale(void) const
     124            const Vector3& getScale(void) const
    125125              { return this->node_->getScale(); }
    126             inline void scale(const Vector3 &scale)
     126            void scale(const Vector3 &scale)
    127127              { this->node_->scale(scale); }
    128             inline void scale(Real x, Real y, Real z)
     128            void scale(Real x, Real y, Real z)
    129129              { this->node_->scale(x, y, z); }
    130             inline void scale(Real scale)
     130            void scale(Real scale)
    131131              { this->node_->scale(scale, scale, scale); }
    132132
    133             inline void attachObject(Ogre::MovableObject *obj)
     133            void attachObject(Ogre::MovableObject *obj)
    134134              { this->node_->attachObject(obj); }
    135             inline void attachObject(Mesh &mesh)
     135            void attachObject(Mesh &mesh)
    136136              { this->node_->attachObject(mesh.getEntity()); }
    137             inline void detachObject(Ogre::MovableObject *obj)
     137            void detachObject(Ogre::MovableObject *obj)
    138138              { this->node_->detachObject(obj); }
    139             inline void detachAllObjects()
     139            void detachAllObjects()
    140140              { this->node_->detachAllObjects(); }
    141141
    142             inline void setVelocity(const Vector3& velocity)
     142            void setVelocity(const Vector3& velocity)
    143143                { this->velocity_ = velocity; }
    144             inline void setVelocity(Real x, Real y, Real z)
     144            void setVelocity(Real x, Real y, Real z)
    145145                { this->velocity_.x = x; this->velocity_.y = y; this->velocity_.z = z; }
    146             inline const Vector3& getVelocity() const
     146            const Vector3& getVelocity() const
    147147                { return this->velocity_; }
    148148
    149             inline void setAcceleration(const Vector3& acceleration)
     149            void setAcceleration(const Vector3& acceleration)
    150150                { this->acceleration_ = acceleration; }
    151             inline void setAcceleration(Real x, Real y, Real z)
     151            void setAcceleration(Real x, Real y, Real z)
    152152                { this->acceleration_.x = x; this->acceleration_.y = y; this->acceleration_.z = z; }
    153             inline const Vector3& getAcceleration() const
     153            const Vector3& getAcceleration() const
    154154                { return this->acceleration_; }
    155155
    156             inline void setRotationAxisLoader(const Vector3& axis)
     156            void setRotationAxisLoader(const Vector3& axis)
    157157                { this->rotationAxis_ = axis; rotationAxis_.normalise(); }
    158             inline void setRotationAxis(const Vector3& axis)
     158            void setRotationAxis(const Vector3& axis)
    159159                { this->rotationAxis_ = axis; rotationAxis_.normalise(); }
    160             inline void setRotationAxis(Real x, Real y, Real z)
     160            void setRotationAxis(Real x, Real y, Real z)
    161161                { this->rotationAxis_.x = x; this->rotationAxis_.y = y; this->rotationAxis_.z = z; rotationAxis_.normalise(); }
    162             inline const Vector3& getRotationAxis() const
     162            const Vector3& getRotationAxis() const
    163163                { return this->rotationAxis_; }
    164164
    165 //            inline void setRotationRate(const Radian& angle)
     165//            void setRotationRate(const Radian& angle)
    166166//                { this->rotationRate_ = angle; }
    167             inline void setRotationRate(const Degree& angle)
     167            void setRotationRate(const Degree& angle)
    168168                { this->rotationRate_ = angle; this->setStatic(angle == Degree(0)); }
    169             inline const Radian& getRotationRate() const
     169            const Radian& getRotationRate() const
    170170                { return this->rotationRate_; }
    171171
    172             inline void setMomentum(const Radian& angle)
     172            void setMomentum(const Radian& angle)
    173173                { this->momentum_ = angle; }
    174             inline void setMomentum(const Degree& angle)
     174            void setMomentum(const Degree& angle)
    175175                { this->momentum_ = angle; }
    176             inline const Radian& getMomentum() const
     176            const Radian& getMomentum() const
    177177                { return this->momentum_; }
    178178
    179             inline void setStatic(bool bStatic)
     179            void setStatic(bool bStatic)
    180180                { this->bStatic_ = bStatic; }
    181             inline bool isStatic()
     181            bool isStatic()
    182182                { return this->bStatic_; }
    183183
Note: See TracChangeset for help on using the changeset viewer.