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

Last change on this file since 682 was 555, checked in by Sam Hocevar, 9 years ago

ps3: make everything compile on the PS3. Of course, nothing links yet
because so much support is missing.

  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1/*
2 *  Abuse - dark 2D side-scrolling platform game
3 *  Copyright (c) 1995 Crack dot Com
4 *  Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
5 *
6 *  This software was released into the Public Domain. As with most public
7 *  domain software, no warranty is made or implied by Crack dot Com, by
8 *  Jonathan Clark, or by Sam Hocevar.
9 */
10
11#ifndef __NETCFG_HPP_
12#define __NETCFG_HPP_
13
14#include "jwindow.h"
15
16class net_configuration
17{
18  public :
19  enum { SINGLE_PLAYER, SERVER, CLIENT, RESTART_SERVER, RESTART_CLIENT, RESTART_SINGLE } state;
20
21  int restart_state();
22  int notify_reset();
23
24  unsigned short port,
25                 server_port;  // if we are a server, use our_port
26  char name[100];
27  char server_name[100];
28
29
30  char min_players,
31       max_players;
32  short kills;
33
34  net_configuration();
35  int input();   // pulls up dialog box and input fileds
36  void cfg_error(char const *msg);
37  int confirm_inputs(Jwindow *j, int server);
38  void error(char const *message);
39  int confirm_inputs(InputManager *i, int server);
40  ifield *center_ifield(ifield *i,int x1, int x2, ifield *place_below);
41  int get_options(int server);
42} ;
43
44extern net_configuration *main_net_cfg;
45
46#endif
Note: See TracBrowser for help on using the repository browser.