source: abuse/trunk/src/netcfg.h @ 489

Last change on this file since 489 was 481, checked in by Sam Hocevar, 10 years ago

Fuck the history, I'm renaming all .hpp files to .h for my own sanity.

  • 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 *
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
13#include "jwindow.h"
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(InputManager *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.