1 /* player.h
2 **
3 **    player structure
4 **    Copyright (C) 2001  Florian Berger
5 **    Email: harpin_floh@yahoo.de, florian.berger@jk.uni-linz.ac.at
6 **
7 **    This program is free software; you can redistribute it and/or modify
8 **    it under the terms of the GNU General Public License Version 2 as
9 **    published by the Free Software Foundation;
10 **
11 **    This program is distributed in the hope that it will be useful,
12 **    but WITHOUT ANY WARRANTY; without even the implied warranty of
13 **    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 **    GNU General Public License for more details.
15 **
16 **    You should have received a copy of the GNU General Public License
17 **    along with this program; if not, write to the Free Software
18 **    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 **
20 */
21 
22 #ifndef PLAYER_H
23 #define PLAYER_H
24 #include "textobj.h"
25 
26 struct Player{
27     int is_AI;
28     int is_net;
29 //    int is_host;
30     int half_full;
31     int queue_view;
32     int place_cue_ball;
33     int winner;
34     double Zque;
35     double Xque;
36     double cue_x;
37     double cue_y;
38 //    VMvect free_view_pos;
39     double strength;
40     double err;  /* err-ability of ai player */
41     char name[256];
42     textObj * text;
43     textObj * score_text;
44     int snooker_on_red;  /* 1: player is on red,   0: player is on coloured */
45     int snooker_next_color;  /* if all reds are gone : 0/1: any color, other : color to play*/
46     int score;
47     int cue_ball;  /* index of cue ball for this player */
48     int next_9ball;  /* next ball to play in 9ball */
49 };
50 
51 #endif
52