implement lazy sliders

This commit is contained in:
yugecin
2016-09-27 22:23:14 +02:00
parent 730f55ce20
commit 43548fa058
3 changed files with 42 additions and 0 deletions

View File

@@ -596,7 +596,15 @@ public class Options {
DANCE_LAZY_SLIDERS ("Lazy sliders", "LazySliders", "Don't do short sliders", true) {
@Override
public void click(GameContainer container) {
bool = !bool;
Dancer.LAZY_SLIDERS = bool;
}
@Override
public void read(String s) {
super.read(s);
System.out.println(bool);
Dancer.LAZY_SLIDERS = bool;
}
},

View File

@@ -107,6 +107,8 @@ public class Slider extends GameObject {
/** Container dimensions. */
private static int containerWidth, containerHeight;
private int repeats;
/**
* Initializes the Slider data type with images and dimensions.
* @param container the game container
@@ -169,6 +171,8 @@ public class Slider extends GameObject {
for (int i = 0; i < tickCount; i++, t += tickTOffset)
ticksT[i] = t;
}
repeats = hitObject.getRepeatCount();
}
@Override
@@ -583,6 +587,14 @@ public class Slider extends GameObject {
tickIntervals = 1;
}
public Curve getCurve() {
return curve;
}
public int getRepeats() {
return repeats;
}
@Override
public boolean isCircle() {
return false;