@@ -0,0 +1,1714 @@
+package boundary;%0A%0Aimport java.awt.Color;%0Aimport java.awt.Graphics;%0Aimport java.awt.image.BufferedImage;%0A%0Aimport model.Board;%0Aimport model.PlayerModel;%0Aimport model.Cell;%0A%0A/**%0A * Preview view for the builder board view.%0A *%0A * @author Eli Skeggs and Maurizio Vitale%0A */%0Apublic class PlayerPreviewBoardView extends BoardView %7B%0A  PlayerApplication app;%0A  PlayerModel model;%0A%0A  public PlayerPreviewBoardView(PlayerApplication app, PlayerModel model) %7B%0A    super(true, Board.width, Board.height);%0A%0A    this.app = app;%0A    this.model = model;%0A  %7D%0A%0A  @Override%0A  protected void paintCell(Graphics g, int x, int y,%0A      int x1, int y1, int x2, int y2) %7B%0A    Cell cell = model.level.initialBoard.grid%5Bx%5D%5By%5D;%0A%0A    switch (cell.type) %7B%0A    case PLAYABLE:%0A      // TODO: add multiplier%0A      String filename = null;%0A      Color fallback = null;%0A      if (cell.tile == null) %7B%0A        filename = %22questionmark.png%22;%0A        fallback = Color.WHITE;%0A      %7D else %7B%0A        filename = (cell.tile.number + 1) + %22.png%22;%0A        fallback = Color.MAGENTA;%0A      %7D%0A      BufferedImage image = app.loader.getResource(filename);%0A      if (image == null) %7B%0A        System.err.println(%22%5BWARN%5D Bad filename for image lookup: %22 + filename);%0A        g.setColor(fallback);%0A        g.fillRect(x1, y1, x2 - x1, y2 - y1);%0A      %7D else %7B%0A        image = utils.ScaleImage.scaleImage(image, x2 - x1, y2 - y1);%0A        g.drawImage(image, x1, y1, null);%0A      %7D%0A      break;%0A%0A    case BUCKET:%0A      g.setColor(Color.GRAY);%0A      g.fillRect(x1, y1, x2 - x1, y2 - y1);%0A      break;%0A%0A    // TODO: should probably warn in case of default%0A    case INERT:%0A    default:%0A      g.setColor(Color.BLACK);%0A      g.fillRect(x1, y1, x2 - x1, y2 - y1);%0A    %7D%0A  %7D%0A%7D%0A

Add PlayerPreviewBoardView