public class Players
extends java.lang.Object
Holding all players competing against each other and their command pointer pointing on their actual processing
position.
Also processes which player is next for game processing.
| Constructor and Description |
|---|
Players() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPlayer(int position)
addPlayer
Adds a new player to the list and adds a corresponding command pointer.
|
protected int |
getCurrentPlayer()
getCurrentPlayer
|
protected java.util.ArrayList<CommandPointer> |
getList()
getPlayerList
|
protected void |
next()
next
Processes which player is next and sets the corresponding actual process to the next one.
|
protected void addPlayer(int position)
Adds a new player to the list and adds a corresponding command pointer.
protected void next()
Processes which player is next and sets the corresponding actual process to the next one.
protected int getCurrentPlayer()
protected java.util.ArrayList<CommandPointer> getList()