Beispiel #1
0
    public static void EndTurn()
    {
        GridMovement unit = turnTeam.Dequeue();

        unit.EndTurn();

        if (turnTeam.Count > 0)
        {
            StartTurn();
        }
        else
        {
            string team = turnKey.Dequeue();
            turnKey.Enqueue(team);
            InitTeamTurnQueue();
        }
    }
    public static void EndTurn()
    {
        GridMovement unit = turnTeam.Dequeue();

        unit.EndTurn();

        if (turnTeam.Count > 0)
        {
            //start next teammeber's turn
            StartTurn();
        }
        else
        {
            //remove team form front of list and add them to the back, then start next team's turn
            string team = turnKey.Dequeue();
            turnKey.Enqueue(team);
            InitTeamTurnQueue();
        }
    }