Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9507 in orxonox.OLD for branches/proxy/src/world_entities/playable.h


Ignore:
Timestamp:
Jul 27, 2006, 1:59:30 PM (18 years ago)
Author:
patrick
Message:

the player team change should now work on all clients in the network, its now a global synch variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/world_entities/playable.h

    r9501 r9507  
    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
     
    6163  /** @return a List of Events in PEV_* sytle */
    6264  inline const std::vector<int>& getEventList() { return this->events; };
    63   virtual void setTeam(int teamID);
    6465
    6566
     
    7778  inline void setScore( int score ) { this->score = score; }
    7879  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
    7984
    8085  void setEnterRadius(float radius) { this->enterRadius = radius; };
     
    121126
    122127  int                   score;              //!< players score
     128  int                   teamChangeHandler;  //!< handler id for team changes network sync
     129  int                   teamId;             //!< id of the current team
    123130
    124131  bool                  bDead;
     
    128135  float                 enterRadius;        //!< How far one can be away from the Playable to enter it.
    129136
    130   WorldEntity* collider;
     137  WorldEntity*          collider;
    131138};
    132139
Note: See TracChangeset for help on using the changeset viewer.