Class ShowCreatureDetails.SimulatedCritter

  • Enclosing class:
    ShowCreatureDetails

    final class ShowCreatureDetails.SimulatedCritter
    extends Creature
    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
    • Constructor Detail

      • SimulatedCritter

        SimulatedCritter​(CreatureType creature,
                         HazardTerrain hazard)
        Parameters:
        creature - to create a critter for
        hazard - that stands in this hazard
      • SimulatedCritter

        SimulatedCritter​(CreatureType creature)
        in hazard Plains.
    • Method Detail

      • setNewHazardHex

        public void setNewHazardHex​(HazardTerrain hazard)
        create the simulated hex.
      • setHexsideHazard

        public void setHexsideHazard​(HazardHexside hexside)
      • getSimulatedDiceCount

        public int getSimulatedDiceCount​(Creature target)
        power of this creature hitting target.
      • getSimulatedStrikeNr

        public int getSimulatedStrikeNr​(Creature target)
        skill of this creature hitting target.
      • getHazardColor

        public java.awt.Color getHazardColor()
        color of hex i stand on.
      • getHexsideColor

        public java.awt.Color getHexsideColor()