1 /***************************************************************************
2 * Copyright (C) 2008 by NalaGinrut *
3 * suimualatsuki@163.com *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
23 \brief °üº¬GameÀàµÄËùÓз½·¨
40 *\fn void GameClass(GameClass *g)
41 \brief ThisGameµÄ¹¹Ô캯Êý
43 \brief GameClassÖ¸ÕëÀàÐÍ
44 \n ÓÃÀ´³õʼ»¯GameClassÀàÐÍ
46 void GameClass(game
*g
)
48 puts("Init This Game...");
57 * @return Õý³£ÎªOK£¬Ò쳣ΪERROR
59 \n Õû¸ö½ÐÅƹý³Ì£¬×¢ÒâÔÚÍ˳öµÄʱºòÒª½«end_voteÖØÐÂÖÃ0£¬ÒÔ¹©GameʹÓã»
65 //GameData.end_vote=Begin;
70 * @return Õý³£ÎªOK£¬Ò쳣ΪERROR
80 * \fn int GameRefresh()
81 * @return Õý³£ÎªOK£¬Ò쳣ΪERROR
82 \brief Ò»´ÎÊý¾ÝˢУ¬½«GameÀàµÄÊý¾Ý´æÈëÈ«¾ÖÊý¾ÝGlobalData
92 * \fn int GameJoin(PlayerList,player)
93 * @return Õý³£ÎªOK£¬Ò쳣ΪFULL
94 \brief ¼ÓÈëÍæ¼Ò£¬Èç¹ûÂúÁ˾ͷµ»ØFULL£¬¸ù¾ÝGameClassÖеÄEmptyÀ´ÅжÏÊÇ·ñÓпÕȱ²¢¼ÓÈë
100 int GameJoin(game
*g
,player
*p
)
105 //puts("Player %s join OK!",GameData.playname[GameData.empty]);
112 * \fn int GameIsFull()
113 * @return TRUE or FALSE
114 \brief ¸ù¾ÝemptyÅжÏÊÇ·ñÓпÕȱÍæ¼Ò
124 * @return ¹ý³Ì½áÊøΪTRUE£¬¹ý³Ì¼ÌÐøΪFalse£»
125 \brief ÅжϹý³ÌÊÇ·ñ½áÊø£¬°üÀ¨ÓÎÏ·¹ý³Ì ºÍ ½ÐÅƹý³Ì
129 if ( !IsEqu(GameData
.end_vote
,EndGame
) )