src/Card.c
[NalaBridge.git] / src / Player.h~
blob957314f44b75e1306a9365b734512471afb8d14b
1 /***************************************************************************
2  *   Copyright (C) 2008 by NalaGinrut   *
3  *   suimualatsuki@163.com   *
4  *                                                                         *
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.                                   *
9  *                                                                         *
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.                          *
14  *                                                                         *
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  ***************************************************************************/
20 #ifndef PLAYER_H
21 #define PLAYER_H
23 #include "Card.h"
24 //#include "Game.h"
26 #define West    1
27 #define North   2
28 #define East    3
29 #define South   4
31 typedef struct Act
33         int (*bid) (void *);
34         int (*send) (void *);
35         int (*eat) (void *);
36         int (*regret) (void *);
38 *actptr;//Íæ¼ÒÐÐΪ£»
40 typedef struct PlayerClass
41   {
42     //ÊôÐÔ£»
43     int score;
44     struct HandCard *pcard;//FIXME;//´Ë´¦µÄÍæ¼Ò³ÖÅÆcard ÐèÒªÓë ³öÅÆʱºòµÄcard±äÁ¿ ·Ö¿ª£»
45     //½Ó¿Ú£»
46     struct Act act;
47   }
48 player;
51 //¹¹Ô캯ÊýµÄÉùÃ÷£»
52 void PlayerClass();
54 //Act½Ó¿ÚµÄº¯ÊýÉùÃ÷£»
55 int PlayerBid(bider);
56 int PlayerSend(card);
57 int PlayerEat(card);
58 int PlayerRegret(player *);
59 #endif // END OF PLAYER_H;