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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
target
private final Legion target
donor
private final Legion donor
unit
private final CreatureType unit
noSummoningWanted
private final boolean noSummoningWanted
SummonInfo
public SummonInfo(Legion target,
Legion donor,
CreatureType unit)
SummonInfo
public SummonInfo()
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 class java.lang.Object