source: golgotha/src/golg/net/client.hh

Last change on this file was 80, checked in by Sam Hocevar, 12 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 1.1 KB
Line 
1/********************************************************************** <BR>
2  This file is part of Crack dot Com's free source code release of
3  Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
4  information about compiling & licensing issues visit this URL</a>
5  <PRE> If that doesn't help, contact Jonathan Clark at
6  golgotha_source@usa.net (Subject should have "GOLG" in it)
7***********************************************************************/
8
9#ifndef G1_CLIENT_HH
10#define G1_CLIENT_HH
11
12
13#include "time/time.hh"
14#include "player_type.hh"
15#include "string/string.hh"
16
17class i4_net_address;
18class i4_net_socket;
19class i4_net_protocol;
20
21class g1_client_class
22{
23  i4_net_address *server_address;
24  i4_net_socket *listen;
25  i4_net_socket *send;
26
27  i4_time_class last_responce_time;
28  int use_port;
29
30  enum {
31    JOIN_START,
32    RUNNING
33  } state;
34
35
36  g1_player_type player_num;
37  i4_str *map_name;
38
39public:
40  g1_client_class(i4_net_address *server_address, int use_port, i4_net_protocol *protocol);
41
42  i4_bool poll();
43  ~g1_client_class();
44};
45
46extern g1_client_class *g1_client;
47
48#endif
Note: See TracBrowser for help on using the repository browser.