net.sf.colossus.game
Class Engagement

java.lang.Object
  extended by 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


Field Summary
private  Legion attacker
          If engagement is ongoing, the masterBoard hex, attacker and defender
private  Legion defender
           
private  MasterHex location
           
private static java.util.logging.Logger LOGGER
           
 
Constructor Summary
Engagement(MasterHex hex, Legion attacker, Legion defender)
           
 
Method Summary
 Legion getAttackingLegion()
           
 Legion getDefendingLegion()
           
 MasterHex getLocation()
           
 java.lang.String getLocationLabel()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Engagement

public Engagement(MasterHex hex,
                  Legion attacker,
                  Legion defender)
Method Detail

getLocation

public MasterHex getLocation()

getLocationLabel

public java.lang.String getLocationLabel()

getDefendingLegion

public Legion getDefendingLegion()

getAttackingLegion

public Legion getAttackingLegion()