示例#1
0
    public GameCard IACarteToGameCard()
    {
        if (MenuManager.typeJeu == 1)
        {
            J1_humain_plays = false;
        }

        else
        {
            if (GameCard.J1_humain_plays == true)
            {
                J1_humain_plays = true;
            }
            else
            {
                J1_humain_plays = false;
            }
        }

        Carte c = ia.DemarrerIA();

        foreach (GameCard d in cards)
        {
            if (d.Proprietes.Id == c.Id)
            {
                return(d);
            }
        }
        return(null);        //inutile
    }