source: abuse/trunk/src/netcfg.hpp @ 112

Last change on this file since 112 was 57, checked in by Sam Hocevar, 12 years ago
  • Move each header to the same directory as its corresponding source, to get a better idea of which files are likely to export symbols.
File size: 1.1 KB
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 __NETCFG_HPP_
11#define __NETCFG_HPP_
12#include "jwindow.hpp"
13
14
15class net_configuration
16{
17  public :
18  enum { SINGLE_PLAYER, SERVER, CLIENT, RESTART_SERVER, RESTART_CLIENT, RESTART_SINGLE } state;
19
20  int restart_state();
21  int notify_reset();
22
23  unsigned short port,
24                 server_port;  // if we are a server, use our_port
25  char name[100];
26  char server_name[100];
27 
28
29  char min_players,
30       max_players;
31  short kills;
32
33  net_configuration();
34  int input();   // pulls up dialog box and input fileds
35  void cfg_error(char const *msg);
36  int confirm_inputs(jwindow *j, int server);
37  void error(char const *message);
38  int confirm_inputs(input_manager *i, int server);
39  ifield *center_ifield(ifield *i,int x1, int x2, ifield *place_below);
40  int get_options(int server);
41} ;
42
43extern net_configuration *main_net_cfg;
44
45#endif
Note: See TracBrowser for help on using the repository browser.