EventLogger¶
-
public class
EventLogger
implements Serializable, DeepEquatable¶ Logs all the primitive logs including damage, death, birth, upgrade, etc.
Methods¶
getHighestRoundBirth¶
-
public int
getHighestRoundBirth
()¶ Get the number of the highest round for which this logger has recorded data.
Returns: The highest recorded round
getHighestRoundDamage¶
-
public int
getHighestRoundDamage
()¶ Get the number of the highest round for which this logger has recorded data.
Returns: The highest recorded round
getHighestRoundDeath¶
-
public int
getHighestRoundDeath
()¶ Get the number of the highest round for which this logger has recorded data.
Returns: The highest recorded round
getHighestRoundResourceDropoff¶
-
public int
getHighestRoundResourceDropoff
()¶ Get the number of the highest round for which this logger has recorded data.
Returns: The highest recorded round
getHighestRoundResourceNodeExhaustion¶
-
public int
getHighestRoundResourceNodeExhaustion
()¶ Get the number of the highest round for which this logger has recorded data.
Returns: The highest recorded round
getHighestRoundResourcePickup¶
-
public int
getHighestRoundResourcePickup
()¶ Get the number of the highest round for which this logger has recorded data.
Returns: The highest recorded round
getHighestRoundUpgrade¶
-
public int
getHighestRoundUpgrade
()¶ Get the number of the highest round for which this logger has recorded data.
Returns: The highest recorded round
getResourceDropoffs¶
-
public List<ResourceDropoffLog>
getResourceDropoffs
(int roundnumber)¶
getResourceNodeExhaustions¶
-
public List<ResourceNodeExhaustionLog>
getResourceNodeExhaustions
(int roundnumber)¶
getResourcePickups¶
-
public List<ResourcePickupLog>
getResourcePickups
(int roundnumber)¶
getRevealedResourceNodes¶
-
public List<RevealedResourceNodeLog>
getRevealedResourceNodes
()¶
getUpgrades¶
-
public List<UpgradeLog>
getUpgrades
(int roundnumber)¶
recordBirth¶
-
public void
recordBirth
(int turnnumber, int newunitid, int parentunitid, int controller)¶
recordDamage¶
-
public void
recordDamage
(int turnnumber, int attackerid, int attackercontroller, int defenderid, int defendercontroller, int damage)¶
recordResourceDropoff¶
-
public void
recordResourceDropoff
(int turnnumber, int depositerid, int depositplaceid, int controller, ResourceType type, int amount)¶
recordResourceNodeExhaustion¶
-
public void
recordResourceNodeExhaustion
(int turnnumber, int exhaustednodeid, ResourceNode.Type type)¶
recordResourcePickup¶
-
public void
recordResourcePickup
(int turnnumber, int gathererid, int controller, ResourceType type, int amount, int nodeid, ResourceNode.Type nodetype)¶
recordRevealedResourceNode¶
-
public void
recordRevealedResourceNode
(int resourcenodex, int resourcenodey, ResourceNode.Type resourcenodetype)¶