PlayerHistory¶
-
public class
PlayerHistory
implements DeepEquatable¶ The history specific to a player. Contains the events seen by the player, as well as loggers related to the actions of the corresponding player.
Author: The Condor
Methods¶
getCommandFeedback¶
-
public ActionResultLogger
getCommandFeedback
()¶
getCommandsIssued¶
-
public ActionLogger
getCommandsIssued
()¶
getEventLogger¶
-
public EventLogger
getEventLogger
()¶
getPlayerNumber¶
-
public int
getPlayerNumber
()¶ Get the number of the player whose history is recorded here.
getPrimitiveFeedback¶
-
public ActionResultLogger
getPrimitiveFeedback
()¶
setCommandFeedback¶
-
public void
setCommandFeedback
(ActionResultLogger commandFeedback)¶ Directly set the action progress/results log. Useful for saving/loading.
Parameters: - commandFeedback –
setCommandsIssued¶
-
public void
setCommandsIssued
(ActionLogger commandsIssued)¶ Directly set the commands issued. Useful for saving/loading
Parameters: - commandsIssued –
setEventLogger¶
-
public void
setEventLogger
(EventLogger eventLogger)¶ Directly set the event logger. Useful for saving/loading.
Parameters: - eventLogger –
setPrimitivesExecuted¶
-
public void
setPrimitivesExecuted
(ActionResultLogger actionsExecuted)¶ Directly set the actions executed log. Useful for saving/loading.
Parameters: - actionsExecuted –