Planeshift
Classes | Defines | Enumerations

psminigameboard.h File Reference

#include "psstdint.h"

Go to the source code of this file.

Classes

struct  Endgame_Spec
struct  Endgame_TileSpec
class  psMiniGameBoard
 Wrapper class for game board. More...
class  psMiniGameBoardDef
 Game board definition class. More...

Defines

#define GAMEBOARD_DEFAULT_PLAYERS   2
#define GAMEBOARD_MAX_PLAYERS   2
#define GAMEBOARD_MIN_PLAYERS   1
 Game board limits.

Enumerations

enum  Endgame_TileType {
  PLAYED_PIECE, WHITE_PIECE, BLACK_PIECE, NO_PIECE,
  FOLLOW_SOURCE_TILE, SPECIFIC_TILE
}
 

structs & types used to specify endgames of minigames, to recognise specific patterns of played pieces on a gameboard

More...
enum  Rule_MoveablePieces { ANY_PIECE, OWN_PIECES_ONLY }
enum  Rule_MoveDirection {
  ANY, VERTICAL, HORIZONTAL, CROSS,
  DIAGONAL
}
enum  Rule_MovePiecesTo { ANYWHERE, VACANCY_ONLY }
enum  Rule_MovePieceType { PLACE_OR_MOVE, PLACE_ONLY, MOVE_ONLY }
enum  Rule_PlayerTurn { RELAXED, ORDERED, STRICT_ORDERED }
 

Following enums define values to represent simple game rules.

More...

Define Documentation

#define GAMEBOARD_DEFAULT_PLAYERS   2

Definition at line 43 of file psminigameboard.h.

#define GAMEBOARD_MAX_PLAYERS   2

Definition at line 42 of file psminigameboard.h.

#define GAMEBOARD_MIN_PLAYERS   1

Game board limits.

Definition at line 41 of file psminigameboard.h.


Enumeration Type Documentation

structs & types used to specify endgames of minigames, to recognise specific patterns of played pieces on a gameboard

Enumerator:
PLAYED_PIECE 
WHITE_PIECE 
BLACK_PIECE 
NO_PIECE 
FOLLOW_SOURCE_TILE 
SPECIFIC_TILE 

Definition at line 83 of file psminigameboard.h.

Enumerator:
ANY_PIECE 
OWN_PIECES_ONLY 

Definition at line 60 of file psminigameboard.h.

Enumerator:
ANY 
VERTICAL 
HORIZONTAL 
CROSS 
DIAGONAL 

Definition at line 70 of file psminigameboard.h.

Enumerator:
ANYWHERE 
VACANCY_ONLY 

Definition at line 65 of file psminigameboard.h.

Enumerator:
PLACE_OR_MOVE 
PLACE_ONLY 
MOVE_ONLY 

Definition at line 54 of file psminigameboard.h.

Following enums define values to represent simple game rules.

Enumerator:
RELAXED 
ORDERED 
STRICT_ORDERED 

Definition at line 48 of file psminigameboard.h.