Exemple #1
0
    public void ChangePhase()
    {
        DesetupForPhase();
        switch (currentPhase)
        {
        case PhaseType.InitialDisclosure:
            currentPhase = PhaseType.InitialBuying;
            break;

        case PhaseType.InitialBuying:
            ChangeTurn();
            break;

        case PhaseType.Guerilla:
            currentPhase = PhaseType.Combat;
            break;

        case PhaseType.Combat:
            currentPhase = PhaseType.Recruitment;
            break;

        case PhaseType.Recruitment:
            CountryController.AddMoney(currentTurn);
            currentPhase = PhaseType.Disclosing;
            break;

        case PhaseType.Disclosing:
            //TODO: if no disclosing or no countries change turn
            currentPhase = PhaseType.DisclosingBuying;
            break;

        case PhaseType.DisclosingBuying:
            ChangeTurn();
            break;
        }
        SetupForPhase();
        GameController.ResetControllers();
    }