56 lines
3.1 KiB
C
56 lines
3.1 KiB
C
#include "defs.h"
|
|
|
|
|
|
// functions
|
|
altflagval_t *addaltval(flag_t *f, enum FLAG id, int val1, int val2, int val3, /*@null@*/ char *text);
|
|
void addcondition(flag_t *f, enum FLAGCONDITION fc, int chance);
|
|
flag_t *addflag(flagpile_t *fp, enum FLAG id, int val1, int val2, int val3, /*@null@*/ char *text);
|
|
flag_t *addflagifneeded(flagpile_t *fp, enum FLAG id, int val1, int val2, int val3, /*@null@*/ char *text);
|
|
flag_t *addtempflag(flagpile_t *fp, enum FLAG id, int val1, int val2, int val3, /*@null@*/ char *text, int timeleft);
|
|
flag_t *addflag_real(flagpile_t *fp, enum FLAG id, int val1, int val2, int val3, /*@null@*/ char *text, int lifetime, int known, long obfromid);
|
|
flagpile_t *addflagpile(lifeform_t *owner, object_t *o);
|
|
int canbemadepermenant(enum FLAG id);
|
|
void changeflagtext(flag_t *f, char *newtext);
|
|
void checkmapflags(map_t *m);
|
|
int fpisbad(flagpile_t *fp);
|
|
void checkflagpile(flagpile_t *fp);
|
|
int copyflag(flagpile_t *dst, flagpile_t *src, enum FLAG id);
|
|
void copyflags(flagpile_t *dst, flagpile_t *src, int lifetime);
|
|
int countflags(flagpile_t *fp);
|
|
int countflagsofid(flagpile_t *fp, enum FLAG fid );
|
|
void dumpflags(flagpile_t *fp);
|
|
int flagcausesinterrupt(flag_t *f, enum GAINORLOSS gol);
|
|
int flagcausesloscalc(enum FLAG fid);
|
|
int flagcausesredraw(lifeform_t *lf, enum FLAG fid);
|
|
int flagcausesstatredraw(lifeform_t *lf, enum FLAG fid);
|
|
int flagretainedduringpoly(enum FLAG fid);
|
|
int flagstacks(enum FLAG fid);
|
|
int flagtomaxhp(flag_t *f);
|
|
cell_t *getflagpilelocation(flagpile_t *fp);
|
|
int getflags(flagpile_t *fp, flag_t **retflag, int *nretflags, ... );
|
|
char *getflagtext(flagpile_t *fp, enum FLAG fid);
|
|
void getmaxflags(flagpile_t *fp, int id, int *max0, int *max1, int *max2);
|
|
flag_t *getrandomflag(flagpile_t *fp, enum FLAG fid);
|
|
flag_t *hasflag(flagpile_t *fp, int id);
|
|
flag_t *hasflagknown(flagpile_t *fp, int id);
|
|
flag_t *hasflag_real(flagpile_t *fp, int id, int wantknown, flag_t *exception, int lifetimeexception);
|
|
flag_t *hasflagval(flagpile_t *fp, int id, int val1, int val2, int val3, /*@null@*/ char *text);
|
|
flag_t *hasflagvalknown(flagpile_t *fp, int id, int val1, int val2, int val3, /*@null@*/ char *text);
|
|
flag_t *hasflagval_real(flagpile_t *fp, int id, int val1, int val2, int val3, /*@null@*/ char *text, int wantknown, int lifetimeexception);
|
|
flag_t *incflag(flagpile_t *fp, enum FLAG fid, int val1, int val2, int val3);
|
|
int istransitoryflag(flag_t *f);
|
|
int killflagsofid(flagpile_t *fp, enum FLAG fid);
|
|
int killflagsofval(int count, flagpile_t *fp, enum FLAG fid, int v0, int v1, int v2, int lifetime, long obfrom);
|
|
void killflag(flag_t *f);
|
|
void killflagpile(flagpile_t *fp);
|
|
int killtransitoryflags(flagpile_t *fp, enum FLAG fid);
|
|
int killtransitoryflagvals(flagpile_t *fp, enum FLAG fid, int val1, int val2, int val3, /*@null@*/ char *text);
|
|
void makeflagknown(flagpile_t *fp);
|
|
int modcounter(flagpile_t *fp, int amt);
|
|
flag_t *modflag(flagpile_t *fp, enum FLAG fid, int val1, int val2, int val3, /*@null@*/ char *text);
|
|
void revealflagob(lifeform_t *lf, flag_t *f);
|
|
void sumflags(flagpile_t *fp, enum FLAG id, int *val0, int *val1, int *val2);
|
|
void timeeffectsflag(flag_t *f, int howlong);
|
|
void timeeffectsflags(flagpile_t *fp);
|
|
void updatefpindex(flagpile_t *fp);
|