From f8d05f8bc96a6ee96fd2e49b78381279e5b4290b Mon Sep 17 00:00:00 2001 From: oroborus Date: Sun, 17 Aug 2008 12:58:30 +0000 Subject: - jednoduchy modul modBasic.so ( staci ho iba uviset do areny *.map ako loadModule file="libmodBasic" ) git-svn-id: http://opensvn.csie.org/tuxanci_ng@213 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/modules/modBasic.c | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100755 src/modules/modBasic.c (limited to 'src/modules/modBasic.c') diff --git a/src/modules/modBasic.c b/src/modules/modBasic.c new file mode 100755 index 0000000..1532759 --- /dev/null +++ b/src/modules/modBasic.c @@ -0,0 +1,74 @@ + +#include +#include +#include +#include + +#include "main.h" +#include "modules.h" +#include "tux.h" +#include "shot.h" +#include "list.h" +#include "gun.h" +#include "space.h" + +#ifndef PUBLIC_SERVER +#include "interface.h" +#include "image.h" +#endif + +#ifdef PUBLIC_SERVER +#include "publicServer.h" +#endif + +static export_fce_t *export_fce; + +int init(export_fce_t *p) +{ + export_fce = p; + + printf("init basic module.\n"); + return 0; +} + +#ifndef PUBLIC_SERVER + +int draw(int x, int y, int w, int h) +{ + printf("draw basic module.\n"); + return 0; +} +#endif + +int event() +{ + printf("event basic module.\n"); + return 0; +} + +int isConflict(int x, int y, int w, int h) +{ + printf("isConflict(%d, %d, %d, %d) basic module.\n", x, y, w, h); + return 0; +} + +static void cmd_basic(char *line) +{ + printf("cmd_basic(%s) basic module.\n", line); +} + +void cmdArena(char *line) +{ + if( strncmp(line, "basic", 5) == 0 )cmd_basic(line); +} + +void recvMsg(char *msg) +{ + printf("recvMsg(%s) basic module.\n", msg); +} + +int destroy() +{ + printf("destroy basic module.\n"); + return 0; +} -- cgit v1.2.3