retreat: Move function declarations to retreat.h
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
8f5c600f71
commit
3b6f3a5516
2 changed files with 8 additions and 4 deletions
|
@ -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 *);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue