public SpelStatus(IStapel hand, IAflegBord aflegbord, IExpeditieBord bord, IExpeditieBord bordTegenstander, int score, int scoreTegenstander, int aantalKaartenTrekstapel) { this.hand = hand; this.aflegbord = aflegbord; this.bord = bord; this.bordTegenstander = bordTegenstander; this.score = score; this.scoreTegenstander = scoreTegenstander; this.aantalKaartenTrekstapel = aantalKaartenTrekstapel; }
public static int[] BepaalMogelijkeLegActies(IStapel hand, IExpeditieBord bord) { ArrayList mogelijkheden = new ArrayList(); ; string melding = String.Empty; for (int i = 0; i < hand.AantalKaarten; i++) { IKaart kaart = hand[i]; ExpeditieStapel stapel = (ExpeditieStapel)bord.GetExpeditieStapel(kaart.Kleur); if (stapel.KanAangelegd(kaart, out melding)) { mogelijkheden.Add(i); } } return (int[])mogelijkheden.ToArray(typeof(int)); }