forked from External/mage
Restructured Mage module
This commit is contained in:
parent
727d62babb
commit
46eb6c0525
1502 changed files with 11 additions and 9 deletions
45
Mage/src/main/java/mage/game/GameOptions.java
Normal file
45
Mage/src/main/java/mage/game/GameOptions.java
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
package mage.game;
|
||||
|
||||
import java.io.Serializable;
|
||||
import mage.constants.PhaseStep;
|
||||
|
||||
/**
|
||||
* Game options for Mage game. Mainly used in tests to configure
|
||||
* {@link GameImpl} with specific params.
|
||||
*
|
||||
* @author ayratn
|
||||
*/
|
||||
public class GameOptions implements Serializable {
|
||||
|
||||
private static final GameOptions defInstance = new GameOptions();
|
||||
|
||||
public static GameOptions getDefault() {
|
||||
return defInstance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the running mode. There are some exclusions made for test mode.
|
||||
*/
|
||||
public boolean testMode = false;
|
||||
|
||||
/**
|
||||
* Defines the turn number game should stop on. By default, is null meaning
|
||||
* that game shouldn't stop on any specific turn.
|
||||
*/
|
||||
public Integer stopOnTurn = null;
|
||||
|
||||
/**
|
||||
* Stop at the end of the turn if true otherwise stop at the beginning
|
||||
*/
|
||||
public PhaseStep stopAtStep = PhaseStep.UNTAP;
|
||||
|
||||
/**
|
||||
* If true, library won't be shuffled at the beginning of the game
|
||||
*/
|
||||
public boolean skipInitShuffling = false;
|
||||
|
||||
/**
|
||||
* If true, players can rollback turn if all players agree
|
||||
*/
|
||||
public boolean rollbackTurnsAllowed = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue