package ge.edu.freeuni.sdp.snake.view.swing;

import ge.edu.freeuni.sdp.snake.presenter.CellContent;
import ge.edu.freeuni.sdp.snake.presenter.CellPosition;
import ge.edu.freeuni.sdp.snake.presenter.CellUpdateListener;

public class SwingMazeViewUpdater implements CellUpdateListener {

	@Override
	public void updateCell(CellPosition position, CellContent content) {
		// TODO Auto-generated method stub

	}

}

@@ -213,16 +213,68 @@
 tener;%0A%0A
+import java.awt.Color;%0A%0Aimport javax.swing.JFrame;%0A%0A
 public c
@@ -335,126 +335,887 @@
 r %7B%0A
-%0A%09@Override%0A%09public void updateCell(CellPosition position, CellContent content) %7B%0A%09%09// TODO Auto-generated method stub
+%09private JFrame frame;%0A%0A%09public SwingMazeViewUpdater(JFrame frame) %7B%0A%09%09this.frame = frame;%0A%09%7D%0A%0A%09@Override%0A%09public void updateCell(CellPosition position, CellContent content) %7B%0A%09%09java.awt.Graphics graphics = frame.getGraphics();%0A%09%09int width = 100;%0A%09%09int height = 70;%0A%09%09switch (content) %7B%0A%09%09case FoodMouse:%0A%09%09%09graphics.setColor(Color.YELLOW);%0A%09%09%09graphics.fillRect(position.x * width, position.y * height, width,%0A%09%09%09%09%09height);%0A%09%09%09break;%0A%09%09case FoodPoison:%0A%09%09%09graphics.setColor(Color.RED);%0A%09%09%09graphics.fillRect(position.x * width, position.y * height, width,%0A%09%09%09%09%09height);%0A%09%09%09break;%0A%09%09case Snake:%0A%09%09%09graphics.setColor(Color.GREEN);%0A%09%09%09graphics.fillOval(position.x * width + 2, position.y * height + 2,%0A%09%09%09%09%09width - 4, height - 4);%0A%09%09%09break;%0A%09%09default:%0A%09%09%09graphics.setColor(Color.BLACK);%0A%09%09%09graphics.fillRect(position.x * width, position.y * height, width,%0A%09%09%09%09%09height);%0A%09%09%09break;%0A%09%09%7D
 %0A%0A%09%7D

Update SwingMazeViewUpdater.java