From bb15df3f3428df7cd2a4482adebcdaa6fc2f516e Mon Sep 17 00:00:00 2001 From: oroborus Date: Thu, 10 Jul 2008 11:28:59 +0000 Subject: - precisteny kod sietoveho multiplayera - moduly si mozu mosielat spravy cez sietovy protokol - opravy chyb v moduloch - oprava chyby, v textovych poliach sa zobrazuju znaky, ktore ste nestalcili - director_t* loadDirector(char *s) vracia NULL ak adresar neexistuje ( predtym sa proces zrutil ) git-svn-id: http://opensvn.csie.org/tuxanci_ng@126 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/base/modules.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/base/modules.h') diff --git a/src/base/modules.h b/src/base/modules.h index 0b31292..5456ffb 100644 --- a/src/base/modules.h +++ b/src/base/modules.h @@ -21,8 +21,8 @@ typedef struct export_fce_s SDL_Surface* (*fce_getImage)(char *group, char *name); void (*fce_addLayer)(SDL_Surface *img, - int x,int y, int px,int py, - int w,int h, int player); + int x,int y, int px,int py, + int w,int h, int player); #endif int (*fce_getNetTypeGame)(); @@ -36,17 +36,14 @@ typedef struct export_fce_s int (*fce_conflictSpace)(int x1,int y1,int w1,int h1,int x2,int y2,int w2,int h2); int (*fce_isFreeSpace)(arena_t *arena, int x, int y, int w, int h); void (*fce_findFreeSpace)(arena_t *arena, int *x, int *y, int w, int h); - void (*fce_proto_send_newtux_server)(int type, client_t *client, tux_t *tux); - void (*fce_proto_send_shot_server)(int type, client_t *client, shot_t *p); + void (*fce_proto_send_module_server)(int type, client_t *client, char *msg); + void (*fce_proto_send_module_client)(char *msg); my_time_t (*fce_getMyTime)(); void (*fce_destroyShot)(shot_t *p); void (*fce_boundBombBall)(shot_t *shot); void (*fce_transformOnlyLasser)(shot_t *shot); - - int (*fce_pokus)(char *s); - } export_fce_t; typedef struct module_s @@ -61,6 +58,7 @@ typedef struct module_s int (*fce_event)(); int (*fce_isConflict)(int x, int y, int w, int h); void (*fce_cmd)(char *line); + void (*fce_recvMsg)(char *msg); int (*fce_destroy)(); } module_t; @@ -73,6 +71,7 @@ extern void drawModule(int x, int y, int w, int h); extern void eventModule(); extern void cmdModule(char *s); extern int isConflictModule(int x, int y, int w, int h); +extern int recvMsgModule(char *msg); extern void quitModule(); #endif -- cgit v1.2.3