add isSpinner, isCircle etc in GameObject

This commit is contained in:
yugecin
2016-09-27 18:26:53 +02:00
parent e7e33cd406
commit b842a564f7
4 changed files with 56 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ import org.newdawn.slick.Image;
/**
* Data type representing a slider object.
*/
public class Slider implements GameObject {
public class Slider extends GameObject {
/** Slider ball frames. */
private static Image[] sliderBallImages;
@@ -582,4 +582,20 @@ public class Slider implements GameObject {
ticksHit = 0;
tickIntervals = 1;
}
@Override
public boolean isCircle() {
return false;
}
@Override
public boolean isSlider() {
return true;
}
@Override
public boolean isSpinner() {
return false;
}
}