Package net.sf.colossus.gui
Class ShowCreatureDetails.SimulatedCritter
java.lang.Object
net.sf.colossus.game.Creature
net.sf.colossus.gui.ShowCreatureDetails.SimulatedCritter
- Enclosing class:
- ShowCreatureDetails
helper class to simulate a battle of the creature in question against
an other creature. especially distance and hazard must be simulated.
very fragile class, i suppose. but it might be worth it.
TODO this gets harder and harder to maintain the more typesafe the model gets.
Figure out what it is really good for and solve the actual problem. Currently
it even causes assertion errors since it passes nulls where nulls aren't allowed.
- Author:
- Towi
-
Field Summary
FieldsModifier and TypeFieldDescriptioncatch calls to "underlying" battle hex and proxy it to this.Fields inherited from class net.sf.colossus.game.Creature
IMPORTANCE_ORDER, legion
-
Constructor Summary
ConstructorsConstructorDescriptionSimulatedCritter
(CreatureType creature) in hazard Plains.SimulatedCritter
(CreatureType creature, HazardTerrain hazard) -
Method Summary
Modifier and TypeMethodDescriptionprox to simulated hex.color of hex i stand on.int
getSimulatedDiceCount
(Creature target) power of this creature hitting target.int
getSimulatedStrikeNr
(Creature target) skill of this creature hitting target.void
setHexsideHazard
(HazardHexside hexside) void
setNewHazardHex
(HazardTerrain hazard) create the simulated hex.Methods inherited from class net.sf.colossus.game.Creature
addPoisonDamage, addSlowed, adjustHits, commitMove, getDescription, getHits, getImageNames, getLegion, getMarkerId, getMaxCount, getName, getPlayer, getPluralName, getPointValue, getPoison, getPoisonDamage, getPower, getSkill, getSlowed, getSlows, getStartingHex, getStrikingPower, getStrikingSkill, getTitanPower, getType, hasMoved, hasStruck, heal, isDead, isDemiLord, isFlier, isImmortal, isLord, isLordOrDemiLord, isNativeAt, isNativeIn, isRangestriker, isSummonable, isTitan, moveToHex, setCurrentHex, setDead, setHits, setMoved, setPoisonDamage, setSlowed, setStartingHex, setStruck, useMagicMissile, wouldDieFrom
-
Field Details
-
hex
catch calls to "underlying" battle hex and proxy it to this.
-
-
Constructor Details
-
SimulatedCritter
SimulatedCritter(CreatureType creature, HazardTerrain hazard) - Parameters:
creature
- to create a critter forhazard
- that stands in this hazard
-
SimulatedCritter
SimulatedCritter(CreatureType creature) in hazard Plains.
-
-
Method Details
-
setNewHazardHex
create the simulated hex. -
setHexsideHazard
-
getSimulatedDiceCount
power of this creature hitting target. -
getSimulatedStrikeNr
skill of this creature hitting target. -
getHazardColor
color of hex i stand on. -
getHexsideColor
-
getCurrentHex
prox to simulated hex.- Overrides:
getCurrentHex
in classCreature
-