Package net.sf.colossus.game.actions
Class SummonUndo
- java.lang.Object
-
- net.sf.colossus.game.actions.LegionAction
-
- net.sf.colossus.game.actions.AddCreatureAction
-
- net.sf.colossus.game.actions.SummonUndo
-
- All Implemented Interfaces:
GameAction
,RevealingAction
public class SummonUndo extends AddCreatureAction
-
-
Field Summary
-
Fields inherited from class net.sf.colossus.game.actions.LegionAction
legion
-
-
Constructor Summary
Constructors Constructor Description SummonUndo(Legion legion, CreatureType creatureType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Constructor Detail
-
SummonUndo
public SummonUndo(Legion legion, CreatureType creatureType)
-
-
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 classAddCreatureAction
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAddCreatureAction
-
-