Last change
on this file since 604 was
49,
checked in by Sam Hocevar, 15 years ago
|
- Imported original public domain release, for future reference.
|
File size:
892 bytes
|
Rev | Line | |
---|
[49] | 1 | #ifndef __NETCFG_HPP_ |
---|
| 2 | #define __NETCFG_HPP_ |
---|
| 3 | #include "jwindow.hpp" |
---|
| 4 | #include "sock.hpp" |
---|
| 5 | |
---|
| 6 | class net_configuration |
---|
| 7 | { |
---|
| 8 | public : |
---|
| 9 | enum { SINGLE_PLAYER, SERVER, CLIENT, RESTART_SERVER, RESTART_CLIENT, RESTART_SINGLE } state; |
---|
| 10 | |
---|
| 11 | int restart_state(); |
---|
| 12 | int notify_reset(); |
---|
| 13 | |
---|
| 14 | unsigned short port, |
---|
| 15 | game_port, |
---|
| 16 | server_port; // if we are a server, use our_port |
---|
| 17 | char name[100]; |
---|
| 18 | char server_name[100]; |
---|
| 19 | net_address *addr; |
---|
| 20 | |
---|
| 21 | char min_players, |
---|
| 22 | max_players; |
---|
| 23 | short kills; |
---|
| 24 | |
---|
| 25 | net_configuration(); |
---|
| 26 | int input(); // pulls up dialog box and input fileds |
---|
| 27 | void cfg_error(char *msg); |
---|
| 28 | int confirm_inputs(jwindow *j, int server); |
---|
| 29 | void error(char *message); |
---|
| 30 | int confirm_inputs(input_manager *i, int server); |
---|
| 31 | ifield *center_ifield(ifield *i,int x1, int x2, ifield *place_below); |
---|
| 32 | int get_options(int server); |
---|
| 33 | } ; |
---|
| 34 | |
---|
| 35 | extern net_configuration *main_net_cfg; |
---|
| 36 | |
---|
| 37 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.