use of de.gg.game.events.FullHourEvent in project ProjektGG by eskalon.
the class GameClock method update.
/**
* Should get called every ten ticks (= 1 second). Updates the clock.
*/
public void update() {
minute += MINUTES_PER_UPDATE;
if (minute >= 60) {
minute -= 60;
hour++;
eventBus.post(new FullHourEvent());
}
}
Aggregations