Search in sources :

Example 1 with FullHourEvent

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());
    }
}
Also used : FullHourEvent(de.gg.game.events.FullHourEvent)

Aggregations

FullHourEvent (de.gg.game.events.FullHourEvent)1