Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## simogl.gamecore
Class Updater

    java.lang.Object
      java.lang.Thread
          simogl.gamecore.Updater

All Implemented Interfaces:
  java.lang.Runnable

    public class Updater

extends java.lang.Thread

This class is used to update all the game objects. It is a special thread that calls all neccessary update()-methods. You will only need one obect of this class

Author:
  Frank Bruns

Nested Class Summary

Nested classes/interfaces inherited from class java.lang.Thread
`java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler`

Field Summary

Fields inherited from class java.lang.Thread
`MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY`

Constructor Summary
`Updater()` Creates a new Updater object

Method Summary
`void` | `pause()` Pauses the Updater.
`void` | `restart()` Starts/Resumes the Updater.
`void` | `run()` run()-method of the Updater thread.

Methods inherited from class java.lang.Thread
`activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### Updater

    public Updater()

  Creates a new Updater object

Method Detail

### pause

    public void pause()

  Pauses the Updater. Is equal to pausing the game.

### restart

    public void restart()

  Starts/Resumes the Updater. Is equal to starting/resuming the game.

### run

    public void run()

  run()-method of the Updater thread. Place all actions here.

  Specified by:
    `run` in interface `java.lang.Runnable`
  Overrides:
    `run` in class `java.lang.Thread`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD