From 2fd0c9d50f1eb83d46080fb114cba5465e8c4506 Mon Sep 17 00:00:00 2001 From: oroborus Date: Tue, 3 Jun 2008 21:26:17 +0000 Subject: - zaciatok podpory FR jazyka - server podporuje socre ( treb este zdokumentovat protokol ) - prelozene dve chybove hlasky pre siete - odosielam to na rychlo git-svn-id: http://opensvn.csie.org/tuxanci_ng@59 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- include/heightScore.h | 13 +++++++++++++ include/proto.h | 2 ++ include/screen_analyze.h | 1 + 3 files changed, 16 insertions(+) create mode 100644 include/heightScore.h (limited to 'include') diff --git a/include/heightScore.h b/include/heightScore.h new file mode 100644 index 0000000..b1bf7e2 --- /dev/null +++ b/include/heightScore.h @@ -0,0 +1,13 @@ + +#ifndef HEIGHT_SCORE_H + +#define HEIGHT_SCORE_H + +#define HEIGHTSCORE_MAX_PLAYERS 100 + +extern void initHeightScore(char *file); +extern int addPlayerInHighScore(char *name, int score); +extern char* getTableItem(int index); +extern void quitHeightScore(); + +#endif diff --git a/include/proto.h b/include/proto.h index 5a097a6..f392aaa 100644 --- a/include/proto.h +++ b/include/proto.h @@ -53,6 +53,8 @@ extern void proto_send_hello_client(char *name); extern void proto_recv_hello_server(client_t *client, char *msg); extern void proto_send_status_server(int type, client_t *client); extern void proto_recv_status_server(client_t *client, char *msg); +extern void proto_send_listscore_server(int type, client_t *client, int max); +extern void proto_recv_listscore_server(client_t *client, char *msg); 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); diff --git a/include/screen_analyze.h b/include/screen_analyze.h index 515c6ef..7404da6 100644 --- a/include/screen_analyze.h +++ b/include/screen_analyze.h @@ -17,6 +17,7 @@ extern void eventScreenAnalyze(); extern void stopScreenAnalyze(); extern void restartAnalyze(); extern void addAnalyze(char *name, int score); +extern void setMsgToAnalyze(char *msg); extern void endAnalyze(); extern void initScreenAnalyze(); extern void quitScreenAnalyze(); -- cgit v1.2.3