private Add ( |
||
player | ||
announce | ||
Результат | void |
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()); }
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(); }