         case .west:
             rotate(to: 3 * CGFloat.pi / 2)
         }
-        
-        resetTileSize(tileSize)
     }
     
     /// Unsupported decoder initilizer.

        let size = CGSize(width: tileSize * CGFloat(building.width), height: tileSize * CGFloat(building.height))
        self.frame = CGRect(origin: self.frame.origin, size: size)
    }
}


import UIKit


/// A building piece view.
class PieceView: UIImageView
{
    //MARK: - Properties
    /// The owner of the piece.
    let owner: Owner
    
    /// The building type of the piece.
    let building: Building
    
    /// The state of the piece.
    var state: State
    {
        didSet
        {
            switch state
            {
            case .Standard:
                colorFilter.isHidden = true
            case .Success:
                colorFilter.backgroundColor =  UIColor(displayP3Red: 0, green: 1, blue: 0, alpha: 0.3)
                colorFilter.isHidden = false
            case .Failure:
                colorFilter.backgroundColor =  UIColor(displayP3Red: 1, green: 0, blue: 0, alpha: 0.3)
                colorFilter.isHidden = false
            }
        }
    }
    
    /// The color filter for highlighting the piece.
    private var colorFilter: UIView
    
    /// The current rotation of the piece.
    private(set) var angle: CGFloat = 0
