package controller;

import boundary.PlayerApplication;
import model.PlayerModel;
import model.Point;
import model.Variation;

public class PlayerRemoveCtrl {
  PlayerApplication app;
  PlayerModel model;

  public PlayerRemoveCtrl(PlayerApplication app, PlayerModel model) {
    this.app = app;
    this.model = model;
  }

  public void mouseClicked(Point point) {
	    //TODO: generic implementation
	  PlayerVariationCtrl pVar = model.variation.createCtrl(app, model);
	  if (model.variation != Variation.RELEASE && model.level.currentBoard.grid[point.x][point.y].tile.number != 6)
	  {
		  //GO INTO PLAYERMODEL AND REPLACE PLAYERVARIATIONCTRL WITH VARIATION
		  //TODO: This is suboptimal, decide whether to change PlayerVariationCtrl.specialMove() to individual methods for each special move
		  //TODO: Create new move, resolve the move
	  }
	  pVar.specialMove();
  }
}

@@ -49,16 +49,35 @@
 cation;%0A
+import model.Move;%0A
 import m
@@ -827,41 +827,106 @@
 DO: 
-C
 re
-ate
+solve the move%0A%09%09  Move reMove =
  new 
-move, resolve the move
+Move();%0A%09%09  reMove.expand(model.level.currentBoard, point);
 %0A%09  

Add part of non-variaition-controlled functionality to PlayerRemoveCtrl