net.sf.colossus.game.actions
Class Recruitment
java.lang.Object
net.sf.colossus.game.actions.LegionAction
net.sf.colossus.game.actions.AddCreatureAction
net.sf.colossus.game.actions.Recruitment
- All Implemented Interfaces:
- GameAction, RevealingAction
public class Recruitment
- extends AddCreatureAction
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
recruiter
private final CreatureType recruiter
Recruitment
public Recruitment(Legion legion,
CreatureType recruited,
CreatureType recruiter)
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