GetLastBidder() private method

Gets the player who made the last valid announcement
private GetLastBidder ( ) : Player
return Player
示例#1
0
        internal Player EnterBiddingState()
        {
            AnnouncementManager announcementManager = new AnnouncementManager( );

            Player       current = this._firstPlayer;
            Announcement announce;

            while (!announcementManager.IsBiddingFinished)
            {
                announce = current.MakeAnnouncement(announcementManager);

                announcementManager.Add(current, announce);

                _currentAnnouncement = announcementManager.GetLastValidAnnouncement();

                current = _game.GetNextPlayer(current);
            }

            _bidWinner = announcementManager.GetLastBidder();

            return(announcementManager.GetLastBidder());
        }
示例#2
0
        internal Player EnterBiddingState()
        {
            AnnouncementManager announcementManager = new AnnouncementManager( );

            Player current = this._firstPlayer;
            Announcement announce;

            while( !announcementManager.IsBiddingFinished	)
            {
                announce = current.MakeAnnouncement( announcementManager );

                announcementManager.Add( current, announce );

                _currentAnnouncement = announcementManager.GetLastValidAnnouncement();

                current = _game.GetNextPlayer( current );
            }

            _bidWinner = announcementManager.GetLastBidder();

            return announcementManager.GetLastBidder();
        }