remove spinner delays
This commit is contained in:
parent
4b0980a9f8
commit
cb7098649a
|
@ -24,7 +24,6 @@ public class BeamSpinner extends Spinner {
|
|||
private double ang = 0;
|
||||
private double[] point;
|
||||
private int index;
|
||||
private int delay = 0;
|
||||
|
||||
@Override
|
||||
public void init()
|
||||
|
@ -37,12 +36,6 @@ public class BeamSpinner extends Spinner {
|
|||
@Override
|
||||
public double[] getPoint()
|
||||
{
|
||||
if( ++delay > DELAY )
|
||||
{
|
||||
delay = 0;
|
||||
index = ++index % 4;
|
||||
}
|
||||
|
||||
final int MOD = 60;
|
||||
|
||||
point[0] = Options.width / 2d;
|
||||
|
|
|
@ -49,7 +49,6 @@ public class CubeSpinner extends Spinner {
|
|||
|
||||
private double size = 0;
|
||||
|
||||
private int delay = 0;
|
||||
private int index = 0;
|
||||
|
||||
private double[] point = new double[2];
|
||||
|
@ -64,12 +63,6 @@ public class CubeSpinner extends Spinner {
|
|||
@Override
|
||||
public double[] getPoint()
|
||||
{
|
||||
if( ++delay <= DELAY )
|
||||
{
|
||||
return point;
|
||||
}
|
||||
delay = 0;
|
||||
|
||||
if( ++index >= 16 )
|
||||
{
|
||||
index = 0;
|
||||
|
|
|
@ -38,12 +38,6 @@ public class RektCircleSpinner extends Spinner {
|
|||
@Override
|
||||
public double[] getPoint()
|
||||
{
|
||||
if( ++delay < DELAY )
|
||||
{
|
||||
return point;
|
||||
}
|
||||
delay = 0;
|
||||
|
||||
final int INC = 50;
|
||||
|
||||
if( index == 0 )
|
||||
|
|
|
@ -22,8 +22,6 @@ public abstract class Spinner {
|
|||
private double[][] points;
|
||||
private int length;
|
||||
private int index;
|
||||
private int delay;
|
||||
public static int DELAY = 3;
|
||||
|
||||
public abstract void init();
|
||||
|
||||
|
@ -33,10 +31,7 @@ public abstract class Spinner {
|
|||
}
|
||||
|
||||
public double[] getPoint() {
|
||||
if (++delay > DELAY) {
|
||||
delay = 0;
|
||||
index = ++index % length;
|
||||
}
|
||||
return points[index];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user