mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
[refactor] removed generic parameter from Phase
This commit is contained in:
parent
c5c23fac1a
commit
a2e086a152
6 changed files with 8 additions and 8 deletions
|
@ -37,7 +37,7 @@ import mage.game.events.GameEvent.EventType;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class BeginningPhase extends Phase<BeginningPhase> {
|
||||
public class BeginningPhase extends Phase {
|
||||
|
||||
public BeginningPhase() {
|
||||
this.type = TurnPhase.BEGINNING;
|
||||
|
|
|
@ -35,7 +35,7 @@ import mage.game.events.GameEvent.EventType;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class CombatPhase extends Phase<CombatPhase> {
|
||||
public class CombatPhase extends Phase {
|
||||
|
||||
public CombatPhase() {
|
||||
this.type = TurnPhase.COMBAT;
|
||||
|
|
|
@ -37,7 +37,7 @@ import mage.game.events.GameEvent.EventType;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class EndPhase extends Phase<EndPhase> {
|
||||
public class EndPhase extends Phase {
|
||||
|
||||
public EndPhase() {
|
||||
this.type = TurnPhase.END;
|
||||
|
|
|
@ -43,7 +43,7 @@ import mage.game.events.GameEvent.EventType;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public abstract class Phase<T extends Phase<T>> implements Serializable {
|
||||
public abstract class Phase implements Serializable {
|
||||
|
||||
protected TurnPhase type;
|
||||
protected List<Step> steps = new ArrayList<Step>();
|
||||
|
@ -55,11 +55,11 @@ public abstract class Phase<T extends Phase<T>> implements Serializable {
|
|||
protected Step currentStep;
|
||||
protected int count;
|
||||
|
||||
public abstract T copy();
|
||||
public abstract Phase copy();
|
||||
|
||||
public Phase() {}
|
||||
|
||||
public Phase(final Phase<T> phase) {
|
||||
public Phase(final Phase phase) {
|
||||
this.type = phase.type;
|
||||
this.event = phase.event;
|
||||
this.preEvent = phase.preEvent;
|
||||
|
|
|
@ -35,7 +35,7 @@ import mage.game.events.GameEvent.EventType;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class PostCombatMainPhase extends Phase<PostCombatMainPhase> {
|
||||
public class PostCombatMainPhase extends Phase {
|
||||
|
||||
public PostCombatMainPhase() {
|
||||
this.type = TurnPhase.POSTCOMBAT_MAIN;
|
||||
|
|
|
@ -35,7 +35,7 @@ import mage.game.events.GameEvent.EventType;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class PreCombatMainPhase extends Phase<PreCombatMainPhase> {
|
||||
public class PreCombatMainPhase extends Phase {
|
||||
|
||||
public PreCombatMainPhase() {
|
||||
this.type = TurnPhase.PRECOMBAT_MAIN;
|
||||
|
|
Loading…
Reference in a new issue