net.sf.colossus.game
Class SummonInfo

java.lang.Object
  extended by 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
private  Legion donor
           
private  boolean noSummoningWanted
           
private  Legion target
           
private  CreatureType unit
           
 
Constructor Summary
SummonInfo()
           
SummonInfo(Legion target, Legion donor, CreatureType unit)
           
 
Method Summary
 Legion getDonor()
           
 Legion getTarget()
           
 CreatureType getUnit()
           
 boolean noSummoningWanted()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 class java.lang.Object