]> jfr.im git - irc/gameservirc.git/commitdiff
Added a flag wongame that tells wether or not a player has won the game.
authorkainazzzo <redacted>
Sat, 13 Mar 2004 21:03:07 +0000 (21:03 +0000)
committerkainazzzo <redacted>
Sat, 13 Mar 2004 21:03:07 +0000 (21:03 +0000)
git-svn-id: https://svn.code.sf.net/p/gameservirc/code/trunk@132 bc333340-6410-0410-a689-9d09f3c113fa

gameserv/flags.h

index c85d04c43e4e731a59dfc14b06283c29a58bbed1..cf546afd266165d11eeb0e92a3e377475c320712 100644 (file)
@@ -33,7 +33,7 @@
 #define FLAG_MASTER            0x0001
 #define FLAG_ALIVE             0x0002
 #define FLAG_YOURTURN          0x0004
-
+#define FLAG_WONGAME           0x0008
 
 
 // aClient flags
@@ -60,4 +60,8 @@
 #define setYourTurn(x)         ((x)->addFlag(FLAG_YOURTURN))
 #define clearYourTurn(x)       ((x)->remFlag(FLAG_YOURTURN))
 
+#define hasWonGame(x)          ((x)->getFlags() & FLAG_WONGAME)
+#define setWonGame(x)          ((x)->addFlag(FLAG_WONGAME))
+#define clearWonGame(x)                ((x)->remFlag(FLAG_WONGAME))
+
 #endif