Changeset 9656 in orxonox.OLD for trunk/src/world_entities/playable.h
- Timestamp:
- Aug 4, 2006, 11:01:28 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/playable.h
r9406 r9656 11 11 #include "event.h" 12 12 #include <vector> 13 #include <list> 13 14 14 15 #include "world_entities/weapons/weapon_manager.h" … … 43 44 44 45 virtual void loadParams(const TiXmlElement* root); 46 void varChangeHandler( std::list< int > & id ); 45 47 46 48 // Weapon and Pickups … … 62 64 inline const std::vector<int>& getEventList() { return this->events; }; 63 65 66 64 67 // Camera and Playmode 65 68 void attachCamera(); … … 72 75 void setPlayDirection(float angle, float dirX, float dirY, float dirZ, float speed = 0.0f); 73 76 77 // Networking interface 74 78 inline void setScore( int score ) { this->score = score; } 75 79 inline int getScore() { return this->score; } 80 inline void setTeamId( int teamId) { this->teamId = teamId;} 81 inline int getTeamId() const { return this->teamId; } 82 virtual void setTeam(int teamID); 83 76 84 77 85 void setEnterRadius(float radius) { this->enterRadius = radius; }; … … 85 93 virtual void tick(float dt); 86 94 95 96 inline bool beFire() const { return this->bFire; } 97 inline void fire(bool bF) { this->bFire = bF;} 98 87 99 // Transformations: 88 100 static Playable::Playmode stringToPlaymode(const std::string& playmode); 89 101 static const std::string& playmodeToString(Playable::Playmode playmode); 90 102 static const std::string playmodeNames[]; 91 92 inline bool beFire(){ return this->bFire; }93 inline void fire(bool bF){ this->bFire = bF;}94 103 95 104 protected: … … 117 126 118 127 int score; //!< players score 128 int teamChangeHandler; //!< handler id for team changes network sync 129 int teamId; //!< id of the current team 119 130 120 131 bool bDead; … … 124 135 float enterRadius; //!< How far one can be away from the Playable to enter it. 125 136 126 WorldEntity* collider;137 WorldEntity* collider; 127 138 }; 128 139
Note: See TracChangeset
for help on using the changeset viewer.