source: abuse/trunk/src/include/netcfg.hpp @ 39

Last change on this file since 39 was 39, checked in by Sam Hocevar, 15 years ago
  • Fix almost 2,000 warnings by using proper "const" keywords where needed.
File size: 846 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 const *msg);
27  int confirm_inputs(jwindow *j, int server);
28  void error(char const *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.