added connecting to network server from setup menu without program restart
[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 //                  http://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 boolean ConnectToServer(char *, int);
21 void SendToServer_PlayerName(char *);
22 void SendToServer_ProtocolVersion(void);
23 void SendToServer_NrWanted(int);
24 void SendToServer_StartPlaying(void);
25 void SendToServer_PausePlaying(void);
26 void SendToServer_ContinuePlaying(void);
27 void SendToServer_StopPlaying(int);
28 void SendToServer_MovePlayer(byte);
29 void HandleNetworking(void);
30
31 #endif