Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 31, 2010, 3:40:41 PM (15 years ago)
Author:
freicy
Message:

by Cyrill Frei

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/fps/src/orxonox/worldentities/pawns/FpsPlayer.h

    r6872 r7052  
    3535#include <LinearMath/btVector3.h>
    3636#include "util/Math.h"
     37#include "tools/Mesh.h"
    3738#include "Pawn.h"
    3839
     
    5859            virtual void rotateRoll(const Vector2& value);
    5960           
     61           
     62            inline void setMeshSource(const std::string& meshname)
     63                { this->meshSrc_ = meshname; this->changedMesh(); }
     64            inline const std::string& getMeshSource() const
     65                { return this->meshSrc_; }
     66           
    6067            void boost();                                               //acctually jump
    6168
     
    6370           
    6471            bool collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint);
     72
     73            virtual void addedWeaponPack(WeaponPack* wPack);
    6574           
    6675        protected:
     
    7584            float auxilaryThrust_;
    7685            float rotationThrust_;
     86            std::string weaponmashname;
    7787            btVector3 localLinearAcceleration_;
    7888            btVector3 localAngularAcceleration_;
     
    8292            float speed_;
    8393
     94            void changedMesh();
     95            Mesh mesh_;
     96            std::string meshSrc_;
    8497            float yaw_;
    8598            float pitch_;
     
    89102            bool thistickboost;
    90103            Quaternion savedOrientation_;
     104            Ogre::SceneNode* weaponNode;
     105            Ogre::Camera* camera_;
    91106    };
    92107}
Note: See TracChangeset for help on using the changeset viewer.