source: abuse/tags/pd/abuse/inc/netcfg.hpp

Last change on this file was 49, checked in by Sam Hocevar, 12 years ago
  • Imported original public domain release, for future reference.
File size: 834 bytes
Line 
1#ifndef __NETCFG_HPP_
2#define __NETCFG_HPP_
3#include "jwindow.hpp"
4
5
6class 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                 server_port;  // if we are a server, use our_port
16  char name[100];
17  char server_name[100];
18 
19
20  char min_players,
21       max_players;
22  short kills;
23
24  net_configuration();
25  int input();   // pulls up dialog box and input fileds
26  void cfg_error(char *msg);
27  int confirm_inputs(jwindow *j, int server);
28  void error(char *message);
29  int confirm_inputs(input_manager *i, int server);
30  ifield *center_ifield(ifield *i,int x1, int x2, ifield *place_below);
31  int get_options(int server);
32} ;
33
34extern net_configuration *main_net_cfg;
35
36#endif
Note: See TracBrowser for help on using the repository browser.