Planeshift
minigame.h
Go to the documentation of this file.
1 /*
2 * minigame.h - Author: Enar Vaikene
3 *
4 * Copyright (C) 2006 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5 *
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation (version 2 of the License)
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 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 *
18 */
19 
20 
21 #ifndef __MINIGAME_H
22 #define __MINIGAME_H
23 
28 namespace psMiniGame
30 {
34 #define GAMEBOARD_MIN_COLS 1
35 #define GAMEBOARD_MAX_COLS 16
36 #define GAMEBOARD_MIN_ROWS 1
37 #define GAMEBOARD_MAX_ROWS 16
38 
41  {
42  MANAGED_GAME = 0x01,
43  BLACK_PIECES = 0x02,
44  READ_ONLY = 0x04,
45  PERSONAL_GAME = 0x08,
46  BLACK_SQUARE = 0x10,
47  PLAIN_SQUARES = 0x20,
48  DISALLOWED_MOVE = 0x40,
49  OBSERVE_ENDGAME = 0x80,
51  };
52 
55  {
56  EMPTY_TILE = 0,
57 
58  WHITE_1 = 1,
65 
66  BLACK_1 = 8,
73 
75  };
76 
77 }
78 
81 #endif
82 
The game is read-only (for watchers).
Definition: minigame.h:44
White regular game piece.
Definition: minigame.h:58
Player with black pieces.
Definition: minigame.h:43
observe endgame play
Definition: minigame.h:49
Disable game tile.
Definition: minigame.h:74
Globals for minigames.
Definition: minigame.h:29
don't pick up pieces
Definition: minigame.h:50
A game managed by the server.
Definition: minigame.h:42
TileStates
Minigame tile state values.
Definition: minigame.h:54
Top left/all squares Black. Else white.
Definition: minigame.h:46
Last move disallowed.
Definition: minigame.h:48
The game is personal & private.
Definition: minigame.h:45
Board squares all plain. Else checked.
Definition: minigame.h:47
GameOptions
Minigame options.
Definition: minigame.h:40
Black regular game piece.
Definition: minigame.h:66
An empty game tile.
Definition: minigame.h:56