src/Player.hh
author terom
Thu, 04 Dec 2008 21:59:23 +0000
changeset 200 2dbf40661580
parent 199 f5c86420facd
child 205 905028e58ed1
permissions -rw-r--r--
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