|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gvprojects.igel.model.IgelGameParameters
public class IgelGameParameters
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 |
---|
public static final int DEFAULT_NUM_ROWS
public static final int DEFAULT_NUM_COLUMNS
public static final int DEFAULT_NUM_PLAYERS
public static final int DEFAULT_NUM_HOGS
public static final int DEFAULT_HOGS_TO_WIN
public int numRows
public int numColumns
public int numPlayers
public int hedgehogsPerPlayer
public int hedgehogsToWin
public java.lang.String obstacleType
String
specifying which type of obstacle should be used for this game. Ignored when a board configuration file is also specified.
Constructor Detail |
---|
public IgelGameParameters()
public IgelGameParameters(int numRows, int numColumns, int numPlayers, int hedgehogsPerPlayer, int hedgehogsToWin, java.lang.String obstacleType)
numRows
- the number of rows on the boardnumColumns
- the number of columns on the boardnumPlayers
- the number of playershedgehogsPerPlayer
- 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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |