Last change
on this file since 528 was
494,
checked in by Sam Hocevar, 11 years ago
|
style: remove trailing spaces, fix copyright statements.
|
-
Property svn:keywords set to
Id
|
File size:
985 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Abuse - dark 2D side-scrolling platform game |
---|
3 | * Copyright (c) 1995 Crack dot Com |
---|
4 | * Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net> |
---|
5 | * |
---|
6 | * This software was released into the Public Domain. As with most public |
---|
7 | * domain software, no warranty is made or implied by Crack dot Com or |
---|
8 | * Jonathan Clark. |
---|
9 | */ |
---|
10 | |
---|
11 | #ifndef __SERVER2_HPP_ |
---|
12 | #define __SERVER2_HPP_ |
---|
13 | #error hi |
---|
14 | |
---|
15 | class client_descriptor; |
---|
16 | |
---|
17 | |
---|
18 | class game_server |
---|
19 | { |
---|
20 | client_descriptor *client_list; |
---|
21 | int sync_check; |
---|
22 | public : |
---|
23 | game_server(int argc, char **argv, int port); |
---|
24 | // int init_failed() { return in==NULL; } |
---|
25 | void check_for_clients(); |
---|
26 | void receive_inputs(); // reads inputs from all non-local clients |
---|
27 | void send_inputs(); // pass collected inputs to all non-local clients |
---|
28 | void join_new_players(); |
---|
29 | ~game_server(); |
---|
30 | } ; |
---|
31 | |
---|
32 | extern int start_running; |
---|
33 | extern game_server *local_server; // created on server machine, NULL on all others |
---|
34 | |
---|
35 | void game_net_init(int argc, char **argv); |
---|
36 | #endif |
---|
37 | |
---|
38 | |
---|
Note: See
TracBrowser
for help on using the repository browser.