public class Marker
extends java.lang.Object
For holding information of playing field (core) positions occupied by players.
Used for preparing playing field (core) information for server
| Modifier | Constructor and Description |
|---|---|
protected |
Marker(int size)
Marker
Initializes a default list in the size of the playing field (core).
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.ArrayList<java.lang.Integer> |
get()
getList
|
protected int |
numberOfOccupiedFields(int player)
numberOfOccupiedFields
Generates the number of occupied core fields for a committed player
|
protected Marker(int size)
Initializes a default list in the size of the playing field (core).
size - defines the committed size of the playing field (core).protected java.util.ArrayList<java.lang.Integer> get()
protected int numberOfOccupiedFields(int player)
Generates the number of occupied core fields for a committed player
player - - committed player for whom the occupation should be checked