implement lazy sliders
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user