playable game

This commit is contained in:
Remco
2015-06-02 15:47:23 +02:00
parent 6a356982a6
commit 76a41dbbd1
10 changed files with 105 additions and 23 deletions
+11 -1
View File
@@ -1,5 +1,7 @@
package audio;
import java.awt.Color;
import control.button.Button;
import control.button.ButtonHandler;
@@ -53,6 +55,11 @@ public class ObjectInstance {
this.button = ButtonHandler.getButton(buttonID);
}
}
public Color getColor()
{
return button.getColor();
}
public Button getButton() {
return button;
@@ -67,7 +74,10 @@ public class ObjectInstance {
}
public long getLength() {
return length;
if(hold)
return length;
else
return 1;
}
public void setLength(long length) {