Planeshift

minigame.h

Go to the documentation of this file.
00001 /*
00002 * minigame.h - Author: Enar Vaikene
00003 *
00004 * Copyright (C) 2006 Atomic Blue ([email protected], http://www.atomicblue.org)
00005 *
00006 *
00007 * This program is free software; you can redistribute it and/or
00008 * modify it under the terms of the GNU General Public License
00009 * as published by the Free Software Foundation (version 2 of the License)
00010 * This program is distributed in the hope that it will be useful,
00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 * GNU General Public License for more details.
00014 * You should have received a copy of the GNU General Public License
00015 * along with this program; if not, write to the Free Software
00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00017 *
00018 */
00019 
00020 
00021 #ifndef __MINIGAME_H
00022 #define __MINIGAME_H
00023 
00028 
00029 namespace psMiniGame
00030 {
00034 #define GAMEBOARD_MIN_COLS 1
00035 #define GAMEBOARD_MAX_COLS 16
00036 #define GAMEBOARD_MIN_ROWS 1
00037 #define GAMEBOARD_MAX_ROWS 16
00038 
00040     enum GameOptions
00041     {
00042         MANAGED_GAME         = 0x01, 
00043         BLACK_PIECES         = 0x02, 
00044         READ_ONLY            = 0x04, 
00045         PERSONAL_GAME        = 0x08, 
00046         BLACK_SQUARE         = 0x10, 
00047         PLAIN_SQUARES        = 0x20, 
00048         DISALLOWED_MOVE      = 0x40, 
00049         OBSERVE_ENDGAME      = 0x80, 
00050         OPTION_PLACE_ONLY    = 0x8000 
00051     };
00052 
00054     enum TileStates
00055     {
00056         EMPTY_TILE         = 0,     
00057 
00058         WHITE_1            = 1,     
00059         WHITE_2,
00060         WHITE_3,
00061         WHITE_4,
00062         WHITE_5,
00063         WHITE_6,
00064         WHITE_7,
00065 
00066         BLACK_1            = 8,    
00067         BLACK_2,
00068         BLACK_3,
00069         BLACK_4,
00070         BLACK_5,
00071         BLACK_6,
00072         BLACK_7,
00073 
00074         DISABLED_TILE      = 15    
00075     };
00076 
00077 }
00078 
00081 #endif
00082