Package net.sf.colossus.game
Class SummonInfo
- java.lang.Object
-
- net.sf.colossus.game.SummonInfo
-
public class SummonInfo extends java.lang.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 Summary
Fields Modifier and Type Field Description private Legion
donor
private boolean
noSummoningWanted
private Legion
target
private CreatureType
unit
-
Constructor Summary
Constructors Constructor Description SummonInfo()
SummonInfo(Legion target, Legion donor, CreatureType unit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Legion
getDonor()
Legion
getTarget()
CreatureType
getUnit()
boolean
noSummoningWanted()
java.lang.String
toString()
-
-
-
Field Detail
-
target
private final Legion target
-
donor
private final Legion donor
-
unit
private final CreatureType unit
-
noSummoningWanted
private final boolean noSummoningWanted
-
-
Constructor Detail
-
SummonInfo
public SummonInfo(Legion target, Legion donor, CreatureType unit)
-
SummonInfo
public SummonInfo()
-
-
Method Detail
-
getTarget
public Legion getTarget()
-
getDonor
public Legion getDonor()
-
getUnit
public CreatureType getUnit()
-
noSummoningWanted
public boolean noSummoningWanted()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-