public void HandleGetInitialPosition(string response) { Meeples collection = JsonUtility.FromJson <Meeples> (response); for (int i = 0; i < collection.meeples.Length; i++) { cancel = true; CreatePlayer( collection.meeples[i].id, collection.meeples[i].board_space.x_loc, collection.meeples[i].board_space.y_loc ); } if (cancel) { CancelInvoke(); } }
public int MaxBedsAt(int price) { return(Math.Min(Money / price, Meeples.Count())); }
public void AddWives(IEnumerable <IWife> wives) { Meeples = Meeples.Concat(wives); }
public void AddWife(IWife wife) { Meeples = Meeples.Concat(new IMeeple[] { wife }); }