diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-17 12:58:30 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-17 12:58:30 +0000 |
| commit | f8d05f8bc96a6ee96fd2e49b78381279e5b4290b (patch) | |
| tree | 708511ee6739aa6bf510bc287a01688d80ddc911 /src/modules/modBasic.c | |
| parent | d79991329627f1a54226f2b3d08180dc32dd6e47 (diff) | |
- 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
Diffstat (limited to 'src/modules/modBasic.c')
| -rwxr-xr-x | src/modules/modBasic.c | 74 |
1 files changed, 74 insertions, 0 deletions
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 <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <assert.h> + +#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; +} |