Пример #1
0
 public static void SetDefaultSettings()
 {
     fieldSize = 9;
     startState = new GameState();
     startState.SetDefault();
     skillEnabled.SetAll(true);
     rules = Rules.INVISIBLE_TOWERS;
 }
Пример #2
0
    public void StartNewGame()
    {
        GameState tmp = Stats.startState;
        Stats.gameRunning = true;
        Console.Clear();
        if (tmp == null){
            tmp = new GameState();
            tmp.SetDefault();
            Stats.SetDefaultSettings();
            Debug.Log("No settings found. Using default settings");
        }

        cState = new GameState(tmp);
        startOfTurn = new GameState(tmp);

        Skill.skillInUse = 0;
        Skill.skillsUsed = new SkillContainer();
        playerDone = false;

        activeTurn = new Turn();
        BroadcastMessage("InitField");
    }