Changeset 1916 for code/branches/objecthierarchy/src/network/Server.h
- Timestamp:
- Oct 14, 2008, 12:20:14 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/network/Server.h
r1907 r1916 52 52 { 53 53 const int CLIENTID_SERVER = 0; 54 54 55 55 /** 56 56 * This class is the root class of the network module for a server. … … 64 64 Server(int port, const char *bindAddress); 65 65 ~Server(); 66 66 67 67 void open(); 68 68 void close(); … … 77 77 unsigned int shipID(){return 0;} 78 78 unsigned int playerID(){return 0;} 79 79 80 80 bool addClient(ENetEvent *event); 81 81 bool createClient(int clientID); 82 bool createShip(ClientInformation *client);83 82 bool disconnectClient(ENetEvent *event); 84 83 void disconnectClient(int clientID); … … 88 87 bool sendObjectDeletes(); 89 88 virtual bool chat(std::string message); 90 89 91 90 //void processChat( chat *data, int clientId); 92 91 ConnectionManager *connection; 93 92 GamestateManager *gamestates_; 94 93 95 94 96 95 float timeSinceLastUpdate_; 97 96 };
Note: See TracChangeset
for help on using the changeset viewer.