EventLogger

public class EventLogger implements Serializable, DeepEquatable

Logs all the primitive logs including damage, death, birth, upgrade, etc.

Constructors

EventLogger

public EventLogger()

Methods

deepEquals

public boolean deepEquals(Object other)

equals

public boolean equals(Object obj)

eraseResourceNodeReveals

public void eraseResourceNodeReveals()

getBirths

public List<BirthLog> getBirths(int roundnumber)

getDamage

public List<DamageLog> getDamage(int roundnumber)

getDeaths

public List<DeathLog> getDeaths(int roundnumber)

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)

hashCode

public int hashCode()

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)

recordDeath

public void recordDeath(int turnnumber, int deadunitid, int controller)

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)

recordUpgrade

public void recordUpgrade(int turnnumber, int upgradetemplateid, int producingunitid, int controller)