NOSTATICFN for src/*
This commit is contained in:
56
src/dokick.c
56
src/dokick.c
@@ -11,26 +11,26 @@
|
||||
|
||||
/* gk.kickedobj (decl.c) tracks a kicked object until placed or destroyed */
|
||||
|
||||
static void kickdmg(struct monst *, boolean);
|
||||
static boolean maybe_kick_monster(struct monst *, coordxy, coordxy);
|
||||
static void kick_monster(struct monst *, coordxy, coordxy);
|
||||
static int kick_object(coordxy, coordxy, char *) NONNULLARG3;
|
||||
static int really_kick_object(coordxy, coordxy);
|
||||
static char *kickstr(char *, const char *) NONNULLPTRS;
|
||||
static boolean watchman_thief_arrest(struct monst *) NONNULLPTRS;
|
||||
static boolean watchman_door_damage(struct monst *,
|
||||
staticfn void kickdmg(struct monst *, boolean);
|
||||
staticfn boolean maybe_kick_monster(struct monst *, coordxy, coordxy);
|
||||
staticfn void kick_monster(struct monst *, coordxy, coordxy);
|
||||
staticfn int kick_object(coordxy, coordxy, char *) NONNULLARG3;
|
||||
staticfn int really_kick_object(coordxy, coordxy);
|
||||
staticfn char *kickstr(char *, const char *) NONNULLPTRS;
|
||||
staticfn boolean watchman_thief_arrest(struct monst *) NONNULLPTRS;
|
||||
staticfn boolean watchman_door_damage(struct monst *,
|
||||
coordxy, coordxy) NONNULLARG1;
|
||||
static void kick_dumb(coordxy, coordxy);
|
||||
static void kick_ouch(coordxy, coordxy, const char *) NONNULLARG3;
|
||||
static void kick_door(coordxy, coordxy, int);
|
||||
static int kick_nondoor(coordxy, coordxy, int);
|
||||
static void otransit_msg(struct obj *, boolean, boolean, long);
|
||||
static void drop_to(coord *, schar, coordxy, coordxy) NONNULLARG1;
|
||||
staticfn void kick_dumb(coordxy, coordxy);
|
||||
staticfn void kick_ouch(coordxy, coordxy, const char *) NONNULLARG3;
|
||||
staticfn void kick_door(coordxy, coordxy, int);
|
||||
staticfn int kick_nondoor(coordxy, coordxy, int);
|
||||
staticfn void otransit_msg(struct obj *, boolean, boolean, long);
|
||||
staticfn void drop_to(coord *, schar, coordxy, coordxy) NONNULLARG1;
|
||||
|
||||
static const char kick_passes_thru[] = "kick passes harmlessly through";
|
||||
|
||||
/* kicking damage when not poly'd into a form with a kick attack */
|
||||
static void
|
||||
staticfn void
|
||||
kickdmg(struct monst *mon, boolean clumsy)
|
||||
{
|
||||
int mdx, mdy;
|
||||
@@ -122,7 +122,7 @@ kickdmg(struct monst *mon, boolean clumsy)
|
||||
use_skill(kick_skill, 1);
|
||||
}
|
||||
|
||||
static boolean
|
||||
staticfn boolean
|
||||
maybe_kick_monster(struct monst *mon, coordxy x, coordxy y)
|
||||
{
|
||||
if (mon) {
|
||||
@@ -142,7 +142,7 @@ maybe_kick_monster(struct monst *mon, coordxy x, coordxy y)
|
||||
return (boolean) (mon != 0);
|
||||
}
|
||||
|
||||
static void
|
||||
staticfn void
|
||||
kick_monster(struct monst *mon, coordxy x, coordxy y)
|
||||
{
|
||||
boolean clumsy = FALSE;
|
||||
@@ -480,7 +480,7 @@ container_impact_dmg(
|
||||
}
|
||||
|
||||
/* jacket around really_kick_object */
|
||||
static int
|
||||
staticfn int
|
||||
kick_object(coordxy x, coordxy y, char *kickobjnam)
|
||||
{
|
||||
int res = 0;
|
||||
@@ -498,7 +498,7 @@ kick_object(coordxy x, coordxy y, char *kickobjnam)
|
||||
}
|
||||
|
||||
/* guts of kick_object */
|
||||
static int
|
||||
staticfn int
|
||||
really_kick_object(coordxy x, coordxy y)
|
||||
{
|
||||
int range;
|
||||
@@ -783,7 +783,7 @@ really_kick_object(coordxy x, coordxy y)
|
||||
}
|
||||
|
||||
/* cause of death if kicking kills kicker */
|
||||
static char *
|
||||
staticfn char *
|
||||
kickstr(char *buf, const char *kickobjnam)
|
||||
{
|
||||
const char *what;
|
||||
@@ -823,7 +823,7 @@ kickstr(char *buf, const char *kickobjnam)
|
||||
return strcat(strcpy(buf, "kicking "), what);
|
||||
}
|
||||
|
||||
static boolean
|
||||
staticfn boolean
|
||||
watchman_thief_arrest(struct monst *mtmp)
|
||||
{
|
||||
if (is_watch(mtmp->data) && couldsee(mtmp->mx, mtmp->my)
|
||||
@@ -835,7 +835,7 @@ watchman_thief_arrest(struct monst *mtmp)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static boolean
|
||||
staticfn boolean
|
||||
watchman_door_damage(struct monst *mtmp, coordxy x, coordxy y)
|
||||
{
|
||||
if (is_watch(mtmp->data) && mtmp->mpeaceful
|
||||
@@ -853,7 +853,7 @@ watchman_door_damage(struct monst *mtmp, coordxy x, coordxy y)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
staticfn void
|
||||
kick_dumb(coordxy x, coordxy y)
|
||||
{
|
||||
exercise(A_DEX, FALSE);
|
||||
@@ -870,7 +870,7 @@ kick_dumb(coordxy x, coordxy y)
|
||||
hurtle(-u.dx, -u.dy, 1, TRUE);
|
||||
}
|
||||
|
||||
static void
|
||||
staticfn void
|
||||
kick_ouch(coordxy x, coordxy y, const char *kickobjnam)
|
||||
{
|
||||
int dmg;
|
||||
@@ -899,7 +899,7 @@ kick_ouch(coordxy x, coordxy y, const char *kickobjnam)
|
||||
}
|
||||
|
||||
/* kick a door */
|
||||
static void
|
||||
staticfn void
|
||||
kick_door(coordxy x, coordxy y, int avrg_attrib)
|
||||
{
|
||||
if (gm.maploc->doormask == D_ISOPEN || gm.maploc->doormask == D_BROKEN
|
||||
@@ -958,7 +958,7 @@ kick_door(coordxy x, coordxy y, int avrg_attrib)
|
||||
}
|
||||
|
||||
/* kick non-door terrain */
|
||||
static int
|
||||
staticfn int
|
||||
kick_nondoor(coordxy x, coordxy y, int avrg_attrib)
|
||||
{
|
||||
if (gm.maploc->typ == SDOOR) {
|
||||
@@ -1455,7 +1455,7 @@ dokick(void)
|
||||
return ECMD_TIME;
|
||||
}
|
||||
|
||||
static void
|
||||
staticfn void
|
||||
drop_to(coord *cc, schar loc, coordxy x, coordxy y)
|
||||
{
|
||||
stairway *stway = stairway_at(x, y);
|
||||
@@ -1889,7 +1889,7 @@ deliver_obj_to_mon(struct monst *mtmp, int cnt, unsigned long deliverflags)
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
staticfn void
|
||||
otransit_msg(struct obj *otmp, boolean nodrop, boolean chainthere, long num)
|
||||
{
|
||||
char *optr = 0, obuf[BUFSZ], xbuf[BUFSZ];
|
||||
|
||||
Reference in New Issue
Block a user