GameController
Complete API reference for GameController, including constructors, attributes, virtual attributes, and methods.
Package: JAVARuntime
Category: Platform
Component: no
public class GameController
Virtual Attributes
| Name | Type | Access | Description |
|---|---|---|---|
enableFrameLimit | boolean | get/set | Checks if frame limit is enabled. |
limitFrames | int | get/set | Returns the maximum number of frames per second allowed. |
Static Methods
| Signature | Returns | Description |
|---|---|---|
quit() | void | Quits the game and closes the application (Only in APK). |
getState() | State | Returns the current state of the game (Stopped, Paused, or Running). |
isEnableFrameLimit() | Object | Returns whether enableFrameLimit is true. |
setEnableFrameLimit(boolean) | Object | Sets enableFrameLimit. |
getLimitFrames() | Object | Returns the current limitFrames value. |
setLimitFrames(int) | Object | Sets limitFrames. |
getGraphicsMode() | Object | Returns the current graphicsMode value. |
setGraphicsMode(GraphicsMode) | Object | Sets graphicsMode. |