gvprojects.igel.model
Class IgelGameParameters

java.lang.Object
  extended by gvprojects.igel.model.IgelGameParameters

public class IgelGameParameters
extends java.lang.Object

Describes the basic configuration of a basic game.


Field Summary
static int DEFAULT_HOGS_TO_WIN
           
static int DEFAULT_NUM_COLUMNS
           
static int DEFAULT_NUM_HOGS
           
static int DEFAULT_NUM_PLAYERS
           
static int DEFAULT_NUM_ROWS
           
 int hedgehogsPerPlayer
          Number of hedgehogs controlled by each player
 int hedgehogsToWin
          Number of hedgehogs that must cross the finish line for a win.
 int numColumns
          Number of columns on the board.
 int numPlayers
          Number of players
 int numRows
          Number of rows on the board.
 java.lang.String obstacleType
          A String specifying which type of obstacle should be used for this game.
 
Constructor Summary
IgelGameParameters()
          Default constructor.
IgelGameParameters(int numRows, int numColumns, int numPlayers, int hedgehogsPerPlayer, int hedgehogsToWin, java.lang.String obstacleType)
          Constructor
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_NUM_ROWS

public static final int DEFAULT_NUM_ROWS
See Also:
Constant Field Values

DEFAULT_NUM_COLUMNS

public static final int DEFAULT_NUM_COLUMNS
See Also:
Constant Field Values

DEFAULT_NUM_PLAYERS

public static final int DEFAULT_NUM_PLAYERS
See Also:
Constant Field Values

DEFAULT_NUM_HOGS

public static final int DEFAULT_NUM_HOGS
See Also:
Constant Field Values

DEFAULT_HOGS_TO_WIN

public static final int DEFAULT_HOGS_TO_WIN
See Also:
Constant Field Values

numRows

public int numRows
Number of rows on the board. Ignored when a board configuration file is also specified.


numColumns

public int numColumns
Number of columns on the board. Ignored when a board configuration file is also specified.


numPlayers

public int numPlayers
Number of players


hedgehogsPerPlayer

public int hedgehogsPerPlayer
Number of hedgehogs controlled by each player


hedgehogsToWin

public int hedgehogsToWin
Number of hedgehogs that must cross the finish line for a win.


obstacleType

public java.lang.String obstacleType
A String specifying which type of obstacle should be used for this game. Ignored when a board configuration file is also specified.

Constructor Detail

IgelGameParameters

public IgelGameParameters()
Default constructor.


IgelGameParameters

public IgelGameParameters(int numRows,
                          int numColumns,
                          int numPlayers,
                          int hedgehogsPerPlayer,
                          int hedgehogsToWin,
                          java.lang.String obstacleType)
Constructor

Parameters:
numRows - the number of rows on the board
numColumns - the number of columns on the board
numPlayers - the number of players
hedgehogsPerPlayer - the number of hedgehogs owned by each player*
hedgehogsToWin - the number of hedgehogs that must cross the finish line before a player wins.
obstacleType - the type of any obstacle cells (unless specified otherwise)