Last change
on this file since 494 was
494,
checked in by Sam Hocevar, 12 years ago
|
style: remove trailing spaces, fix copyright statements.
|
-
Property svn:keywords set to
Id
|
File size:
1.1 KB
|
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 __NETCFG_HPP_ |
---|
12 | #define __NETCFG_HPP_ |
---|
13 | |
---|
14 | #include "jwindow.h" |
---|
15 | |
---|
16 | class net_configuration |
---|
17 | { |
---|
18 | public : |
---|
19 | enum { SINGLE_PLAYER, SERVER, CLIENT, RESTART_SERVER, RESTART_CLIENT, RESTART_SINGLE } state; |
---|
20 | |
---|
21 | int restart_state(); |
---|
22 | int notify_reset(); |
---|
23 | |
---|
24 | unsigned short port, |
---|
25 | server_port; // if we are a server, use our_port |
---|
26 | char name[100]; |
---|
27 | char server_name[100]; |
---|
28 | |
---|
29 | |
---|
30 | char min_players, |
---|
31 | max_players; |
---|
32 | short kills; |
---|
33 | |
---|
34 | net_configuration(); |
---|
35 | int input(); // pulls up dialog box and input fileds |
---|
36 | void cfg_error(char const *msg); |
---|
37 | int confirm_inputs(Jwindow *j, int server); |
---|
38 | void error(char const *message); |
---|
39 | int confirm_inputs(InputManager *i, int server); |
---|
40 | ifield *center_ifield(ifield *i,int x1, int x2, ifield *place_below); |
---|
41 | int get_options(int server); |
---|
42 | } ; |
---|
43 | |
---|
44 | extern net_configuration *main_net_cfg; |
---|
45 | |
---|
46 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.