diff options
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/modAI.c | 20 | ||||
| -rw-r--r-- | src/modules/modBasic.c | 5 | ||||
| -rw-r--r-- | src/modules/modMove.c | 11 | ||||
| -rw-r--r-- | src/modules/modPipe.c | 7 | ||||
| -rw-r--r-- | src/modules/modTeleport.c | 32 | ||||
| -rw-r--r-- | src/modules/modWall.c | 12 |
6 files changed, 76 insertions, 11 deletions
diff --git a/src/modules/modAI.c b/src/modules/modAI.c index f084933..63b94c8 100644 --- a/src/modules/modAI.c +++ b/src/modules/modAI.c @@ -48,6 +48,9 @@ alternative_t *cloneAlternative(alternative_t * p, int route, int x, int y) assert(p != NULL); + UNUSET(x); + UNUSET(y); + new = newAlternative(route, p->x, p->y); new->first = p->first; new->step = p->step; @@ -118,6 +121,7 @@ void destroyAlternative(alternative_t * p) static void cmd_ai(char *line) { + UNUSET(line); } int init(export_fce_t * p) @@ -130,6 +134,11 @@ int init(export_fce_t * p) #ifndef PUBLIC_SERVER int draw(int x, int y, int w, int h) { + UNUSET(x); + UNUSET(y); + UNUSET(w); + UNUSET(h); + return 0; } #endif @@ -158,6 +167,8 @@ static void shotTux(arena_t * arena, tux_t * tux_ai, tux_t * tux_rival) int x_rival, y_rival; int w, h; + UNUSET(arena); + export_fce->fce_tux_get_proportion(tux_ai, &x_ai, &y_ai, &w, &h); export_fce->fce_tux_get_proportion(tux_rival, &x_rival, &y_rival, &w, &h); @@ -325,6 +336,9 @@ static void tux_eventAI(tux_t * tux) static void action_tuxAI(space_t * space, tux_t * tux, void *p) { + UNUSET(space); + UNUSET(p); + if (tux->control == TUX_CONTROL_AI && tux->status == TUX_STATUS_ALIVE) { tux_eventAI(tux); } @@ -380,6 +394,11 @@ int event() int isConflict(int x, int y, int w, int h) { + UNUSET(x); + UNUSET(y); + UNUSET(w); + UNUSET(h); + return 0; } @@ -391,6 +410,7 @@ void cmdArena(char *line) void recvMsg(char *msg) { + UNUSET(msg); } int destroy() diff --git a/src/modules/modBasic.c b/src/modules/modBasic.c index 7bddd7a..012466e 100644 --- a/src/modules/modBasic.c +++ b/src/modules/modBasic.c @@ -35,6 +35,11 @@ int init(export_fce_t * p) int draw(int x, int y, int w, int h) { + UNUSET(x); + UNUSET(y); + UNUSET(w); + UNUSET(h); + printf("Drawing Basic module.\n"); return 0; } diff --git a/src/modules/modMove.c b/src/modules/modMove.c index 552e6bd..231a827 100644 --- a/src/modules/modMove.c +++ b/src/modules/modMove.c @@ -226,6 +226,11 @@ static void proto_moveshot(char *msg) int draw(int x, int y, int w, int h) { + UNUSET(x); + UNUSET(y); + UNUSET(w); + UNUSET(h); + return 0; } @@ -238,11 +243,17 @@ int event() int isConflict(int x, int y, int w, int h) { + UNUSET(x); + UNUSET(y); + UNUSET(w); + UNUSET(h); + return 0; } void cmdArena(char *line) { + UNUSET(line); } void recvMsg(char *msg) diff --git a/src/modules/modPipe.c b/src/modules/modPipe.c index 1759fc5..19c840d 100644 --- a/src/modules/modPipe.c +++ b/src/modules/modPipe.c @@ -221,6 +221,9 @@ int init(export_fce_t * p) static void action_drawpipe(space_t * space, pipe_t * pipe, void *p) { + UNUSET(space); + UNUSET(p); + drawPipe(pipe); } @@ -296,6 +299,8 @@ static void action_eventpipe(space_t * space, pipe_t * pipe, shot_t * shot) arena_t *arena; tux_t *author; + UNUSET(space); + arena = export_fce->fce_arena_get_current(); author = space_get_object_id(arena->spaceTux, shot->author_id); @@ -365,7 +370,7 @@ void cmdArena(char *line) void recvMsg(char *msg) { - + UNUSET(msg); } int destroy() diff --git a/src/modules/modTeleport.c b/src/modules/modTeleport.c index 4d3a9ca..301a368 100644 --- a/src/modules/modTeleport.c +++ b/src/modules/modTeleport.c @@ -249,9 +249,11 @@ int init(export_fce_t * p) #ifndef PUBLIC_SERVER -static void -action_drawteleport(space_t * space, teleport_t * teleport, void *p) +static void action_drawteleport(space_t * space, teleport_t * teleport, void *p) { + UNUSET(space); + UNUSET(p); + drawTeleport(teleport); } @@ -268,12 +270,13 @@ int draw(int x, int y, int w, int h) } #endif -static void -action_eventteleportshot(space_t * space, teleport_t * teleport, shot_t * shot) +static void action_eventteleportshot(space_t * space, teleport_t * teleport, shot_t * shot) { arena_t *arena; tux_t *author; + UNUSET(space); + arena = export_fce->fce_arena_get_current(); author = space_get_object_id(arena->spaceTux, shot->author_id); @@ -286,24 +289,27 @@ action_eventteleportshot(space_t * space, teleport_t * teleport, shot_t * shot) moveShotFromTeleport(shot, teleport, spaceTeleport); } -static void -action_eventshot(space_t * space, shot_t * shot, space_t * p_spaceTeleport) +static void action_eventshot(space_t * space, shot_t * shot, space_t * p_spaceTeleport) { + UNUSET(space); + space_action_from_location(p_spaceTeleport, action_eventteleportshot, shot, shot->x, shot->y, shot->w, shot->h); } -static void -action_eventteleporttux(space_t * space, teleport_t * teleport, tux_t * tux) +static void action_eventteleporttux(space_t * space, teleport_t * teleport, tux_t * tux) { + UNUSET(space); + teleportTux(tux, teleport); } -static void -action_eventtux(space_t * space, tux_t * tux, space_t * p_spaceTeleport) +static void action_eventtux(space_t * space, tux_t * tux, space_t * p_spaceTeleport) { int x, y, w, h; + UNUSET(space); + export_fce->fce_tux_get_proportion(tux, &x, &y, &w, &h); space_action_from_location(p_spaceTeleport, action_eventteleporttux, tux, x, y, @@ -330,6 +336,11 @@ int event() int isConflict(int x, int y, int w, int h) { + UNUSET(x); + UNUSET(y); + UNUSET(w); + UNUSET(h); + if (spaceTeleport == NULL) { return 0; } @@ -345,6 +356,7 @@ void cmdArena(char *line) void recvMsg(char *msg) { + UNUSET(msg); } int destroy() diff --git a/src/modules/modWall.c b/src/modules/modWall.c index 966edcd..6e9b54f 100644 --- a/src/modules/modWall.c +++ b/src/modules/modWall.c @@ -157,6 +157,11 @@ static void getStatusImgWall(void *p, int *id, int *x, int *y, int *w, int *h) static void setStatusImgWall(void *p, int x, int y, int w, int h) { + UNUSET(p); + UNUSET(x); + UNUSET(y); + UNUSET(w); + UNUSET(h); } #endif @@ -253,6 +258,9 @@ int init(export_fce_t * p) static void action_drawwall(space_t * space, wall_t * wall, void *p) { + UNUSET(space); + UNUSET(p); + drawWall(wall); } @@ -275,6 +283,9 @@ static void action_eventwall(space_t * space, wall_t * wall, shot_t * shot) arena_t *arena; tux_t *author; + UNUSET(space); + UNUSET(wall); + arena = export_fce->fce_arena_get_current(); author = space_get_object_id(arena->spaceTux, shot->author_id); @@ -335,6 +346,7 @@ void cmdArena(char *line) void recvMsg(char *msg) { + UNUSET(msg); } int destroy() |