added setCardDefinition

master
melvin 2011-06-07 16:20:11 +08:00
parent 620e9f7a13
commit 73edddea64
1 changed files with 6 additions and 2 deletions

View File

@ -13,8 +13,8 @@ public abstract class MagicTrigger implements MagicEventAction {
private static final int DEFAULT_PRIORITY=10;
private final MagicTriggerType type;
private final MagicCardDefinition card;
private final int priority;
private MagicCardDefinition card;
private MagicTrigger(final MagicTriggerType type,final MagicCardDefinition card,final int priority) {
@ -38,6 +38,10 @@ public abstract class MagicTrigger implements MagicEventAction {
this(type,(MagicCardDefinition)null,DEFAULT_PRIORITY);
}
public void setCardDefinition(final MagicCardDefinition card) {
this.card = card;
}
public final MagicCardDefinition getCardDefinition() {
return card;