2010-12-02 12:17:54 +11:00
|
|
|
#include "defs.h"
|
|
|
|
|
|
|
|
|
|
|
|
// functions
|
|
|
|
flag_t *addflag(flagpile_t *fp, enum FLAG id, int val1, int val2, int val3, char *text);
|
2011-02-01 06:16:13 +11:00
|
|
|
flag_t *addtempflag(flagpile_t *fp, enum FLAG id, int val1, int val2, int val3, char *text, int timeleft);
|
|
|
|
flag_t *addflag_real(flagpile_t *fp, enum FLAG id, int val1, int val2, int val3, char *text, int lifetime, int known);
|
|
|
|
flagpile_t *addflagpile(lifeform_t *owner, object_t *o);
|
|
|
|
void copyflags(flagpile_t *dst, flagpile_t *src, int lifetime);
|
|
|
|
int flagstacks(enum FLAG fid);
|
2010-12-02 12:17:54 +11:00
|
|
|
flag_t *hasflag(flagpile_t *fp, int id);
|
2011-02-01 06:16:13 +11:00
|
|
|
flag_t *hasflagknown(flagpile_t *fp, int id);
|
|
|
|
flag_t *hasflag_real(flagpile_t *fp, int id, int wantknown);
|
2010-12-02 12:17:54 +11:00
|
|
|
flag_t *hasflagval(flagpile_t *fp, int id, int val1, int val2, int val3, char *text);
|
2011-02-01 06:16:13 +11:00
|
|
|
flag_t *hasflagvalknown(flagpile_t *fp, int id, int val1, int val2, int val3, char *text);
|
|
|
|
flag_t *hasflagval_real(flagpile_t *fp, int id, int val1, int val2, int val3, char *text, int wantknown);
|
|
|
|
void killflagsofid(flagpile_t *fp, enum FLAG fid);
|
2010-12-02 12:17:54 +11:00
|
|
|
void killflag(flag_t *f);
|
|
|
|
void killflagpile(flagpile_t *fp);
|
2011-02-01 06:16:13 +11:00
|
|
|
void makeflagknown(flagpile_t *fp);
|
|
|
|
void sumflags(flagpile_t *fp, int id, int *val0, int *val1, int *val2);
|
|
|
|
void timeeffectsflag(flag_t *f);
|
|
|
|
void timeeffectsflags(flagpile_t *fp);
|