* @inheritDoc
*/
public void playerActed(ActionEvent event) throws ActionException {
this.event = event;
if (!canAct(event))
throw new ActionException(
"This action can't be played that way. Action : "
+ this.getClass().getName() + ", event : "
+ event.toString());
if (event.getCards() != null && !event.getCards().isEmpty()) {
if (event.getZoneFrom() == null)
throw new ActionException("Cards must come from a zone");
else if (!event.getZoneFrom().getSortedList().containsAll(
event.getCards()))
throw new ActionException(
"Cards must come from the \"from\" zone");
}
}