Package net.sf.colossus.variant
Class Hazards
java.lang.Object
net.sf.colossus.variant.Hazards
- All Implemented Interfaces:
HazardConstants
- Direct Known Subclasses:
HazardHexside
,HazardTerrain
Superclass for BattleMap hazards: Terrain & Hexsides,
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The 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 net.sf.colossus.variant.HazardConstants
HazardConstants.EffectOnMovement, HazardConstants.EffectOnStrike, HazardConstants.RangeStrikeSpecialEffect, HazardConstants.ScopeOfEffectOnStrike, HazardConstants.SpecialEffect
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Hazards.CombatEffect
CombatEffect to apply when a creature strike out from this terrain.private final char
final Hazards.CombatEffect
CombatEffect 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 Logger
private final String
The name used for serialization.final Hazards.CombatEffect
CombatEffect to apply when a creature rangestrike out from this terrain.final Hazards.CombatEffect
CombatEffect 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:
toString
in interfaceHazardConstants
- Overrides:
toString
in classObject
-