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

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

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