Exemplo n.º 1
0
 private void SimulateBankruptcyByPlayer(Player activePlayer, Player currentPositionOwner)
 {
     foreach (var property in activePlayer.PositionsAcquired)
     {
         property.DemolishBuildings();
         property.AssignNewOwner(currentPositionOwner);
         currentPositionOwner.InheritPropertyFromPlayer(property);
     }
     activePlayer.KillPlayer();
 }
Exemplo n.º 2
0
        private void SimulateBankruptcyByBanker(Player activePlayer)
        {
            foreach (var property in activePlayer.PositionsAcquired)
            {
                property.DemolishBuildings();
                property.Repossess();
            }
            var propertiesToBeAuctionedImmediately = activePlayer.PositionsAcquired;

            foreach (var property in propertiesToBeAuctionedImmediately)
            {
                SimulateAuction(_players, property);
            }
            activePlayer.KillPlayer();
        }