Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9656 in orxonox.OLD for trunk/src/world_entities/playable.h


Ignore:
Timestamp:
Aug 4, 2006, 11:01:28 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the proxy bache back with no conflicts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/playable.h

    r9406 r9656  
    1111#include "event.h"
    1212#include <vector>
     13#include <list>
    1314
    1415#include "world_entities/weapons/weapon_manager.h"
     
    4344
    4445  virtual void loadParams(const TiXmlElement* root);
     46  void varChangeHandler( std::list< int > & id );
    4547
    4648  // Weapon and Pickups
     
    6264  inline const std::vector<int>& getEventList() { return this->events; };
    6365
     66
    6467  // Camera and Playmode
    6568  void attachCamera();
     
    7275  void setPlayDirection(float angle, float dirX, float dirY, float dirZ, float speed = 0.0f);
    7376
     77  // Networking interface
    7478  inline void setScore( int score ) { this->score = score; }
    7579  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
    7684
    7785  void setEnterRadius(float radius) { this->enterRadius = radius; };
     
    8593  virtual void tick(float dt);
    8694
     95
     96  inline bool beFire() const { return this->bFire; }
     97  inline void fire(bool bF) { this->bFire = bF;}
     98
    8799  // Transformations:
    88100  static Playable::Playmode stringToPlaymode(const std::string& playmode);
    89101  static const std::string& playmodeToString(Playable::Playmode playmode);
    90102  static const std::string playmodeNames[];
    91 
    92   inline bool beFire(){ return this->bFire; }
    93   inline void fire(bool bF){ this->bFire = bF;}
    94103
    95104protected:
     
    117126
    118127  int                   score;              //!< players score
     128  int                   teamChangeHandler;  //!< handler id for team changes network sync
     129  int                   teamId;             //!< id of the current team
    119130
    120131  bool                  bDead;
     
    124135  float                 enterRadius;        //!< How far one can be away from the Playable to enter it.
    125136
    126   WorldEntity* collider;
     137  WorldEntity*          collider;
    127138};
    128139
Note: See TracChangeset for help on using the changeset viewer.