source: abuse/trunk/src/server2.h

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