net.sf.colossus.game.actions
Class Recruitment

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.Recruitment
All Implemented Interfaces:
GameAction, RevealingAction

public class Recruitment
extends AddCreatureAction


Field Summary
private  CreatureType recruiter
           
 
Fields inherited from class net.sf.colossus.game.actions.LegionAction
legion
 
Constructor Summary
Recruitment(Legion legion, CreatureType recruited, CreatureType recruiter)
           
 
Method Summary
 java.lang.String getReason()
          Returns a string representing the reason for the addition.
 CreatureType getRecruited()
           
 CreatureType getRecruiter()
           
 CreatureType[] getRevealedCreatures()
           
 java.lang.String toString()
           
 
Methods inherited from class net.sf.colossus.game.actions.AddCreatureAction
getAddedCreatureType
 
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

recruiter

private final CreatureType recruiter
Constructor Detail

Recruitment

public Recruitment(Legion legion,
                   CreatureType recruited,
                   CreatureType recruiter)
Method Detail

getRecruited

public CreatureType getRecruited()

getRecruiter

public CreatureType getRecruiter()

getRevealedCreatures

public CreatureType[] getRevealedCreatures()
Specified by:
getRevealedCreatures in interface RevealingAction
Overrides:
getRevealedCreatures in class AddCreatureAction

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

toString

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