[refactor] removed generic parameter from Phase

This commit is contained in:
North 2014-06-03 11:47:04 +03:00
parent c5c23fac1a
commit a2e086a152
6 changed files with 8 additions and 8 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;