mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 04:12:14 -08:00
[refactor] removed generic parameter from Step
This commit is contained in:
parent
1867a150c1
commit
c5c23fac1a
14 changed files with 15 additions and 16 deletions
|
|
@ -37,7 +37,7 @@ import mage.game.events.GameEvent.EventType;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class BeginCombatStep extends Step<BeginCombatStep> {
|
||||
public class BeginCombatStep extends Step {
|
||||
|
||||
public BeginCombatStep() {
|
||||
super(PhaseStep.BEGIN_COMBAT, true);
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ import mage.players.Player;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class CleanupStep extends Step<CleanupStep> {
|
||||
public class CleanupStep extends Step {
|
||||
|
||||
public CleanupStep() {
|
||||
super(PhaseStep.CLEANUP, true);
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ import mage.game.events.GameEvent.EventType;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class CombatDamageStep extends Step<CombatDamageStep> {
|
||||
public class CombatDamageStep extends Step {
|
||||
|
||||
public CombatDamageStep() {
|
||||
super(PhaseStep.COMBAT_DAMAGE, true);
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ import mage.game.events.GameEvent.EventType;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class DeclareAttackersStep extends Step<DeclareAttackersStep> {
|
||||
public class DeclareAttackersStep extends Step {
|
||||
|
||||
public DeclareAttackersStep() {
|
||||
super(PhaseStep.DECLARE_ATTACKERS, true);
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ import java.util.UUID;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class DeclareBlockersStep extends Step<DeclareBlockersStep> {
|
||||
public class DeclareBlockersStep extends Step {
|
||||
|
||||
public DeclareBlockersStep() {
|
||||
super(PhaseStep.DECLARE_BLOCKERS, true);
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ import mage.players.Player;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class DrawStep extends Step<DrawStep> {
|
||||
public class DrawStep extends Step {
|
||||
|
||||
public DrawStep() {
|
||||
super(PhaseStep.DRAW, true);
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ import mage.game.events.GameEvent.EventType;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class EndOfCombatStep extends Step<EndOfCombatStep> {
|
||||
public class EndOfCombatStep extends Step {
|
||||
|
||||
public EndOfCombatStep() {
|
||||
super(PhaseStep.END_COMBAT, true);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ import mage.game.events.GameEvent.EventType;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class EndStep extends Step<EndStep> {
|
||||
public class EndStep extends Step {
|
||||
|
||||
public EndStep() {
|
||||
super(PhaseStep.END_TURN, true);
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ import mage.game.events.GameEvent.EventType;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class FirstCombatDamageStep extends Step<FirstCombatDamageStep> {
|
||||
public class FirstCombatDamageStep extends Step {
|
||||
|
||||
public FirstCombatDamageStep() {
|
||||
super(PhaseStep.FIRST_COMBAT_DAMAGE, true);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ import mage.game.events.GameEvent.EventType;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class PostCombatMainStep extends Step<PostCombatMainStep> {
|
||||
public class PostCombatMainStep extends Step {
|
||||
|
||||
public PostCombatMainStep() {
|
||||
super(PhaseStep.POSTCOMBAT_MAIN, true);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ import mage.game.events.GameEvent.EventType;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class PreCombatMainStep extends Step<PreCombatMainStep> {
|
||||
public class PreCombatMainStep extends Step {
|
||||
|
||||
public PreCombatMainStep() {
|
||||
super(PhaseStep.PRECOMBAT_MAIN, true);
|
||||
|
|
|
|||
|
|
@ -38,9 +38,8 @@ import mage.game.events.GameEvent.EventType;
|
|||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
* @param <T>
|
||||
*/
|
||||
public abstract class Step<T extends Step<T>> implements Serializable {
|
||||
public abstract class Step implements Serializable {
|
||||
|
||||
private final PhaseStep type;
|
||||
private final boolean hasPriority;
|
||||
|
|
@ -53,7 +52,7 @@ public abstract class Step<T extends Step<T>> implements Serializable {
|
|||
PRE, PRIORITY, POST;
|
||||
}
|
||||
|
||||
public abstract T copy();
|
||||
public abstract Step copy();
|
||||
|
||||
public Step(PhaseStep type, boolean hasPriority) {
|
||||
this.type = type;
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ import mage.players.Player;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class UntapStep extends Step<UntapStep> {
|
||||
public class UntapStep extends Step {
|
||||
|
||||
public UntapStep() {
|
||||
super(PhaseStep.UNTAP, false);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ import mage.game.events.GameEvent.EventType;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class UpkeepStep extends Step<UpkeepStep> {
|
||||
public class UpkeepStep extends Step {
|
||||
|
||||
public UpkeepStep() {
|
||||
super(PhaseStep.UPKEEP, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue