Changeset 5829 in orxonox.OLD for branches/network/src/world_entities/player.h
- Timestamp:
- Nov 30, 2005, 9:43:05 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/world_entities/player.h
r5500 r5829 11 11 #include "event_listener.h" 12 12 13 template<class T> class tList; 13 template<class T> 14 class tList; 14 15 class Weapon; 15 16 class WeaponManager; … … 25 26 class Player : public WorldEntity, public EventListener 26 27 { 27 friend class World;28 friend class World; 28 29 29 30 public: … … 39 40 void removeWeapon(Weapon* weapon); 40 41 42 /* WorldEntity functions */ 41 43 virtual void postSpawn(); 42 44 virtual void leftWorld(); … … 48 50 virtual void process(const Event &event); 49 51 52 /* Synchronizeable functions */ 53 virtual void writeBytes(const byte* data, int length); 54 virtual int readBytes(byte* data); 50 55 51 56 private: 52 57 void move(float time); 53 58 void weaponAction(); 59 60 /* Synchronizeable functions */ 61 virtual void writeDebug() const; 62 virtual void readDebug() const; 54 63 55 64 // !! temporary !! … … 70 79 float travelSpeed; //!< the current speed of the player (to make soft movement) 71 80 float acceleration; //!< the acceleration of the player. 81 82 byte* inData; 83 int inLength; 84 int inBufferLength; 85 int recLength; 86 byte* outData; 87 int outLength; 88 int outBufferLength; 89 int sentLength; 90 72 91 }; 73 92
Note: See TracChangeset
for help on using the changeset viewer.