changed loosed to neutral state and made white light onto it

This commit is contained in:
Lucas Pleß 2012-06-13 23:06:12 +02:00
parent 104896b42d
commit 1758c33e67
2 changed files with 11 additions and 2 deletions

View File

@ -20,7 +20,7 @@ public class Statemachine implements IStatemachine {
TABLE_GAME_DONE, TABLE_GAME_DONE,
ROKET_STARTED, ROKET_STARTED,
ROKET_DONE, ROKET_DONE,
LOOSED NEUTRAL
} }
private final char RESET = '1'; private final char RESET = '1';

View File

@ -54,6 +54,12 @@ public class TheGame implements StatemachineListener, GuiEventListener, IRCEvent
ircClient.say("New State: " + newState); ircClient.say("New State: " + newState);
switch (newState) { switch (newState) {
case NEUTRAL:
bunti.setPar56(255,255,255);
bunti.setLampel(false,false,false);
machine.stopTimer();
break;
case IDLE: case IDLE:
gamerRating = 3; gamerRating = 3;
machine.stopTimer(); machine.stopTimer();
@ -388,11 +394,14 @@ public class TheGame implements StatemachineListener, GuiEventListener, IRCEvent
int seconds = machine.getTimerSecondsLast(); int seconds = machine.getTimerSecondsLast();
int seconds1 = machine.getTimerSeconds(); int seconds1 = machine.getTimerSeconds();
int seconds2 = seconds-seconds1;
int mins = seconds / 60; int mins = seconds / 60;
int secs = seconds % 60; int secs = seconds % 60;
int mins1 = seconds1 / 60; int mins1 = seconds1 / 60;
int secs1 = seconds1 % 60; int secs1 = seconds1 % 60;
ircClient.say("time " + mins1 + ":" + secs1 + " last: " + mins + ":" + secs + ""); int mins2 = seconds2 / 60;
int secs2 = seconds2 % 60;
ircClient.say("time " + mins1 + ":" + secs1 + " last: " + mins + ":" + secs + " left: " + mins2 + ":" + secs2);
ircClient.say("gamerRating: " + gamerRating); ircClient.say("gamerRating: " + gamerRating);
} }