package controller;

import boundary.PlayerApplication;
import model.PlayerModel;

/**
 * Controller for the Lightning variation.
 *
 * @author Bailey Sheridan, Nick Chaput
 */
public class PlayerLightningCtrl implements PlayerVariationCtrl {
  PlayerApplication app;
  PlayerModel model;

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

  public boolean specialMove() {
	  model.counter--;
    return false;
  }

  public boolean finishMove() {
	if (model.counter <= 0) {
	    return false;
	}
	
	if(model.move.isValid())
		return true;
	
    return false;
  }

  @Override
  public boolean remove() {
  	// TODO Auto-generated method stub
	specialMove();
	return false;
  }

  @Override
  public boolean scramble() {
	// TODO Auto-generated method stub
	specialMove();
	return false;
  }

  @Override
  public boolean swap() {
	// TODO Auto-generated method stub
	specialMove();
	return false;
  }
  
}

@@ -438,17 +438,18 @@
 ove() %7B%0A
-%09
+  
   model.
@@ -518,13 +518,19 @@
 ) %7B%0A
-%09if (
+    return 
 mode
@@ -543,99 +543,35 @@
 ter 
-%3C= 0) %7B%0A%09    return false;%0A%09%7D%0A%09%0A%09if(model.move.isValid())%0A%09%09return true;%0A%09%0A    return false
+%3E 0 && model.move.isValid()
 ;%0A  
@@ -619,45 +619,33 @@
 %7B%0A  
-%09
+  
 // TODO
- Auto-generated method stub%0A%09
+: implement%0A    
 spec
@@ -647,33 +647,36 @@
  specialMove();%0A
-%09
+    
 return false;%0A  
@@ -724,45 +724,35 @@
 ) %7B%0A
-%09
+    
 // TODO
- Auto-generated method stub%0A%09
+: implement%0A    
 spec
@@ -754,33 +754,36 @@
  specialMove();%0A
-%09
+    
 return false;%0A  
@@ -827,45 +827,35 @@
 ) %7B%0A
-%09
+    
 // TODO
- Auto-generated method stub%0A%09
+: implement%0A    
 spec
@@ -869,9 +869,12 @@
 ();%0A
-%09
+    
 retu
@@ -891,9 +891,6 @@
   %7D%0A
-  %0A
 %7D%0A

Format PlayerLightningCtrl