Add options in the ingame menu

This commit is contained in:
yugecin
2016-09-27 22:02:49 +02:00
parent 130ee94825
commit 728b2ceb97
3 changed files with 115 additions and 2 deletions

View File

@@ -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;