public CaseIHM GetCase(int x, int y) { CaseIHM res = null; foreach (CaseIHM c in casesIHM) { if (c.GetCaseMorpion().X == x && c.GetCaseMorpion().Y == y) { res = c; } } return(res); }
public CaseIHM GetCase(string imgId) { CaseIHM res = null; foreach (CaseIHM c in casesIHM) { if (c.GetImage().Name == imgId) { res = c; } } return(res); }
public void AjouterCaseIHM(CaseIHM c) { casesIHM.Add(c); }