public class Round
extends java.lang.Object
Constructor and Description |
---|
Round()
Creates a new instance of the
Round object. |
Round(Round round)
Creates a new instance of the
Round object. |
Modifier and Type | Method and Description |
---|---|
void |
addTurn(Turn turn)
Add a turn to this round.
|
Round |
copy()
Create a shallow copy of the Round.
|
java.util.ArrayList<Action> |
getActions()
Gets the actions in done in this round.
|
Action |
getMostRecentAction()
get the last item of the
getActions() list, which in practice should be the most
recent action of this round. |
java.util.ArrayList<Turn> |
getTurns()
Gets the turns in this round.
|
public Round()
Round
object.public java.util.ArrayList<Turn> getTurns()
Turn
object for more information.Turn
objects in this roundpublic java.util.ArrayList<Action> getActions()
public Round copy()
Round(Round)
constructor.public void addTurn(Turn turn)
Turn
for more information.turn
- the turn to addpublic Action getMostRecentAction()
getActions()
list, which in practice should be the most
recent action of this round.