summaryrefslogtreecommitdiff
path: root/src/base/proto.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/proto.h')
-rw-r--r--src/base/proto.h78
1 files changed, 38 insertions, 40 deletions
diff --git a/src/base/proto.h b/src/base/proto.h
index 6442469..590317b 100644
--- a/src/base/proto.h
+++ b/src/base/proto.h
@@ -1,42 +1,42 @@
#ifndef MY_PROTO
-#define MY_PROTO
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <assert.h>
-
-#include "main.h"
-#include "list.h"
-#include "item.h"
-#include "shot.h"
-#include "arenaFile.h"
-#include "myTimer.h"
-#include "server.h"
-#include "net_multiplayer.h"
-
-#ifndef PUBLIC_SERVER
-#include "screen_world.h"
-#include "screen_setting.h"
-#include "screen_choiceArena.h"
-#include "client.h"
-#endif
-
-#ifdef PUBLIC_SERVER
-#include "publicServer.h"
-#endif
-
-#define PROTO_ERROR_CODE_UNKNOWN 0
-#define PROTO_ERROR_CODE_BAD_VERSION 1
-#define PROTO_ERROR_CODE_BAD_NAME 2
-#define PROTO_ERROR_CODE_BAD_COMMAND 3
-#define PROTO_ERROR_CODE_TIMEOUT 4
-#define PROTO_ERROR_LIMIT_MAX_CLIENT 5
+# define MY_PROTO
+
+# include <stdio.h>
+# include <stdlib.h>
+# include <string.h>
+# include <assert.h>
+
+# include "main.h"
+# include "list.h"
+# include "item.h"
+# include "shot.h"
+# include "arenaFile.h"
+# include "myTimer.h"
+# include "server.h"
+# include "net_multiplayer.h"
+
+# ifndef PUBLIC_SERVER
+# include "screen_world.h"
+# include "screen_setting.h"
+# include "screen_choiceArena.h"
+# include "client.h"
+# endif
+
+# ifdef PUBLIC_SERVER
+# include "publicServer.h"
+# endif
+
+# define PROTO_ERROR_CODE_UNKNOWN 0
+# define PROTO_ERROR_CODE_BAD_VERSION 1
+# define PROTO_ERROR_CODE_BAD_NAME 2
+# define PROTO_ERROR_CODE_BAD_COMMAND 3
+# define PROTO_ERROR_CODE_TIMEOUT 4
+# define PROTO_ERROR_LIMIT_MAX_CLIENT 5
extern void proto_send_error_server(int type, client_t * client,
- int errorcode);
+ int errorcode);
extern void proto_recv_error_client(char *msg);
extern void proto_send_hello_client(char *name);
@@ -52,17 +52,16 @@ extern void proto_send_check_client(int id);
extern void proto_recv_check_server(client_t * client, char *msg);
extern void proto_send_init_server(int type, client_t * client,
- client_t * client2);
+ client_t * client2);
extern void proto_recv_init_client(char *msg);
extern void proto_send_event_server(int type, client_t * client, tux_t * tux,
- int action);
+ int action);
extern void proto_recv_event_client(char *msg);
extern void proto_send_event_client(int action);
extern void proto_recv_event_server(client_t * client, char *msg);
-extern void proto_send_newtux_server(int type, client_t * client,
- tux_t * tux);
+extern void proto_send_newtux_server(int type, client_t * client, tux_t * tux);
extern void proto_recv_newtux_client(char *msg);
extern void proto_send_kill_server(int type, client_t * client, tux_t * tux);
@@ -74,8 +73,7 @@ extern void proto_recv_score_client(char *msg);
extern void proto_send_del_server(int type, client_t * client, int id);
extern void proto_recv_del_client(char *msg);
-extern void proto_send_additem_server(int type, client_t * client,
- item_t * p);
+extern void proto_send_additem_server(int type, client_t * client, item_t * p);
extern void proto_recv_additem_client(char *msg);
extern void proto_send_shot_server(int type, client_t * client, shot_t * p);