void OnChangeBordType(BordType bordType) { }
public void LegKaart(int indexInHand, BordType bordType) { if (!IsActievepeler()) throw new ApplicationException("speler is niet aan de beurt"); if (legActie != null) throw new ApplicationException("legActie bestaat al"); switch (bordType) { case BordType.AflegBord: this.legActie = new LegKaartWegActie(indexInHand, speler); break; case BordType.ExpeditieBord: this.legActie = new LegKaartAanActie(indexInHand, speler); break; } }
public void ChangeBordType(BordType newType) { BordType = newType; OnChangeBordType.Call(newType); }