equal
deleted
inserted
replaced
1 #ifndef NETWORKSERVER_HH |
1 #ifndef NETWORKSERVER_HH |
2 #define NETWORKSERVER_HH |
2 #define NETWORKSERVER_HH |
3 |
3 |
4 #include "Network.hh" |
|
5 #include "../GameState.hh" |
4 #include "../GameState.hh" |
6 #include "Session.hh" |
5 #include "Session.hh" |
7 #include "Object.hh" |
6 #include "Object.hh" |
8 |
7 |
9 #include <list> |
8 #include <list> |
11 #include <ClanLib/core.h> |
10 #include <ClanLib/core.h> |
12 |
11 |
13 // forward-declare |
12 // forward-declare |
14 class NetworkServerPlayer; |
13 class NetworkServerPlayer; |
15 |
14 |
16 class NetworkServer : public NetworkCore { |
15 class NetworkServer { |
17 friend class NetworkServerPlayer; |
16 friend class NetworkServerPlayer; |
18 |
17 |
19 protected: |
18 protected: |
|
19 GameState &state; |
|
20 CL_SlotContainer slots; |
|
21 |
20 NetworkSession netsession; |
22 NetworkSession netsession; |
21 NetworkObject_ServerController netobjs; |
23 NetworkObject_ServerController netobjs; |
22 std::list<NetworkServerPlayer *> players; |
24 std::list<NetworkServerPlayer *> players; |
23 |
25 |
24 public: |
26 public: |