Example #1
0
    public static void EndGame()
    {
        Events.CallEndGame();

        GameIsEnded = true;

        foreach (var ship in Roster.AllShips.Values)
        {
            ship.DeactivateAllAbilities();
        }

        Board.Cleanup();
    }
Example #2
0
    public static void EndGame()
    {
        Events.CallEndGame();

        GameIsEnded = true;

        foreach (var ship in Roster.AllUnits.Values)
        {
            ship.DeactivateAllAbilities();
        }

        DiceStatsTracker.Update();

        Board.Cleanup();
    }
Example #3
0
    public static void EndGame()
    {
        Events.CallEndGame();

        GameIsEnded = true;

        foreach (var shipHolder in Roster.AllShips)
        {
            foreach (var ability in shipHolder.Value.PilotAbilities)
            {
                ability.DeactivateAbility();
            }

            foreach (var upgrade in shipHolder.Value.UpgradeBar.GetUpgradesOnlyFaceup())
            {
                foreach (var upgradeAbility in upgrade.UpgradeAbilities)
                {
                    upgradeAbility.DeactivateAbility();
                }
            }
        }

        Board.Cleanup();
    }