Exemplo n.º 1
0
    public void instantiateTeam(int teamID)
    {
        CharacterXML chars = new CharacterXML();

        chars.getData();

        TeamXML teams = new TeamXML();

        teams.getData();

        List <string> teamC = teams.getTeam(teamID);

        one   = chars.getCharacter(Convert.ToInt32(teamC[1]));
        two   = chars.getCharacter(Convert.ToInt32(teamC[2]));
        three = chars.getCharacter(Convert.ToInt32(teamC[3]));
        four  = chars.getCharacter(Convert.ToInt32(teamC[4]));
        five  = chars.getCharacter(Convert.ToInt32(teamC[5]));
    }