All pastes #808512 Raw Edit

Anonym

public text v1 · immutable
·published 2007-12-07 17:54 UTC
rendered paste body
	/**
	 * This sleeps for the specified tick rate and then calls makeATick()
	 */
	public void run() {
		this.isRunning = true;
		while(true && this.isRunning) {
			this.makeATick();
			try {
				Thread.sleep(this.tickRate);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}