ActionResultLogger¶
-
public class
ActionResultLogger
implements Serializable, DeepEquatable¶ Logs the results for a single player.
Author: The Condor
Methods¶
addActionResult¶
-
public void
addActionResult
(int stepNumber, ActionResult actionResult)¶ Insert an action result, overwriting any ActionResult for the same unit in the same round.
Parameters: - stepNumber –
- actionResult –
addActionResult¶
-
public void
addActionResult
(int stepNumber, int unitID, ActionResult actionResult)¶ Insert an action result, overwriting any ActionResult for the same unit id in the same round.
Parameters: - stepNumber –
- unitID –
- actionResult –
getActionResults¶
-
public Map<Integer, ActionResult>
getActionResults
(int roundnumber)¶ Get the results of actions for a specific round.
Parameters: - roundnumber –
Returns: an unmodifiable list of ActionResults