Add options in the ingame menu
This commit is contained in:
@@ -56,6 +56,9 @@ public class Dancer {
|
||||
private Mover mover;
|
||||
private Spinner spinner;
|
||||
|
||||
private int moverFactoryIndex;
|
||||
private int spinnerIndex;
|
||||
|
||||
public float x;
|
||||
public float y;
|
||||
|
||||
@@ -73,6 +76,24 @@ public class Dancer {
|
||||
}
|
||||
}
|
||||
|
||||
public int getSpinnerIndex() {
|
||||
return spinnerIndex;
|
||||
}
|
||||
|
||||
public void setSpinnerIndex(int spinnerIndex) {
|
||||
this.spinnerIndex = spinnerIndex;
|
||||
spinner = spinners[spinnerIndex];
|
||||
}
|
||||
|
||||
public int getMoverFactoryIndex() {
|
||||
return moverFactoryIndex;
|
||||
}
|
||||
|
||||
public void setMoverFactoryIndex(int moverFactoryIndex) {
|
||||
this.moverFactoryIndex = moverFactoryIndex;
|
||||
moverFactory = moverFactories[moverFactoryIndex];
|
||||
}
|
||||
|
||||
public void update(int time, GameObject p, GameObject c) {
|
||||
if (this.p != p) {
|
||||
this.p = p;
|
||||
|
||||
Reference in New Issue
Block a user