@Override public void fileChanged(FileHandle file) { String relativePath = fileAccess.relativizeToAssetsFolder(file); if (ProjectPathUtils.isTexture(relativePath, file.extension())) { cacheWaitTimer.clear(); cacheWaitTimer.scheduleTask( new Task() { @Override public void run() { updateCache(); } }, 0.5f); } if (ProjectPathUtils.isTextureAtlas(file, relativePath)) { atlasWaitTimer.clear(); cacheWaitTimer.scheduleTask( new Task() { @Override public void run() { updateAtlas(file); } }, 0.5f); } }
public VindicetisExSimius(final TriviazoGame game) { super(game); game.getMusicManager().play(TriviazoMusic.TENSION_IS_RISING); timer = new Timer(); timer.scheduleTask(task, 0F, intervalSeconds); timer.start(); }
public void setActivePlayer(int player) { screen.setActivePlayer(player); if (player == pid) { if (reminderTask.isScheduled()) return; turnReminder.scheduleTask(reminderTask, REMINDER_INTERVAL, REMINDER_INTERVAL); } else cancelReminder(); }