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
	  }
	  pVar.specialMove();
  }
}

@@ -573,17 +573,17 @@
 .number 
-=
+!
 = 6)%0A%09  
@@ -792,16 +792,62 @@
 al move%0A
+%09%09  //TODO: Create new move, resolve the move%0A
 %09  %7D%0A%09  

Fix logic error in PlayerRemoveCtrl