better NetworkBuffer/Packet stuff + some additional Physics+Network stuff + random fixes
#ifndef PLAYER_HH
#define PLAYER_HH
class Player;
class LocalPlayer;
class RemotePlayer;
#include "GameState.hh"
#include "PhysicsObject.hh"
class Player : public PhysicsObject {
protected:
GameState &state;
bool visible;
public:
Player(GameState &state, Vector position, bool visible);
void debugInfo ();
virtual void handleMove (PlayerInput_Move input);
virtual void handleDig (Vector position, float radius);
void shoot (void);
};
class LocalPlayer : public Player {
protected:
LocalPlayer (GameState &state, Vector pos, bool visible) : Player(state, pos, visible) { }
};
class RemotePlayer : public Player {
protected:
RemotePlayer (GameState &state, Vector pos, bool visible) : Player(state, pos, visible) { }
};
#endif