source: abuse/trunk/src/server2.h @ 481

Last change on this file since 481 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: 927 bytes
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 __SERVER2_HPP_
11#define __SERVER2_HPP_
12#error hi
13
14class client_descriptor;
15
16
17class game_server
18{
19  client_descriptor *client_list;
20  int sync_check;
21  public :
22  game_server(int argc, char **argv, int port);
23//  int init_failed() { return in==NULL; }
24  void check_for_clients();
25  void receive_inputs();         // reads inputs from all non-local clients
26  void send_inputs();            // pass collected inputs to all non-local clients
27  void join_new_players();
28  ~game_server();
29} ;
30
31extern int start_running;
32extern game_server *local_server;       // created on server machine, NULL on all others
33
34void game_net_init(int argc, char **argv);
35#endif
36
37
Note: See TracBrowser for help on using the repository browser.