diff -r 561892e2a30e -r 25becd2cb026 src/proto2/NetworkServer.hh --- a/src/proto2/NetworkServer.hh Wed Dec 03 18:59:10 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +0,0 @@ -#ifndef NETWORKSERVER_HH -#define NETWORKSERVER_HH - -#include "Network.hh" -#include "GameState.hh" -#include "NetworkSession.hh" -#include "NetworkObject.hh" - -#include -#include -#include - -// forward-declare -class NetworkServerPlayer; - -class NetworkServer : public NetworkCore { - friend class NetworkServerPlayer; - - protected: - NetworkSession netsession; - NetworkObject_ServerController netobjs; - std::list players; - - public: - NetworkServer (GameState &state, const NetworkAddress &listen_addr); - - protected: - void handle_disconnect (NetworkServerPlayer *player); - - private: - void on_node_connected (NetworkNode *node); -}; - -class NetworkServerPlayer : public RemotePlayer { - private: - NetworkServer &server; - NetworkObject_Server obj; - NetworkNode *node; - - CL_SlotContainer slots; - - public: - NetworkServerPlayer (NetworkServer &server, NetworkNode *node); - - private: - void on_disconnected (void); - void on_move (NetworkNode *node, NetworkPacket &pkt); - - void send_position_update (void); -}; - -#endif