From 3b6f3a55168f520a62aa54f5d21912aaa9b823b7 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Wed, 22 Jan 2014 21:24:36 +0100 Subject: [PATCH] retreat: Move function declarations to retreat.h Signed-off-by: Markus Armbruster --- include/prototypes.h | 5 +---- include/retreat.h | 7 +++++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/include/prototypes.h b/include/prototypes.h index 3d320fa5..50518f0c 100644 --- a/include/prototypes.h +++ b/include/prototypes.h @@ -579,10 +579,7 @@ extern void setrel(natid, natid, int); extern void setcont(natid, natid, int); extern void setrej(natid, natid, int, int); /* retreat.c */ -extern void retreat_ship(struct shpstr *, char); -extern void retreat_land(struct lndstr *, char); -extern int check_retreat_and_do_shipdamage(struct shpstr *, int); -extern int check_retreat_and_do_landdamage(struct lndstr *, int); +/* in retreat.h */ /* sarg.c */ extern enum ns_seltype sarg_type(char *); extern int sarg_xy(char *, coord *, coord *); diff --git a/include/retreat.h b/include/retreat.h index d423f3f9..c95debc9 100644 --- a/include/retreat.h +++ b/include/retreat.h @@ -33,6 +33,8 @@ #ifndef RETREAT_H #define RETREAT_H +#include "types.h" + #define MAX_RETREAT 2 /* Max number of sectors you can retreat */ #define RET_LEN 10 @@ -46,4 +48,9 @@ #define RET_DCHRGED 64 /* Retreat when depth-charged */ #define RET_BOARDED 128 /* Retreat when unsuccessfully boarded */ +extern void retreat_ship(struct shpstr *, char); +extern void retreat_land(struct lndstr *, char); +extern int check_retreat_and_do_shipdamage(struct shpstr *, int); +extern int check_retreat_and_do_landdamage(struct lndstr *, int); + #endif