Class SummonInfo

java.lang.Object
net.sf.colossus.game.SummonInfo

public class SummonInfo extends Object
Little helper class to store information about a summoning: The target legion, the donor legion, and the summoned creature(type) (creature as String, for now). TODO there is overlap with the SummonEvent here, although the semantics are different. Maybe a constructor for SummonEvent could use this class.
  • Field Details

    • target

      private final Legion target
    • donor

      private final Legion donor
    • unit

      private final CreatureType unit
    • noSummoningWanted

      private final boolean noSummoningWanted
  • Constructor Details

  • Method Details

    • getTarget

      public Legion getTarget()
    • getDonor

      public Legion getDonor()
    • getUnit

      public CreatureType getUnit()
    • noSummoningWanted

      public boolean noSummoningWanted()
    • toString

      public String toString()
      Overrides:
      toString in class Object