Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5829 in orxonox.OLD for branches/network/src/world_entities/player.h


Ignore:
Timestamp:
Nov 30, 2005, 9:43:05 AM (18 years ago)
Author:
patrick
Message:

network: much work on multiplayability, does not yet work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/world_entities/player.h

    r5500 r5829  
    1111#include "event_listener.h"
    1212
    13 template<class T> class tList;
     13template<class T>
     14class tList;
    1415class Weapon;
    1516class WeaponManager;
     
    2526class Player : public WorldEntity, public EventListener
    2627{
    27   friend class World;
     28    friend class World;
    2829
    2930  public:
     
    3940    void removeWeapon(Weapon* weapon);
    4041
     42    /* WorldEntity functions */
    4143    virtual void postSpawn();
    4244    virtual void leftWorld();
     
    4850    virtual void process(const Event &event);
    4951
     52    /* Synchronizeable functions */
     53    virtual void writeBytes(const byte* data, int length);
     54    virtual int readBytes(byte* data);
    5055
    5156  private:
    5257    void move(float time);
    5358    void weaponAction();
     59
     60    /* Synchronizeable functions */
     61    virtual void writeDebug() const;
     62    virtual void readDebug() const;
    5463
    5564    // !! temporary !!
     
    7079    float                 travelSpeed;        //!< the current speed of the player (to make soft movement)
    7180    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
    7291};
    7392
Note: See TracChangeset for help on using the changeset viewer.