From 114131bf71d7d4ec48c92a7bde8183442995940f Mon Sep 17 00:00:00 2001 From: oroborus Date: Fri, 21 Mar 2008 14:03:35 +0000 Subject: - vypisovanie sprav do hry - oprava chyby odhlaelenj pomocou valgrindu - zena rychlosti zbrani - drobne upravy git-svn-id: http://opensvn.csie.org/tuxanci_ng@31 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- include/proto.h | 2 -- include/publicServer.h | 2 ++ include/screen_world.h | 1 + include/term.h | 17 +++++++++++++++++ 4 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 include/term.h (limited to 'include') diff --git a/include/proto.h b/include/proto.h index f91b60b..f7422ec 100644 --- a/include/proto.h +++ b/include/proto.h @@ -63,8 +63,6 @@ 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); extern void proto_recv_shot_client(char *msg); -extern void proto_send_context_client(tux_t *tux); -extern void proto_recv_context_server(client_t *client, char *msg); extern void proto_send_ping_client(); extern void proto_recv_ping_server(client_t *client, char *msg); extern void proto_send_end_client(); diff --git a/include/publicServer.h b/include/publicServer.h index 9b453d7..7577932 100644 --- a/include/publicServer.h +++ b/include/publicServer.h @@ -5,6 +5,8 @@ #include "arena.h" +#define WORLD_COUNT_ROUND_UNLIMITED -1 + extern arena_t* getWorldArena(); extern void countRoundInc(); extern int initPublicServer(); diff --git a/include/screen_world.h b/include/screen_world.h index d6dfd12..7ad6a41 100644 --- a/include/screen_world.h +++ b/include/screen_world.h @@ -8,6 +8,7 @@ #include "arena.h" #define TIMER_END_ARENA 5000 +#define WORLD_COUNT_ROUND_UNLIMITED -1 extern bool_t isScreenWorldInicialized(); extern void initWorld(); diff --git a/include/term.h b/include/term.h new file mode 100644 index 0000000..b48a2b7 --- /dev/null +++ b/include/term.h @@ -0,0 +1,17 @@ + +#ifndef TERM_H + +#define TERM_H + +#include "main.h" + +#define TERM_MAX_LINES 10 +#define TERM_DEL_TEXT_TIMEOUT 2000 + +extern void initTerm(); +extern void drawTerm(); +extern void eventTerm(); +extern void appendTextInTerm(char *s); +extern void quitTerm(); + +#endif -- cgit v1.2.3