mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 12:52:06 -08:00
Challenge Mode. In progress.
This commit is contained in:
parent
86f708b17a
commit
be2fdd6487
10 changed files with 195 additions and 15 deletions
|
|
@ -157,6 +157,9 @@ public interface Game extends MageItem, Serializable {
|
|||
public void restoreState();
|
||||
public void removeLastBookmark();
|
||||
|
||||
// game options
|
||||
public void setGameOptions(GameOptions options);
|
||||
|
||||
// game cheats (for tests only)
|
||||
public void cheat(UUID ownerId, Map<Zone, String> commands);
|
||||
public void cheat(UUID ownerId, List<Card> library, List<Card> hand, List<PermanentCard> battlefield, List<Card> graveyard);
|
||||
|
|
|
|||
|
|
@ -95,6 +95,7 @@ public abstract class GameImpl<T extends GameImpl<T>> implements Game, Serializa
|
|||
protected transient GameStates gameStates = new GameStates();
|
||||
protected RangeOfInfluence range;
|
||||
protected MultiplayerAttackOption attackOption;
|
||||
protected GameOptions gameOptions;
|
||||
|
||||
@Override
|
||||
public abstract T copy();
|
||||
|
|
@ -307,7 +308,7 @@ public abstract class GameImpl<T extends GameImpl<T>> implements Game, Serializa
|
|||
|
||||
@Override
|
||||
public void start(UUID choosingPlayerId) {
|
||||
start(choosingPlayerId, GameOptions.getDefault());
|
||||
start(choosingPlayerId, this.gameOptions != null ? gameOptions : GameOptions.getDefault());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -1102,4 +1103,8 @@ public abstract class GameImpl<T extends GameImpl<T>> implements Game, Serializa
|
|||
public void clearGraveyard(UUID playerId) {
|
||||
|
||||
}
|
||||
|
||||
public void setGameOptions(GameOptions options) {
|
||||
this.gameOptions = options;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue