net.sf.colossus.game
Class Engagement
java.lang.Object
net.sf.colossus.game.Engagement
public class Engagement
- extends java.lang.Object
Holds the basic data for an engagement.
TODO: use also on server side.
TODO: unify with EngagementResults.Engagement
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LOGGER
private static final java.util.logging.Logger LOGGER
attacker
private final Legion attacker
- If engagement is ongoing, the masterBoard hex, attacker and defender
defender
private final Legion defender
location
private final MasterHex location
Engagement
public Engagement(MasterHex hex,
Legion attacker,
Legion defender)
getLocation
public MasterHex getLocation()
getLocationLabel
public java.lang.String getLocationLabel()
getDefendingLegion
public Legion getDefendingLegion()
getAttackingLegion
public Legion getAttackingLegion()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object