Package net.sf.colossus.game.actions
Class AddCreatureAction
java.lang.Object
net.sf.colossus.game.actions.LegionAction
net.sf.colossus.game.actions.AddCreatureAction
- All Implemented Interfaces:
GameAction
,RevealingAction
- Direct Known Subclasses:
Acquisition
,EditAddCreature
,Recruitment
,Summoning
,SummonUndo
An event modelling the addition of a creature to a legion.
This is meant to be used only as interface or through subclasses.
TODO make abstract once History handles the subclasses properly
-
Field Summary
FieldsFields inherited from class net.sf.colossus.game.actions.LegionAction
legion
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe type of creature that was added.Returns a string representing the reason for the addition.toString()
Methods inherited from class net.sf.colossus.game.actions.LegionAction
getLegion
-
Field Details
-
creatureType
-
-
Constructor Details
-
AddCreatureAction
-
-
Method Details
-
getAddedCreatureType
The type of creature that was added. -
getRevealedCreatures
- Specified by:
getRevealedCreatures
in interfaceRevealingAction
-
getReason
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 -
toString
-