Introduced all types of Actions for clarity
This commit is contained in:
@@ -32,7 +32,7 @@ public class PlayerReconcilesAction implements Action {
|
||||
|
||||
@Override
|
||||
public Type getType() {
|
||||
return Type.OTHER;
|
||||
return Type.RECONCILE;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -26,7 +26,7 @@ public class ResolveSkirmishDamageAction extends RequiredTriggerAction {
|
||||
|
||||
@Override
|
||||
public Type getType() {
|
||||
return Type.OTHER;
|
||||
return Type.RESOLVE_DAMAGE;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -41,6 +41,6 @@ public class TransferPermanentAction extends ActivateCardAction {
|
||||
|
||||
@Override
|
||||
public Type getType() {
|
||||
return Type.OTHER;
|
||||
return Type.TRANSFER;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,33 +1,33 @@
|
||||
package com.gempukku.lotro.logic.timing;
|
||||
|
||||
import com.gempukku.lotro.common.Phase;
|
||||
import com.gempukku.lotro.game.PhysicalCard;
|
||||
import com.gempukku.lotro.game.state.LotroGame;
|
||||
|
||||
public interface Action {
|
||||
public enum Type {
|
||||
PLAY_CARD, SPECIAL_ABILITY, TRIGGER, OTHER
|
||||
}
|
||||
|
||||
public Type getType();
|
||||
|
||||
public PhysicalCard getActionSource();
|
||||
|
||||
public void setActionTimeword(Phase phase);
|
||||
|
||||
public PhysicalCard getActionAttachedToCard();
|
||||
|
||||
public void setVirtualCardAction(boolean virtualCardAction);
|
||||
|
||||
public boolean isVirtualCardAction();
|
||||
|
||||
public void setPerformingPlayer(String playerId);
|
||||
|
||||
public String getPerformingPlayer();
|
||||
|
||||
public Phase getActionTimeword();
|
||||
|
||||
public String getText(LotroGame game);
|
||||
|
||||
public Effect nextEffect(LotroGame game);
|
||||
}
|
||||
package com.gempukku.lotro.logic.timing;
|
||||
|
||||
import com.gempukku.lotro.common.Phase;
|
||||
import com.gempukku.lotro.game.PhysicalCard;
|
||||
import com.gempukku.lotro.game.state.LotroGame;
|
||||
|
||||
public interface Action {
|
||||
public enum Type {
|
||||
PLAY_CARD, SPECIAL_ABILITY, TRIGGER, TRANSFER, RECONCILE, RESOLVE_DAMAGE, OTHER
|
||||
}
|
||||
|
||||
public Type getType();
|
||||
|
||||
public PhysicalCard getActionSource();
|
||||
|
||||
public void setActionTimeword(Phase phase);
|
||||
|
||||
public PhysicalCard getActionAttachedToCard();
|
||||
|
||||
public void setVirtualCardAction(boolean virtualCardAction);
|
||||
|
||||
public boolean isVirtualCardAction();
|
||||
|
||||
public void setPerformingPlayer(String playerId);
|
||||
|
||||
public String getPerformingPlayer();
|
||||
|
||||
public Phase getActionTimeword();
|
||||
|
||||
public String getText(LotroGame game);
|
||||
|
||||
public Effect nextEffect(LotroGame game);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user