public GameAction(Noble noble) { Noble = noble; if (!(noble is null)) { receivedVisit = $" and receives the visit of {noble.ToString()}"; }
public GameAction ReserveDevelopment(int currentTurn, Player player, Noble noble, Development development, bool takeGold) { var move = new ReserveDevelopment(development, takeGold, noble); Entries.Add(new LogEntry(currentTurn, move, player)); return(move); }
public GameAction BuyDevelopment(int currentTurn, Player player, Noble noble, Development development) { var move = new BuyDevelopment(development, noble); Entries.Add(new LogEntry(currentTurn, move, player)); return(move); }
public GameAction TakeGems(int currentTurn, Player player, Noble noble, params Gem[] gems) { var move = new TakeGems(gems, noble); Entries.Add(new LogEntry(currentTurn, move, player)); return(move); }
public void Remove(Noble noble) { var taken = NobleList.Remove(noble); if (!taken) { throw new NotFoundException(nameof(Development)); } updateNobles?.Invoke(); }
public void AddNoble(Noble noble) { VisitedNobles.Add(noble); updatePlayer?.Invoke(); }
public void ReceiveVisit(Noble noble) { box.Remove(noble); player.AddNoble(noble); }
public TakeGems(IEnumerable <Gem> gems, Noble noble) : base(noble) { Gems = gems; }