2012-06-01 15:00:34 +00:00
|
|
|
package de.ctdo.crashtest.game;
|
|
|
|
|
|
|
|
public interface IStatemachine {
|
2012-06-04 23:26:47 +00:00
|
|
|
void addListener(StatemachineListener listener);
|
2012-06-01 15:00:34 +00:00
|
|
|
void reset();
|
|
|
|
Statemachine.state getCurrentState();
|
|
|
|
void setNewState(Statemachine.state newState);
|
|
|
|
int getStateChangeCounter();
|
|
|
|
void handleInput(char input);
|
2012-06-04 23:26:47 +00:00
|
|
|
int getTimerSecondsLast();
|
2012-06-07 22:58:08 +00:00
|
|
|
int getTimerSeconds();
|
2012-06-04 23:26:47 +00:00
|
|
|
void startTimer(int seconds);
|
|
|
|
void stopTimer();
|
|
|
|
void pauseTimer(boolean pause);
|
2012-06-01 15:00:34 +00:00
|
|
|
}
|