package controller;

import boundary.PlayerApplication;
import model.PlayerModel;

/**
 * @author Eli Skeggs, Nick Chaput
 */
public class PlayerReleaseCtrl implements PlayerVariationCtrl {
  PlayerApplication app;
  PlayerModel model;

  public PlayerReleaseCtrl(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;
	
	model.counter--;
	
	if(model.move.isValid()) {
		//TODO: Bucket checking 
		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;
	}
}

@@ -102,16 +102,20 @@
  Skeggs,
+ and
  Nick Ch
@@ -387,17 +387,18 @@
 ove() %7B%0A
-%09
+  
   model.
@@ -463,19 +463,23 @@
 ove() %7B%0A
-%09
+    
 if
+ 
 (model.c
@@ -488,16 +488,23 @@
 nter
+ 
 %3C= 0)
-%0A%09%09
+ %7B%0A      
 retu
@@ -513,19 +513,27 @@
  false;%0A
-%09%0A%09
+    %7D%0A%0A    
 model.co
@@ -545,13 +545,16 @@
 --;%0A
-%09%0A%09
+%0A    
 if
+ 
 (mod
@@ -578,19 +578,24 @@
 ) %7B%0A
-%09%09
+      
 //
+ 
 TODO: 
-B
+b
 ucke
@@ -608,12 +608,15 @@
 king
- %0A%09%09
+%0A      
 retu
@@ -624,18 +624,22 @@
 n true;%0A
-%09%7D
+    %7D%0A
 %0A    ret
@@ -658,33 +658,34 @@
  %7D%0A%0A  @Override%0A
-%09
+  
 public boolean r
@@ -698,47 +698,35 @@
 ) %7B%0A
-%09%09
+    
 // TODO
- Auto-generated method stub%0A%09%09
+: implement%0A    
 spec
@@ -728,34 +728,36 @@
  specialMove();%0A
-%09%09
+    
 return false;%0A%09%7D
@@ -746,37 +746,39 @@
   return false;%0A
-%09%7D%0A%0A%09
+  %7D%0A%0A  
 @Override%0A%09publi
@@ -763,33 +763,34 @@
  %7D%0A%0A  @Override%0A
-%09
+  
 public boolean s
@@ -805,47 +805,35 @@
 ) %7B%0A
-%09%09
+    
 // TODO
- Auto-generated method stub%0A%09%09
+: implement%0A    
 spec
@@ -835,34 +835,36 @@
  specialMove();%0A
-%09%09
+    
 return false;%0A%09%7D
@@ -865,13 +865,15 @@
 se;%0A
-%09%7D%0A%0A%09
+  %7D%0A%0A  
 @Ove
@@ -878,17 +878,18 @@
 verride%0A
-%09
+  
 public b
@@ -908,47 +908,35 @@
 ) %7B%0A
-%09%09
+    
 // TODO
- Auto-generated method stub%0A%09%09
+: implement%0A    
 spec
@@ -950,10 +950,12 @@
 ();%0A
-%09%09
+    
 retu
@@ -968,9 +968,10 @@
 se;%0A
-%09
+  
 %7D%0A%7D%0A

Format PlayerReleaseCtrl