Beispiel #1
0
 public GameAction(Noble noble)
 {
     Noble = noble;
     if (!(noble is null))
     {
         receivedVisit = $" and receives the visit of {noble.ToString()}";
     }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
        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);
        }
Beispiel #5
0
        public void Remove(Noble noble)
        {
            var taken = NobleList.Remove(noble);

            if (!taken)
            {
                throw new NotFoundException(nameof(Development));
            }

            updateNobles?.Invoke();
        }
Beispiel #6
0
 public void AddNoble(Noble noble)
 {
     VisitedNobles.Add(noble);
     updatePlayer?.Invoke();
 }
Beispiel #7
0
 public void ReceiveVisit(Noble noble)
 {
     box.Remove(noble);
     player.AddNoble(noble);
 }
Beispiel #8
0
 public TakeGems(IEnumerable <Gem> gems, Noble noble) : base(noble)
 {
     Gems = gems;
 }