gvprojects.igel.model
Interface ICellState


public interface ICellState

Interface describing the state of a single cell on an Igel Argern game board.

Author:
Zachary Kurmas

Method Summary
 int playerAtDepth(int depth)
          return the number of the player at the given depth
 int size()
          return the number of hedgehogs in this cell.
 java.lang.String type()
          The type of this cell.
 

Method Detail

size

int size()
return the number of hedgehogs in this cell.

Returns:
the number of hedgehogs in this cell.

playerAtDepth

int playerAtDepth(int depth)
return the number of the player at the given depth

Parameters:
depth - the depth (indexed beginning at 0)
Returns:
the number of the player at the given depth
Throws:
java.lang.IllegalArgumentException - if depth < 0 or depth >= size

type

java.lang.String type()
The type of this cell. (Used to choose the correct artist.)

Returns:
the type of this cell.