Class Hazards
java.lang.Object
net.sf.colossus.variant.Hazards
- All Implemented Interfaces:
HazardConstants
- Direct Known Subclasses:
HazardHexside, HazardTerrain
Superclass for BattleMap hazards: Terrain invalid input: '&' Hexsides,
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe effect on a combat category (strike|rangestrike, defense|attack), including the effect (what), the scope (who), and the adjustement (how much).Nested classes/interfaces inherited from interface HazardConstants
HazardConstants.EffectOnMovement, HazardConstants.EffectOnStrike, HazardConstants.RangeStrikeSpecialEffect, HazardConstants.ScopeOfEffectOnStrike, HazardConstants.SpecialEffect -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Hazards.CombatEffectCombatEffect to apply when a creature strike out from this terrain.private final charfinal Hazards.CombatEffectCombatEffect to apply when a creature is struck in this terrain.Effect to apply to flying creature, except at the end of their movement (when they, presumably, land.).Effect to apply to land-bound creature, and to flyer at the end of their movement (when they, presumably, land.).private static final Loggerprivate final StringThe name used for serialization.final Hazards.CombatEffectCombatEffect to apply when a creature rangestrike out from this terrain.final Hazards.CombatEffectCombatEffect to apply when a creature is rangestruck in this terrain. -
Constructor Summary
ConstructorsConstructorDescriptionHazards(String name, char code, HazardConstants.EffectOnMovement effectOnGroundMovement, HazardConstants.EffectOnMovement effectOnFlyerMovement, Hazards.CombatEffect defenseEffect, Hazards.CombatEffect attackEffect, Hazards.CombatEffect rangedDefenseEffect, Hazards.CombatEffect rangedAttackEffect, HazardConstants.RangeStrikeSpecialEffect RangeStrikeSpecial, HazardConstants.SpecialEffect terrainSpecial) -
Method Summary
-
Field Details
-
LOGGER
-
name
The name used for serialization. -
code
private final char code -
effectOnGroundMovement
Effect to apply to land-bound creature, and to flyer at the end of their movement (when they, presumably, land.). -
effectOnFlyerMovement
Effect to apply to flying creature, except at the end of their movement (when they, presumably, land.). -
defenseEffect
CombatEffect to apply when a creature is struck in this terrain. -
attackEffect
CombatEffect to apply when a creature strike out from this terrain. -
rangedDefenseEffect
CombatEffect to apply when a creature is rangestruck in this terrain. -
rangedAttackEffect
CombatEffect to apply when a creature rangestrike out from this terrain. -
rangeStrikeSpecial
-
terrainSpecial
-
-
Constructor Details
-
Hazards
public Hazards(String name, char code, HazardConstants.EffectOnMovement effectOnGroundMovement, HazardConstants.EffectOnMovement effectOnFlyerMovement, Hazards.CombatEffect defenseEffect, Hazards.CombatEffect attackEffect, Hazards.CombatEffect rangedDefenseEffect, Hazards.CombatEffect rangedAttackEffect, HazardConstants.RangeStrikeSpecialEffect RangeStrikeSpecial, HazardConstants.SpecialEffect terrainSpecial)
-
-
Method Details
-
getName
-
getCode
public char getCode() -
toString
- Specified by:
toStringin interfaceHazardConstants- Overrides:
toStringin classObject
-