Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 14, 2008, 7:20:00 PM (16 years ago)
Author:
landauf
Message:
  • added thruster flares
  • used new particle effects
  • enemies with less health emit smoke and fire

!!!! MEDIA UPDATE !!!

File:
1 edited

Legend:

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

    r1535 r1602  
    5858            const WorldEntity* getAttachedWorldEntity(unsigned int index) const;
    5959
    60             inline Ogre::SceneNode* getNode()
     60            inline Ogre::SceneNode* getNode() const
    6161                { return this->node_; }
    6262
     
    7575                { return this->node_->getPosition(); }
    7676
    77             inline void translate(const Vector3 &d, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_PARENT)
     77            inline void translate(const Vector3& d, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_PARENT)
    7878                { this->node_->translate(d, relativeTo); }
    7979            inline 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            inline 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            inline 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            inline 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            inline 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            inline 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            inline void setYaw(const Degree& angle)
    9595                { this->node_->yaw(angle, Ogre::Node::TS_LOCAL); }
    96             inline void setPitch(const Degree &angle)
     96            inline void setPitch(const Degree& angle)
    9797                { this->node_->pitch(angle, Ogre::Node::TS_LOCAL); }
    98             inline void setRoll(const Degree &angle)
     98            inline void setRoll(const Degree& angle)
    9999                { this->node_->roll(angle, Ogre::Node::TS_LOCAL); }
    100100
     
    103103            inline 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            inline void rotate(const Vector3& axis, const Radian& angle, Ogre::Node::TransformSpace relativeTo=Ogre::Node::TS_LOCAL)
    106106              { this->node_->rotate(axis, angle, relativeTo); }
    107107            inline 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            inline 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            inline 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            inline 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            inline void setScale(const Vector3& scale)
    117117              { this->node_->setScale(scale); }
    118118            inline void setScale(Real x, Real y, Real z)
     
    124124            inline const Vector3& getScale(void) const
    125125              { return this->node_->getScale(); }
    126             inline void scale(const Vector3 &scale)
     126            inline void scale(const Vector3& scale)
    127127              { this->node_->scale(scale); }
    128128            inline void scale(Real x, Real y, Real z)
     
    131131              { this->node_->scale(scale, scale, scale); }
    132132
    133             inline void attachObject(Ogre::MovableObject *obj)
     133            void attachObject(const WorldEntity& obj) const;
     134            void attachObject(WorldEntity* obj) const;
     135            inline void attachObject(Ogre::MovableObject* obj) const
    134136              { this->node_->attachObject(obj); }
    135             inline void attachObject(Mesh &mesh)
     137            inline void attachObject(Mesh& mesh) const
    136138              { this->node_->attachObject(mesh.getEntity()); }
    137             inline void detachObject(Ogre::MovableObject *obj)
     139            inline void detachObject(Ogre::MovableObject* obj) const
    138140              { this->node_->detachObject(obj); }
    139             inline void detachAllObjects()
     141            inline void detachAllObjects() const
    140142              { this->node_->detachAllObjects(); }
    141143
     
    179181            inline void setStatic(bool bStatic)
    180182                { this->bStatic_ = bStatic; }
    181             inline bool isStatic()
     183            inline bool isStatic() const
    182184                { return this->bStatic_; }
    183185
Note: See TracChangeset for help on using the changeset viewer.