diff -r e28b28b8817c -r 617813994ab1 proto/p2/GameState.hh --- a/proto/p2/GameState.hh Mon Nov 03 22:20:21 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,53 +0,0 @@ -#ifndef GAMESTATE_HH -#define GAMESTATE_HH - -#include "Dimension.hh" - -class GameState { - public: - Dimension map_dimensions; - std::list player_list; - - LocalPlayer &getLocalPlayer (void) { - // XXX: jotain - } -}; - -enum PlayerType { - PLAYER_LOCAL = 0x01; - PLAYER_REMOTE = 0x02; -}; - -class Player { - private: - Coordinate position; - - public: - - Player(Coordinate c) : position(c) {} - - PlayerType type; - Dimensions dimensions; - - Coordinate getPosition (void) const { - return this->position; - } -}; - -class LocalPlayer : public Player { - public: - void doMovement (PositionDelta d) { - this->position += d; - - // XXX: notify server - } -}; - -class RemotePlayer : public Player { - public: - void updatePosition (Position p) { - this->position = p; - } -} - -#endif