dip.judge.parser
Class DislodgedParser.DislodgedInfo

java.lang.Object
  extended bydip.judge.parser.DislodgedParser.DislodgedInfo
Enclosing class:
DislodgedParser

public static class DislodgedParser.DislodgedInfo
extends java.lang.Object

A DislodgedInfo object is created for each dislodged unit.

Dislodged units may be destroyed (and have no valid retreat locations) or may have a retreat location


Constructor Summary
DislodgedParser.DislodgedInfo(java.lang.String power, java.lang.String unit, java.lang.String src, java.lang.String[] retreatLocs)
          Create a DislodgedInfo object
 
Method Summary
 java.lang.String getPowerName()
          Name of the Power
 java.lang.String[] getRetreatLocationNames()
          Names of valid retreat locations; zero-length if no valid retreats
 java.lang.String getSourceName()
          Location of the unit
 java.lang.String getUnitName()
          Type Name of the unit (e.g., "Fleet")
 boolean isDestroyed()
          Indicates if unit was destroyed
 java.lang.String toString()
          String output for debugging; may change between versions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DislodgedParser.DislodgedInfo

public DislodgedParser.DislodgedInfo(java.lang.String power,
                                     java.lang.String unit,
                                     java.lang.String src,
                                     java.lang.String[] retreatLocs)
Create a DislodgedInfo object

Method Detail

getPowerName

public java.lang.String getPowerName()
Name of the Power


getSourceName

public java.lang.String getSourceName()
Location of the unit


getUnitName

public java.lang.String getUnitName()
Type Name of the unit (e.g., "Fleet")


getRetreatLocationNames

public java.lang.String[] getRetreatLocationNames()
Names of valid retreat locations; zero-length if no valid retreats


isDestroyed

public boolean isDestroyed()
Indicates if unit was destroyed


toString

public java.lang.String toString()
String output for debugging; may change between versions.



Copyright 2002-2004 Zachary DelProposto / jDip Development Team. All Rights Reserved.