package Models.Actions.MActions;

import Models.Actions.Action;

public class SelectOneSpaceTileAction extends SelectOneSpaceComponentAction {
	
	public SelectOneSpaceTileAction(String imageKey) {
		super(imageKey);
		
	}
	
	public boolean pressTab(){
		return false;
	}
	
	public boolean pressDelete(){
		return false;
	}
	
	public boolean isNonRotatableComponentOnBoard(int x, int y) {
		if(x < 0 || x > 13){ //check if changes in x are invalid
			return false;
		}
		else if(y < 0 || y > 13){ //check if changes in y are invalid
			return false;
		}
		else
			return true;
	}

	@Override
	public Action pressEnter() {
		// TODO Auto-generated method stub
		return null;
	}
	
}
   
package Models.Actions.MActions;

public abstract class SelectOneSpaceTileAction extends SelectOneSpaceComponentAction {
	
	public SelectOneSpaceTileAction(String imageKey) {
		super(imageKey);
		
	}
	
	public boolean pressTab(){
		return false;
	}
	
	public boolean pressDelete(){
		return false;
	}
	
	public boolean isNonRotatableComponentOnBoard(int x, int y) {
		if(x < 0 || x > 13){ //check if changes in x are invalid
			return false;
		}
		else if(y < 0 || y > 13){ //check if changes in y are invalid
			return false;
		}
		else
			return true;
	}	
}
   
Make SelectOneSpaceTileAction class abstract