added some preprocessor macros for empty space elements
[rocksndiamonds.git] / src / network.h
1 // ============================================================================
2 // Rocks'n'Diamonds - McDuffin Strikes Back!
3 // ----------------------------------------------------------------------------
4 // (c) 1995-2014 by Artsoft Entertainment
5 //                  Holger Schemel
6 //                  info@artsoft.org
7 //                  https://www.artsoft.org/
8 // ----------------------------------------------------------------------------
9 // network.h
10 // ============================================================================
11
12 #ifndef NETWORK_H
13 #define NETWORK_H
14
15 #include "main.h"
16
17 #define NETWORK_STOP_BY_PLAYER          0
18 #define NETWORK_STOP_BY_ERROR           1
19
20 char *getNetworkPlayerName(int);
21 boolean hasStartedNetworkGame(void);
22
23 boolean ConnectToServer(char *, int);
24 void SendToServer_PlayerName(char *);
25 void SendToServer_ProtocolVersion(void);
26 void SendToServer_NrWanted(int);
27 void SendToServer_LevelFile(void);
28 void SendToServer_StartPlaying(void);
29 void SendToServer_PausePlaying(void);
30 void SendToServer_ContinuePlaying(void);
31 void SendToServer_StopPlaying(int);
32 void SendToServer_MovePlayer(byte);
33 void HandleNetworking(void);
34 void DisconnectFromNetworkServer(void);
35
36 #endif