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