forked from External/mage
28 lines
731 B
Java
28 lines
731 B
Java
package mage.server.challenge;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
import java.util.UUID;
|
|
import mage.constants.Zone;
|
|
import mage.game.match.Match;
|
|
|
|
/**
|
|
* C U R R E N T L Y U N U S E D
|
|
*
|
|
* Loads challenges from scenarios.
|
|
* Configure games by initializing starting game board.
|
|
*/
|
|
public class ChallengeManager {
|
|
|
|
public static final ChallengeManager fInstance = new ChallengeManager();
|
|
|
|
public static ChallengeManager getInstance() {
|
|
return fInstance;
|
|
}
|
|
|
|
public void prepareChallenge(UUID playerId, Match match) {
|
|
Map<Zone, String> commands = new HashMap<Zone, String>();
|
|
commands.put(Zone.OUTSIDE, "life:3");
|
|
match.getGame().cheat(playerId, commands);
|
|
}
|
|
}
|