net.sf.freecol.common.model
Enum CombatModel.CombatResult

java.lang.Object
  extended by java.lang.Enum<CombatModel.CombatResult>
      extended by net.sf.freecol.common.model.CombatModel.CombatResult
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CombatModel.CombatResult>
Enclosing class:
CombatModel

public static enum CombatModel.CombatResult
extends java.lang.Enum<CombatModel.CombatResult>


Enum Constant Summary
AUTOEQUIP_UNIT
           
BURN_MISSIONS
           
CAPTURE_AUTOEQUIP
           
CAPTURE_COLONY
           
CAPTURE_CONVERT
           
CAPTURE_EQUIP
           
CAPTURE_UNIT
           
DAMAGE_COLONY_SHIPS
           
DAMAGE_SHIP_ATTACK
           
DAMAGE_SHIP_BOMBARD
           
DEMOTE_UNIT
           
DESTROY_COLONY
           
DESTROY_SETTLEMENT
           
EVADE_ATTACK
           
EVADE_BOMBARD
           
LOOT_SHIP
           
LOSE
           
LOSE_AUTOEQUIP
           
LOSE_EQUIP
           
NO_RESULT
           
PILLAGE_COLONY
           
PROMOTE_UNIT
           
SINK_COLONY_SHIPS
           
SINK_SHIP_ATTACK
           
SINK_SHIP_BOMBARD
           
SLAUGHTER_UNIT
           
WIN
           
 
Method Summary
static CombatModel.CombatResult valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CombatModel.CombatResult[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NO_RESULT

public static final CombatModel.CombatResult NO_RESULT

LOSE

public static final CombatModel.CombatResult LOSE

WIN

public static final CombatModel.CombatResult WIN

AUTOEQUIP_UNIT

public static final CombatModel.CombatResult AUTOEQUIP_UNIT

BURN_MISSIONS

public static final CombatModel.CombatResult BURN_MISSIONS

CAPTURE_AUTOEQUIP

public static final CombatModel.CombatResult CAPTURE_AUTOEQUIP

CAPTURE_COLONY

public static final CombatModel.CombatResult CAPTURE_COLONY

CAPTURE_CONVERT

public static final CombatModel.CombatResult CAPTURE_CONVERT

CAPTURE_EQUIP

public static final CombatModel.CombatResult CAPTURE_EQUIP

CAPTURE_UNIT

public static final CombatModel.CombatResult CAPTURE_UNIT

DAMAGE_COLONY_SHIPS

public static final CombatModel.CombatResult DAMAGE_COLONY_SHIPS

DAMAGE_SHIP_ATTACK

public static final CombatModel.CombatResult DAMAGE_SHIP_ATTACK

DAMAGE_SHIP_BOMBARD

public static final CombatModel.CombatResult DAMAGE_SHIP_BOMBARD

DEMOTE_UNIT

public static final CombatModel.CombatResult DEMOTE_UNIT

DESTROY_COLONY

public static final CombatModel.CombatResult DESTROY_COLONY

DESTROY_SETTLEMENT

public static final CombatModel.CombatResult DESTROY_SETTLEMENT

EVADE_ATTACK

public static final CombatModel.CombatResult EVADE_ATTACK

EVADE_BOMBARD

public static final CombatModel.CombatResult EVADE_BOMBARD

LOOT_SHIP

public static final CombatModel.CombatResult LOOT_SHIP

LOSE_AUTOEQUIP

public static final CombatModel.CombatResult LOSE_AUTOEQUIP

LOSE_EQUIP

public static final CombatModel.CombatResult LOSE_EQUIP

PILLAGE_COLONY

public static final CombatModel.CombatResult PILLAGE_COLONY

PROMOTE_UNIT

public static final CombatModel.CombatResult PROMOTE_UNIT

SINK_COLONY_SHIPS

public static final CombatModel.CombatResult SINK_COLONY_SHIPS

SINK_SHIP_ATTACK

public static final CombatModel.CombatResult SINK_SHIP_ATTACK

SINK_SHIP_BOMBARD

public static final CombatModel.CombatResult SINK_SHIP_BOMBARD

SLAUGHTER_UNIT

public static final CombatModel.CombatResult SLAUGHTER_UNIT
Method Detail

values

public static CombatModel.CombatResult[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (CombatModel.CombatResult c : CombatModel.CombatResult.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CombatModel.CombatResult valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null