X-Git-Url: https://jfr.im/git/irc/gameservirc.git/blobdiff_plain/1fe6fccdcc6c293d4d0ce7278698f5847175d4ec..9c443e07ade40b3deb3e83d9fb651fb0490d2664:/gameserv/flags.h diff --git a/gameserv/flags.h b/gameserv/flags.h index 83f4140..64a5730 100644 --- a/gameserv/flags.h +++ b/gameserv/flags.h @@ -39,6 +39,7 @@ #define FLAG_YOURTURN 0x00000004 #define FLAG_WONGAME 0x00000008 #define FLAG_DRAGONFIGHT 0x00000010 +#define FLAG_TIMEDOUT 0x00000020 // Config File flags #define CFLAG_LISTENONCF 0x00000001 @@ -48,6 +49,11 @@ #define CFLAG_SAVEDNOTICE 0x00000010 #define CFLAG_USENICKSERV 0x00000020 #define CFLAG_ROLLOVERFORESTFIGHTS 0x00000040 +#define CFLAG_FAIRFIGHTS 0x00000080 + +#define setFairFights() (configflags |= CFLAG_FAIRFIGHTS) +#define clearFairFights() (configflags &= ~CFLAG_FAIRFIGHTS) +#define isFairFights() (configflags & CFLAG_FAIRFIGHTS) #define setRolloverForestFights() (configflags |= CFLAG_ROLLOVERFORESTFIGHTS) #define clearRolloverForestFights() (configflags &= ~CFLAG_ROLLOVERFORESTFIGHTS) @@ -96,6 +102,10 @@ #define FL_is_playing(x) ((x)->getFlags() & FLAG_PLAYING) // Player Flags +#define PF_timedout(x) ((x)->getFlags() & FLAG_TIMEDOUT) +#define PF_settimedout(x) ((x)->addFlag(FLAG_TIMEDOUT)) +#define PF_cleartimedout(x) ((x)->remFlag(FLAG_TIMEDOUT)) + #define seenMaster(x) ((x)->getFlags() & FLAG_MASTER) #define setMaster(x) ((x)->addFlag(FLAG_MASTER)) #define clearMaster(x) ((x)->remFlag(FLAG_MASTER))