Last change
on this file since 636 was
49,
checked in by Sam Hocevar, 15 years ago
|
- Imported original public domain release, for future reference.
|
File size:
663 bytes
|
Line | |
---|
1 | #ifndef __SERVER2_HPP_ |
---|
2 | #define __SERVER2_HPP_ |
---|
3 | #error hi |
---|
4 | |
---|
5 | class client_descriptor; |
---|
6 | |
---|
7 | |
---|
8 | class game_server |
---|
9 | { |
---|
10 | client_descriptor *client_list; |
---|
11 | int sync_check; |
---|
12 | public : |
---|
13 | game_server(int argc, char **argv, int port); |
---|
14 | // int init_failed() { return in==NULL; } |
---|
15 | void check_for_clients(); |
---|
16 | void receive_inputs(); // reads inputs from all non-local clients |
---|
17 | void send_inputs(); // pass collected inputs to all non-local clients |
---|
18 | void join_new_players(); |
---|
19 | ~game_server(); |
---|
20 | } ; |
---|
21 | |
---|
22 | extern int start_running; |
---|
23 | extern game_server *local_server; // created on server machine, NULL on all others |
---|
24 | |
---|
25 | void game_net_init(int argc, char **argv); |
---|
26 | #endif |
---|
27 | |
---|
28 | |
---|
Note: See
TracBrowser
for help on using the repository browser.