net.sf.colossus.game.actions
Class Summoning

java.lang.Object
  extended by net.sf.colossus.game.actions.LegionAction
      extended by net.sf.colossus.game.actions.AddCreatureAction
          extended by net.sf.colossus.game.actions.Summoning
All Implemented Interfaces:
GameAction, RevealingAction

public class Summoning
extends AddCreatureAction


Field Summary
private  Legion donor
           
 
Fields inherited from class net.sf.colossus.game.actions.LegionAction
legion
 
Constructor Summary
Summoning(Legion targetLegion, Legion donor, CreatureType summonedCreature)
           
 
Method Summary
 Legion getDonor()
           
 java.lang.String getReason()
          Returns a string representing the reason for the addition.
 java.lang.String toString()
           
 
Methods inherited from class net.sf.colossus.game.actions.AddCreatureAction
getAddedCreatureType, getRevealedCreatures
 
Methods inherited from class net.sf.colossus.game.actions.LegionAction
getLegion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

donor

private final Legion donor
Constructor Detail

Summoning

public Summoning(Legion targetLegion,
                 Legion donor,
                 CreatureType summonedCreature)
Method Detail

getReason

public java.lang.String getReason()
Description copied from class: AddCreatureAction
Returns a string representing the reason for the addition. TODO remove in favour of using the event hierarchy TODO should be abstract here, but History still creates instances of this class

Overrides:
getReason in class AddCreatureAction

getDonor

public Legion getDonor()

toString

public java.lang.String toString()
Overrides:
toString in class AddCreatureAction