Overview | Package | Class | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

A B C D E F G H I J K L M N O P R S T U V W X Y

## A

addGameState(String) - Method in interface jgame.impl.JGEngineInterface
  Add the given state to the game's existing state on the next frame.
addGameState(String) - Method in class jgame.platform.JGEngine
alarm() - Method in class jgame.JGTimer
  define your alarm action here.
alpha - Variable in class jgame.JGColor
  a value between 0 and 255, default is 255 (opaque)
and(int, int) - Method in interface jgame.impl.JGEngineInterface
  A Boolean AND shorthand to use for collision; returns (value&mask) != 0.
and(int, int) - Static method in class jgame.JGObject
  A Boolean AND shorthand to use for collision; returns (value&mask) != 0.
and(int, int) - Method in class jgame.platform.JGEngine
andTileCid(int, int, int) - Method in interface jgame.impl.JGEngineInterface
  Modify the cid of a single tile by ANDing a bit mask, leaving the actual tile.
andTileCid(int, int, int) - Method in class jgame.platform.JGEngine
AppConfig - Class in jgame.platform
  A generic class for handling the user configuration of application settings.
AppConfig(String, String) - Constructor for class jgame.platform.AppConfig
  Configure a file.
AppConfig(String, Object, String) - Constructor for class jgame.platform.AppConfig
  Configure an object with corresponding file.
AppConfig(String, Class, String) - Constructor for class jgame.platform.AppConfig
  Configure a class with static fields with corresponding file.
AppConfig(String, Object) - Constructor for class jgame.platform.AppConfig
  Configure an object without the possibility of file storage.
AppConfig(String, Class) - Constructor for class jgame.platform.AppConfig
  Configure a class with static fields without the possibility of file storage.
appconfig - Variable in class jgame.platform.StdGame
  The application configuration handler.
atan2(double, double) - Method in interface jgame.impl.JGEngineInterface
  Replacement for Math.atan2 for the sake of MIDP portability.
atan2(double, double) - Method in class jgame.platform.JGEngine
audioenabled - Variable in class jgame.platform.StdGame
  Flag indicating that audio is enabled
avoid - Variable in class examples.StdDungeonMonster
  true = avoid home_in position
avoid - Variable in class examples.StdMazeMonster
  true = avoid home_in position

## B

b - Variable in class jgame.JGColor
  a value between 0 and 255
black - Static variable in class jgame.JGColor
block_mask - Variable in class examples.StdDungeonMonster
  cid mask of tiles that block
block_mask - Variable in class examples.StdDungeonPlayer
  cid mask of tiles that block
block_mask - Variable in class examples.StdMazeMonster
  cid mask of tiles that block
block_mask - Variable in class examples.StdMazePlayer
  cid mask of tiles that block
blue - Static variable in class jgame.JGColor
BOLD - Static variable in class jgame.JGFont

## C

checkBGCollision(JGRectangle) - Method in interface jgame.impl.JGEngineInterface
  Check collision of tiles within given rectangle, return the OR of all cids found.
checkBGCollision(int, int) - Method in interface jgame.impl.JGEngineInterface
  Calls all bg colliders of objects that match objid that collide with tiles that match tileid.
checkBGCollision(JGRectangle) - Method in class jgame.JGObject
  Check collision of tiles within given rectangle, return the OR of all cids found.
checkBGCollision(double, double) - Method in class jgame.JGObject
  Get OR of Tile Cids of the object's current tile bbox at the current position, when offset by the given offset.
checkBGCollision(JGRectangle) - Method in class jgame.platform.JGEngine
checkBGCollision(int, int) - Method in class jgame.platform.JGEngine
checkCollision(int, int) - Method in interface jgame.impl.JGEngineInterface
  Calls all colliders of objects that match dstcid that collide with objects that match srccid.
checkCollision(int, JGObject) - Method in interface jgame.impl.JGEngineInterface
  Checks collision of objects with given cid mask with given object.
checkCollision(int, double, double) - Method in class jgame.JGObject
  Check collision of this object with other objects, when the object position would be offset by xofs,yofs.
checkCollision(int, int) - Method in class jgame.platform.JGEngine
checkCollision(int, JGObject) - Method in class jgame.platform.JGEngine
checkIfBlocked(JGObject, int, int, int) - Static method in class examples.StdDungeonMonster
  Check if we aren't blocked in the xdir,ydir direction we're currently going, and change direction if we're partially blocked.
checkTime(int, int, int) - Method in class jgame.platform.StdGame
  Returns true every increment ticks, but only when gametime is between min_time and max_time.
checkTime(int) - Method in class jgame.platform.StdGame
  Returns true every increment ticks.
clearAnim() - Method in class jgame.JGObject
  Clear the animation, the object's current image will remain.
clearBBox() - Method in class jgame.JGObject
  Clear bbox definition so that we use the image bbox again.
clearGameState() - Method in interface jgame.impl.JGEngineInterface
  Set the game's main state to none, on the next frame.
clearGameState() - Method in class jgame.platform.JGEngine
clearKey(int) - Method in interface jgame.impl.JGEngineInterface
  Set the key status of a key to released.
clearKey(int) - Method in class jgame.platform.JGEngine
clearLastKey() - Method in interface jgame.impl.JGEngineInterface
  Clear the lastkey status.
clearLastKey() - Method in class jgame.platform.JGEngine
clearMouseButton(int) - Method in interface jgame.impl.JGEngineInterface
  Set state of button to released.
clearMouseButton(int) - Method in class jgame.platform.JGEngine
clearTileBBox() - Method in class jgame.JGObject
  Clear tile bbox definition so that we use the regular bbox again.
closeGui() - Method in class jgame.platform.AppConfig
  Hide the Gui in case it was visible.
colid - Variable in class jgame.JGObject
  Collision ID
continuous_anim - Variable in class examples.StdDungeonMonster
  don't stop animating when monster stops moving
continuous_anim - Variable in class examples.StdDungeonPlayer
  don't stop animating when player stops moving
continuous_anim - Variable in class examples.StdMazePlayer
  don't stop animating when player stops moving
copyFrom(JGRectangle) - Method in class jgame.JGRectangle
  Copy contents of source rectangle into this rectangle.
countObjects(String, int) - Method in interface jgame.impl.JGEngineInterface
  Count how many objects there are with both the given name prefix and have colid&cidmask != 0.
countObjects(String, int, boolean) - Method in interface jgame.impl.JGEngineInterface
  Count how many objects there are with both the given name prefix and have colid&cidmask != 0.
countObjects(String, int) - Method in class jgame.platform.JGEngine
countObjects(String, int, boolean) - Method in class jgame.platform.JGEngine
countTiles(int) - Method in interface jgame.impl.JGEngineInterface
  Count number of tiles with given mask.
countTiles(int) - Method in class jgame.platform.JGEngine
crop(int, int, int, int) - Method in interface jgame.JGImage
CROSSHAIR_CURSOR - Static variable in interface jgame.impl.JGEngineInterface
  Platform-independent cursor.
cyan - Static variable in class jgame.JGColor
cycleColor(JGColor[], double, double) - Method in class jgame.platform.StdGame
  Get a colour from a colour cycle.

## D

dbgExceptionToString(Throwable) - Method in interface jgame.impl.JGEngineInterface
  Convert the relevant information of an exception to a multiline String.
dbgExceptionToString(Throwable) - Method in class jgame.platform.JGEngine
dbgPrint(String) - Method in interface jgame.impl.JGEngineInterface
  Print a debug message, with the main program being the source.
dbgPrint(String, String) - Method in interface jgame.impl.JGEngineInterface
  Print a debug message from a specific source, which is either the main program or a JGObject.
dbgPrint(String) - Method in class jgame.JGObject
  Print a message to the debug channel, using the object ID as source
dbgPrint(String) - Method in class jgame.platform.JGEngine
dbgPrint(String, String) - Method in class jgame.platform.JGEngine
dbgSetDebugColor1(JGColor) - Method in interface jgame.impl.JGEngineInterface
  Set debug color 1, used for printing debug information.
dbgSetDebugColor1(JGColor) - Method in class jgame.platform.JGEngine
dbgSetDebugColor2(JGColor) - Method in interface jgame.impl.JGEngineInterface
  Set debug color 2, used for printing debug information.
dbgSetDebugColor2(JGColor) - Method in class jgame.platform.JGEngine
dbgSetMessageExpiry(int) - Method in interface jgame.impl.JGEngineInterface
  Set the number of frames a debug message of a removed object should remain on the playfield.
dbgSetMessageExpiry(int) - Method in class jgame.platform.JGEngine
dbgSetMessageFont(JGFont) - Method in interface jgame.impl.JGEngineInterface
  Set the font for displaying debug messages.
dbgSetMessageFont(JGFont) - Method in class jgame.platform.JGEngine
dbgShowBoundingBox(boolean) - Method in interface jgame.impl.JGEngineInterface
  Show bounding boxes around the objects: the image bounding box (getBBox) , the tile span (getTiles), and the center tiles (getCenterTiles).
dbgShowBoundingBox(boolean) - Method in class jgame.platform.JGEngine
dbgShowException(String, Throwable) - Method in interface jgame.impl.JGEngineInterface
  Print the relevant information of an exception as a debug message.
dbgShowException(String, Throwable) - Method in class jgame.platform.JGEngine
dbgShowFullStackTrace(boolean) - Method in interface jgame.impl.JGEngineInterface
  Indicates whether to show full exception stack traces or just the first lines.
dbgShowFullStackTrace(boolean) - Method in class jgame.platform.JGEngine
dbgShowGameState(boolean) - Method in interface jgame.impl.JGEngineInterface
  Show the game state in the bottom right corner of the screen.
dbgShowGameState(boolean) - Method in class jgame.platform.JGEngine
dbgShowMessagesInPf(boolean) - Method in interface jgame.impl.JGEngineInterface
  Output messages on playfield instead of console.
dbgShowMessagesInPf(boolean) - Method in class jgame.platform.JGEngine
decrementLives() - Method in class jgame.platform.StdGame
  Code for losing a life before transition from LifeLost to InGame is made.
DEFAULT_CURSOR - Static variable in interface jgame.impl.JGEngineInterface
  Platform-independent cursor.
defineAnimation(String, String[], double) - Method in interface jgame.impl.JGEngineInterface
  Define new animation sequence.
defineAnimation(String, String[], double, boolean) - Method in interface jgame.impl.JGEngineInterface
  Define new animation sequence.
defineAnimation(String, String[], double) - Method in class jgame.platform.JGEngine
defineAnimation(String, String[], double, boolean) - Method in class jgame.platform.JGEngine
defineAudioClip(String, String) - Method in interface jgame.impl.JGEngineInterface
  Associate given clipid with a filename.
defineAudioClip(String, String) - Method in class jgame.platform.JGEngine
defineField(String, String, String) - Method in class jgame.platform.AppConfig
  Define a field as configurable, ignore if field already exists.
defineFields(String, String, String, String) - Method in class jgame.platform.AppConfig
  Define a set of fields as configurable, by matching the object's fields with the given pattern.
defineFields(String, String, String, String, String) - Method in class jgame.platform.AppConfig
  Define a set of fields as configurable, by matching the object's fields with the given pattern.
defineImage(String, String, int, String, String, int, int, int, int) - Method in interface jgame.impl.JGEngineInterface
  Define new sprite/tile image from a file.
defineImage(String, String, int, String, String) - Method in interface jgame.impl.JGEngineInterface
  Define new sprite/tile image from a file, with collision bounding box equal to the image's dimensions.
defineImage(String, String, int, String, int, String, int, int, int, int) - Method in interface jgame.impl.JGEngineInterface
  Define new sprite/tile image from map.
defineImage(String, String, int, String, int, String) - Method in interface jgame.impl.JGEngineInterface
  Define new sprite/tile image from map, with collision bounding box equal to the image's dimensions.
defineImage(String, String, int, String, String, int, int, int, int) - Method in class jgame.platform.JGEngine
defineImage(String, String, int, String, String) - Method in class jgame.platform.JGEngine
defineImage(String, String, int, String, int, String, int, int, int, int) - Method in class jgame.platform.JGEngine
defineImage(String, String, int, String, int, String) - Method in class jgame.platform.JGEngine
defineImageMap(String, String, int, int, int, int, int, int) - Method in interface jgame.impl.JGEngineInterface
  Define image map, a large image containing a number of smaller images to use for sprites or fonts.
defineImageMap(String, String, int, int, int, int, int, int) - Method in class jgame.platform.JGEngine
defineImageRotated(String, String, int, String, double) - Method in interface jgame.impl.JGEngineInterface
  Define new image by rotating an already loaded image.
defineImageRotated(String, String, int, String, double) - Method in class jgame.platform.JGEngine
defineLevel() - Method in class jgame.platform.StdGame
  Initialise a level.
defineMedia(String) - Method in interface jgame.impl.JGEngineInterface
  Load a set of imagemap, image, animation, and audio clip definitions from a file.
defineMedia(String) - Method in class jgame.platform.JGEngine
destroy() - Method in class examples.StdDungeonMonster
  Removes object and object's occupation.
destroy() - Method in class examples.StdDungeonPlayer
  Removes object and object's occupation.
destroy() - Method in interface jgame.impl.JGEngineInterface
  Destroy function for deinitialising the engine properly.
destroy() - Method in class jgame.JGObject
  Override to implement object disposal code.
destroy() - Method in class jgame.platform.JGEngine
destroyApp(boolean) - Method in interface jgame.impl.JGEngineInterface
  Called by the application manager to exit app.
destroyApp(boolean) - Method in class jgame.platform.JGEngine
disableAudio() - Method in interface jgame.impl.JGEngineInterface
  Disable audio, stop all currently playing audio.
disableAudio() - Method in class jgame.platform.JGEngine
displayHeight() - Method in interface jgame.impl.JGEngineInterface
  Get the real display height on this device.
displayHeight() - Method in class jgame.platform.JGEngine
displayWidth() - Method in interface jgame.impl.JGEngineInterface
  Get the real display width on this device.
displayWidth() - Method in class jgame.platform.JGEngine
doFrame() - Method in interface jgame.impl.JGEngineInterface
  Is called every frame.
doFrame() - Method in class jgame.platform.JGEngine
doFrame() - Method in class jgame.platform.StdGame
  The main doFrame takes care of all the standard game actions.
doFrameEnterHighscore() - Method in class jgame.platform.StdGame
  Default lets user type name into the variable playername.
drawCount(int, String, int, int, int) - Method in class jgame.platform.StdGame
  Draw a row of objects to indicate the value count.
drawImage(double, double, String) - Method in interface jgame.impl.JGEngineInterface
  Draw image with given ID.
drawImage(double, double, String, boolean) - Method in interface jgame.impl.JGEngineInterface
  Draw image with given ID.
drawImage(double, double, String, JGColor, double, double, double, boolean) - Method in interface jgame.impl.JGEngineInterface
  Extended version of drawImage for platforms with opengl capabilities.
drawImage(double, double, String) - Method in class jgame.platform.JGEngine
drawImage(double, double, String, boolean) - Method in class jgame.platform.JGEngine
drawImage(double, double, String, JGColor, double, double, double, boolean) - Method in class jgame.platform.JGEngine
drawImageString(String, double, double, int, String, int, int) - Method in interface jgame.impl.JGEngineInterface
  Draws a single line of text using an image map as font; text alignment is same as drawString.
drawImageString(String, double, double, int, String, int, int, boolean) - Method in interface jgame.impl.JGEngineInterface
  Draws a single line of text using an image map as font; text alignment is same as drawString.
drawImageString(String, double, double, int, String, int, int) - Method in class jgame.platform.JGEngine
drawImageString(String, double, double, int, String, int, int, boolean) - Method in class jgame.platform.JGEngine
drawLine(double, double, double, double, double, JGColor) - Method in interface jgame.impl.JGEngineInterface
  DrawLine combined with thickness/colour setting.
drawLine(double, double, double, double) - Method in interface jgame.impl.JGEngineInterface
  Draw a line with current thickness and colour.
drawLine(double, double, double, double, boolean) - Method in interface jgame.impl.JGEngineInterface
  Draw a line with current thickness and colour.
drawLine(double, double, double, double, double, JGColor) - Method in class jgame.platform.JGEngine
drawLine(double, double, double, double) - Method in class jgame.platform.JGEngine
drawLine(double, double, double, double, boolean) - Method in class jgame.platform.JGEngine
drawOval(double, double, double, double, boolean, boolean, double, JGColor) - Method in interface jgame.impl.JGEngineInterface
  Set thickness/colour and draw oval.
drawOval(double, double, double, double, boolean, boolean) - Method in interface jgame.impl.JGEngineInterface
  Draw oval with default thickness and colour.
drawOval(double, double, double, double, boolean, boolean, boolean) - Method in interface jgame.impl.JGEngineInterface
  Draw oval with default thickness and colour.
drawOval(double, double, double, double, boolean, boolean, double, JGColor) - Method in class jgame.platform.JGEngine
drawOval(double, double, double, double, boolean, boolean) - Method in class jgame.platform.JGEngine
drawOval(double, double, double, double, boolean, boolean, boolean) - Method in class jgame.platform.JGEngine
drawPolygon(double[], double[], JGColor[], int, boolean, boolean) - Method in interface jgame.impl.JGEngineInterface
  Draw convex polygon.
drawPolygon(double[], double[], JGColor[], int, boolean, boolean) - Method in class jgame.platform.JGEngine
drawRect(double, double, double, double, boolean, boolean, double, JGColor) - Method in interface jgame.impl.JGEngineInterface
  Set colour/thickness and draw rectangle.
drawRect(double, double, double, double, boolean, boolean) - Method in interface jgame.impl.JGEngineInterface
  Draw rectangle in default colour and thickness.
drawRect(double, double, double, double, boolean, boolean, boolean) - Method in interface jgame.impl.JGEngineInterface
  Draw rectangle in default colour and thickness.
drawRect(double, double, double, double, boolean, boolean, boolean, JGColor[]) - Method in interface jgame.impl.JGEngineInterface
  Draw shaded rectangle.
drawRect(double, double, double, double, boolean, boolean, double, JGColor) - Method in class jgame.platform.JGEngine
drawRect(double, double, double, double, boolean, boolean) - Method in class jgame.platform.JGEngine
drawRect(double, double, double, double, boolean, boolean, boolean) - Method in class jgame.platform.JGEngine
drawRect(double, double, double, double, boolean, boolean, boolean, JGColor[]) - Method in class jgame.platform.JGEngine
drawString(String, double, double, int, JGFont, JGColor) - Method in interface jgame.impl.JGEngineInterface
  Draws string so that (x,y) is the topleft coordinate (align=-1), the top middle coordinate (align=0), or the top right coordinate (align=1).
drawString(String, double, double, int) - Method in interface jgame.impl.JGEngineInterface
  Draws string so that (x,y) is the topleft coordinate (align=-1), the top middle coordinate (align=0), or the top right coordinate (align=1).
drawString(String, double, double, int, boolean) - Method in interface jgame.impl.JGEngineInterface
  Draws string so that (x,y) is the topleft coordinate (align=-1), the top middle coordinate (align=0), or the top right coordinate (align=1).
drawString(String, double, double, int, JGFont, JGColor) - Method in class jgame.platform.JGEngine
drawString(String, double, double, int) - Method in class jgame.platform.JGEngine
drawString(String, double, double, int, boolean) - Method in class jgame.platform.JGEngine
drawTile(int, int, int) - Method in interface jgame.impl.JGEngineInterface
  Draw tile directly on background, do not call this directly, use setTile instead.
drawTile(int, int, int) - Method in class jgame.platform.JGEngine
  xi,yi are tile indexes relative to the tileofs, that is, the top left of the bg, + 1.
drawWavyString(String, int, int, int, int, double, double, double, double, JGFont, JGColor) - Method in class jgame.platform.StdGame
  Draw a string with letters that move up and down individually.

## E

enableAudio() - Method in interface jgame.impl.JGEngineInterface
  Enable audio, restart any audio loops.
enableAudio() - Method in class jgame.platform.JGEngine
eng - Variable in class jgame.JGObject
  You can use this to call methods in the object's engine.
existsObject(String) - Method in interface jgame.impl.JGEngineInterface
  Get object if it exists.
existsObject(String) - Method in class jgame.platform.JGEngine
exitEngine(String) - Method in interface jgame.impl.JGEngineInterface
  Exit, optionally reporting an exit message.
exitEngine(String) - Method in class jgame.platform.JGEngine
expire_never - Static variable in class jgame.JGObject
  Expiry value: never expire.
expire_off_pf - Static variable in class jgame.JGObject
  Expiry value: expire when off playfield.
expire_off_view - Static variable in class jgame.JGObject
  Expiry value: expire when out of view.
expiry - Variable in class jgame.JGObject
  Number of move() steps before object removes itself, -1 (default) is never; -2 means expire when off-playfield, -3 means expire when off-view, -4 means suspend when off-view, -5 means suspend when off-view and expire when off-playfield.

## F

fields - Variable in class jgame.Highscore
fillBG(String) - Method in interface jgame.impl.JGEngineInterface
  Fill the background with the given tile.
fillBG(String) - Method in class jgame.platform.JGEngine
findPos(Highscore[], int) - Static method in class jgame.Highscore
  Find position (array index) of given score in highscore list, -1 means not in highscores.
flip(boolean, boolean) - Method in interface jgame.JGImage
frameFinished() - Method in class jgame.JGObject
  Signal that a new frame has just been updated; make snapshot of object state.

## G

g - Variable in class jgame.JGColor
  a value between 0 and 255
gameOver() - Method in class jgame.platform.StdGame
  Call to make straight transition to GameOver; is called automatically by lifeLost when appropriate.
gameover_ingame - Variable in class jgame.platform.StdGame
  Indicates whether the InGame state should be retained when in the corresponding sequence state.
gameover_ticks - Variable in class jgame.platform.StdGame
  Number of ticks to stay in GameOver state, 0 = skip
gamespeed - Static variable in class jgame.JGObject
  The engine's gamespeed setting, stored in a local variable for extra speed.
gametime - Variable in class jgame.platform.StdGame
  Game timer.
getAnimation(String) - Method in interface jgame.impl.JGEngineInterface
  Get animation definition, don't call directly.
getAnimation(String) - Method in class jgame.platform.JGEngine
getAnimId() - Method in class jgame.JGObject
  Get the ID of the currently running animation.
getAWTColor(JGColor) - Method in class jgame.platform.JGEngine
  Convert JGColor to AWT color (JRE only).
getBBox(JGRectangle) - Method in class jgame.JGObject
  Copy object collision bounding box in pixels into bbox_copy.
getBBox() - Method in class jgame.JGObject
  Get object collision bounding box in pixels.
getBufferGraphics() - Method in class jgame.platform.JGEngine
  get Graphics used to draw on buffer (JRE, non JOGL only).
getCenterTile() - Method in class jgame.JGObject
  Get the top left center tile of the object (that is, the x and y of getCenterTiles()).
getCenterTiles() - Method in class jgame.JGObject
  Get the tile indices spanning the tiles that the object has the most overlap with.
getConfigPath(String) - Method in interface jgame.impl.JGEngineInterface
  Returns path to writable location for a file with the given name.
getConfigPath(String) - Method in class jgame.platform.JGEngine
getFilename() - Method in class jgame.platform.AppConfig
  Get the filespec of the file that this AppConfig is associated with, null if only object or class is defined.
getFontHeight(JGFont) - Method in interface jgame.impl.JGEngineInterface
  Get height of given font in pixels.
getFontHeight(JGFont) - Method in class jgame.platform.JGEngine
getFrameRate() - Method in interface jgame.impl.JGEngineInterface
getFrameRate() - Method in class jgame.platform.JGEngine
getFrameSkip() - Method in interface jgame.impl.JGEngineInterface
getFrameSkip() - Method in class jgame.platform.JGEngine
getGameSpeed() - Method in interface jgame.impl.JGEngineInterface
  Get game speed variable.
getGameSpeed() - Method in class jgame.platform.JGEngine
getGraphic() - Method in class jgame.JGObject
  Get object's current animation ID, or image ID if not defined.
getImage(String) - Method in interface jgame.impl.JGEngineInterface
  Gets (scaled) image directly.
getImage(String) - Method in class jgame.platform.JGEngine
getImageBBox(String) - Method in interface jgame.impl.JGEngineInterface
  Gets the collision bounding box of an image.
getImageBBox() - Method in class jgame.JGObject
  Get collision bounding box of object's image (same as object's default bbox, note that the offset is (0,0) here).
getImageBBox(String) - Method in class jgame.platform.JGEngine
getImageBBoxConst() - Method in class jgame.JGObject
  Get collision bounding box of object's image (same as object's default bbox, note that the offset is (0,0) here).
getImageName() - Method in class jgame.JGObject
  Get name of current image.
getImageSize(String) - Method in interface jgame.impl.JGEngineInterface
  Gets (non-scaled) image's physical size directly.
getImageSize(String) - Method in class jgame.platform.JGEngine
getKey(int) - Method in interface jgame.impl.JGEngineInterface
  Get the key status of the given key.
getKey(int) - Method in class jgame.platform.JGEngine
getKeyCode(String) - Method in interface jgame.impl.JGEngineInterface
  Obtain key code from printable string describing the key, the inverse of getKeyDesc.
getKeyCode(String) - Method in class jgame.platform.JGEngine
  Non-static version for the sake of the interface.
getKeyCodeStatic(String) - Static method in class jgame.platform.JGEngine
getKeyDesc(int) - Method in interface jgame.impl.JGEngineInterface
  Get a printable string describing the key.
getKeyDesc(int) - Method in class jgame.platform.JGEngine
  Non-static version for the sake of the interface.
getKeyDescStatic(int) - Static method in class jgame.platform.JGEngine
getLastKey() - Method in interface jgame.impl.JGEngineInterface
  Get the keycode of the key that was pressed last, 0=none.
getLastKey() - Method in class jgame.platform.JGEngine
getLastKeyChar() - Method in interface jgame.impl.JGEngineInterface
  Get the keycode of the key that was pressed last, 0=none.
getLastKeyChar() - Method in class jgame.platform.JGEngine
getLastX() - Method in class jgame.JGObject
  Get x position of previous frame.
getLastY() - Method in class jgame.JGObject
  Get y position of previous frame.
getMinScaleFactor() - Method in interface jgame.impl.JGEngineInterface
  Get minimum of the x and y scale factors
getMinScaleFactor() - Method in class jgame.platform.JGEngine
getMouseButton(int) - Method in interface jgame.impl.JGEngineInterface
  Get state of button.
getMouseButton(int) - Method in class jgame.platform.JGEngine
getMouseInside() - Method in interface jgame.impl.JGEngineInterface
  Check if mouse is inside game window
getMouseInside() - Method in class jgame.platform.JGEngine
getMousePos() - Method in interface jgame.impl.JGEngineInterface
  Get current mouse position in logical coordinates, inverse projected through last set view zoom/rotate setting.
getMousePos() - Method in class jgame.platform.JGEngine
getMouseX() - Method in interface jgame.impl.JGEngineInterface
  Get current mouse X position
getMouseX() - Method in class jgame.platform.JGEngine
getMouseY() - Method in interface jgame.impl.JGEngineInterface
  Get current mouse Y position
getMouseY() - Method in class jgame.platform.JGEngine
getName() - Method in class jgame.JGObject
  Get object's ID
getObject(String) - Method in interface jgame.impl.JGEngineInterface
  Get object if it exists, null if not.
getObject() - Method in class jgame.platform.AppConfig
  Get the object that this AppConfig is associated with, null if not defined.
getObject(String) - Method in class jgame.platform.JGEngine
getObjectClass() - Method in class jgame.platform.AppConfig
  Get the class that this AppConfig is associated with, null if only a file is defined.
getObjects(String, int, boolean, JGRectangle) - Method in interface jgame.impl.JGEngineInterface
  Query the object list for objects matching the given name prefix, CID mask, and collide with the given bounding box.
getObjects(String, int, boolean, JGRectangle) - Method in class jgame.platform.JGEngine
getOffscreenMarginX() - Method in interface jgame.impl.JGEngineInterface
  Get offscreen X margin.
getOffscreenMarginX() - Method in class jgame.platform.JGEngine
getOffscreenMarginY() - Method in interface jgame.impl.JGEngineInterface
  Get offscreen Y margin.
getOffscreenMarginY() - Method in class jgame.platform.JGEngine
getSize() - Method in class jgame.JGFont
getSize() - Method in interface jgame.JGImage
  Get image size.
getSize2D() - Method in class jgame.JGFont
getStyle() - Method in class jgame.JGFont
getTileBBox(JGRectangle) - Method in class jgame.JGObject
  Get tile collision bounding box in pixels and store it in bbox_copy.
getTileBBox() - Method in class jgame.JGObject
  Get tile collision bounding box in pixels.
getTileCid(int, int) - Method in interface jgame.impl.JGEngineInterface
  Get collision id of tile at given tile index position.
getTileCid(JGRectangle) - Method in interface jgame.impl.JGEngineInterface
  Get the OR of the cids at the tile indexes given by tiler
getTileCid(JGPoint, int, int) - Method in interface jgame.impl.JGEngineInterface
  Get the tile cid of the point that is (xofs,yofs) from the tile index coordinate center.
getTileCid(int, int) - Method in class jgame.platform.JGEngine
getTileCid(JGRectangle) - Method in class jgame.platform.JGEngine
getTileCid(JGPoint, int, int) - Method in class jgame.platform.JGEngine
getTileCidAtCoord(double, double) - Method in interface jgame.impl.JGEngineInterface
  Get collision id of the tile at given pixel coordinates.
getTileCidAtCoord(double, double) - Method in class jgame.platform.JGEngine
getTileCoord(int, int) - Method in interface jgame.impl.JGEngineInterface
  Get pixel coordinate corresponding to the top left of the tile at the given index
getTileCoord(JGPoint) - Method in interface jgame.impl.JGEngineInterface
  Get pixel coordinate corresponding to the top left of the tile at the given index
getTileCoord(int, int) - Method in class jgame.platform.JGEngine
getTileCoord(JGPoint) - Method in class jgame.platform.JGEngine
getTileIndex(double, double) - Method in interface jgame.impl.JGEngineInterface
  Get tile index of the tile the coordinate is on.
getTileIndex(double, double) - Method in class jgame.platform.JGEngine
getTiles(JGRectangle) - Method in interface jgame.impl.JGEngineInterface
  Get tile index range of all tiles overlapping given rectangle of pixel coordinates.
getTiles(JGRectangle, JGRectangle) - Method in interface jgame.impl.JGEngineInterface
  Get tile index range of all tiles overlapping given rectangle of pixel coordinates, version without object creation.
getTiles() - Method in class jgame.JGObject
  Get the tile index coordinates of all the tiles that the object's tile bbox overlaps with.
getTiles(JGRectangle) - Method in class jgame.platform.JGEngine
getTiles(JGRectangle, JGRectangle) - Method in class jgame.platform.JGEngine
getTileStr(int, int) - Method in interface jgame.impl.JGEngineInterface
  get string id of tile at given index position.
getTileStr(JGPoint, int, int) - Method in interface jgame.impl.JGEngineInterface
  Get the tile string of the point that is (xofs,yofs) from the tile index coordinate center.
getTileStr(int, int) - Method in class jgame.platform.JGEngine
getTileStr(JGPoint, int, int) - Method in class jgame.platform.JGEngine
getTileStrAtCoord(double, double) - Method in interface jgame.impl.JGEngineInterface
  Get string id of the tile at given pixel coordinates.
getTileStrAtCoord(double, double) - Method in class jgame.platform.JGEngine
getTopLeftTile() - Method in class jgame.JGObject
  Get the topleftmost tile of the object.
getVideoSyncedUpdate() - Method in interface jgame.impl.JGEngineInterface
getVideoSyncedUpdate() - Method in class jgame.platform.JGEngine
getXAlignOfs(double) - Method in interface jgame.impl.JGEngineInterface
  Returns the difference between position and the closest tile-aligned position.
getXAlignOfs(double) - Method in class jgame.platform.JGEngine
getXDist(double, double) - Method in interface jgame.impl.JGEngineInterface
  Calculates length of the shortest path between x1 and x2, with x1, x2 being playfield coordinates, taking into account the wrap setting.
getXDist(double, double) - Method in class jgame.platform.JGEngine
getXScaleFactor() - Method in interface jgame.impl.JGEngineInterface
  Get scale factor of real screen width wrt virtual screen width
getXScaleFactor() - Method in class jgame.platform.JGEngine
getYAlignOfs(double) - Method in interface jgame.impl.JGEngineInterface
  Returns the difference between position and the closest tile-aligned position.
getYAlignOfs(double) - Method in class jgame.platform.JGEngine
getYDist(double, double) - Method in interface jgame.impl.JGEngineInterface
  Calculates length of the shortest path between y1 and y2, with y1, y2 being playfield coordinates, taking into account the wrap setting.
getYDist(double, double) - Method in class jgame.platform.JGEngine
getYScaleFactor() - Method in interface jgame.impl.JGEngineInterface
  Get scale factor of real screen height wrt virtual screen height
getYScaleFactor() - Method in class jgame.platform.JGEngine
getZoomingFont(JGFont, double, double, double) - Method in class jgame.platform.StdGame
  Get font for zooming text in and out.
gfx_prefix - Variable in class examples.StdDungeonMonster
  Prefix to use for directional animation; null indicates non-directional graphic
gfx_prefix - Variable in class examples.StdDungeonPlayer
  null indicates non-directional graphic
gfx_prefix - Variable in class examples.StdMazeMonster
  null indicates non-directional graphic
gfx_prefix - Variable in class examples.StdMazePlayer
  null indicates non-directional graphic
green - Static variable in class jgame.JGColor

## H

HAND_CURSOR - Static variable in interface jgame.impl.JGEngineInterface
  Platform-independent cursor.
height - Variable in class jgame.JGRectangle
Highscore - Class in jgame
  Class for handling highscores.
Highscore(int, String) - Constructor for class jgame.Highscore
  Construct regular highscore
Highscore(int, String, String) - Constructor for class jgame.Highscore
  Construct highscore with one extra field
Highscore(int, String, String, String) - Constructor for class jgame.Highscore
  Construct highscore with extra fields
Highscore(int, String, String, String, String) - Constructor for class jgame.Highscore
  Construct highscore with extra fields
highscore_color - Variable in class jgame.platform.StdGame
  Color to use to display highscores
highscore_entry - Variable in class jgame.platform.StdGame
  String to display above highscore entry screen.
highscore_font - Variable in class jgame.platform.StdGame
  Font to use to display highscores
highscore_maxnamelen - Variable in class jgame.platform.StdGame
  Maximum length of name typed by user.
highscore_showtime - Variable in class jgame.platform.StdGame
  Time to show highscores before going back to title screen.
highscore_title - Variable in class jgame.platform.StdGame
  Title string to display above highscores
highscore_title_color - Variable in class jgame.platform.StdGame
  Color to use to display highscore title information
highscore_title_font - Variable in class jgame.platform.StdGame
  Font to use to display highscore title information
highscore_waittime - Variable in class jgame.platform.StdGame
  Time to wait in title screen before showing highscores.
highscores - Variable in class jgame.platform.StdGame
  Highscore table, null (default) means not defined.
hit(JGObject) - Method in class jgame.JGObject
  Override to handle collision; default is do nothing.
hit_bg(int) - Method in class jgame.JGObject
  Override to handle tile collision; default is do nothing.
hit_bg(int, int, int, int, int) - Method in class jgame.JGObject
  Override to handle tile collision; default is do nothing.
hit_bg(int, int, int) - Method in class jgame.JGObject
  Override to handle tile collision; default is do nothing.
home_in - Variable in class examples.StdDungeonMonster
  object to home in on, null=none (random movement)
home_in - Variable in class examples.StdMazeMonster
  object to home in on, null=none (random movement)

## I

impl - Variable in class jgame.JGColor
impl - Variable in class jgame.JGFont
  Optional object that represents the font on a particular platform.
incrementLevel() - Method in class jgame.platform.StdGame
  Code for incrementing a level before transition from LevelDone to InGame is made.
inGameState(String) - Method in interface jgame.impl.JGEngineInterface
  Check if game is in given state.
inGameState(String) - Method in class jgame.platform.JGEngine
inGameStateNextFrame(String) - Method in interface jgame.impl.JGEngineInterface
  Check if game will be in given state the next frame.
inGameStateNextFrame(String) - Method in class jgame.platform.JGEngine
init() - Method in class jgame.platform.JGEngine
  Initialise engine; don't call directly.
initAppConfig() - Method in class jgame.platform.StdGame
  Define appconfig for configuring keys.
initCanvas() - Method in interface jgame.impl.JGEngineInterface
  Override to define your own initialisations before the engine initialises.
initCanvas() - Method in class jgame.platform.JGEngine
initEngine(int, int) - Method in interface jgame.impl.JGEngineInterface
  Init engine as application.
initEngine(int, int) - Method in class jgame.platform.JGEngine
  Init engine as application.
initEngineApplet() - Method in interface jgame.impl.JGEngineInterface
  Init engine as applet; call this in your engine constructor.
initEngineApplet() - Method in class jgame.platform.JGEngine
  Init engine as applet; call this in your engine constructor.
initEngineComponent(int, int) - Method in interface jgame.impl.JGEngineInterface
  Init engine as component to be embedded in a frame or panel; call this in your engine constructor.
initEngineComponent(int, int) - Method in class jgame.platform.JGEngine
initGame() - Method in interface jgame.impl.JGEngineInterface
  Override to define your own initialisations after the engine initialised.
initGame() - Method in class jgame.platform.JGEngine
initial_lives - Variable in class jgame.platform.StdGame
  Initial value for lives; default=4
initNewGame(int) - Method in class jgame.platform.StdGame
  Initialise the game when a new game is started.
initNewLife() - Method in class jgame.platform.StdGame
  Initialise play specifically after a new life is introduced (that is, at game start and after the player has died.
insert(Highscore[], Highscore) - Static method in class jgame.Highscore
  Try to insert new highscore in given highscore list.
intersects(JGRectangle) - Method in class jgame.JGRectangle
is_suspended - Variable in class jgame.JGObject
  Indicates if object is suspended.
isAligned() - Method in class jgame.JGObject
  Returns true if both isXAligned() and isYAligned() are true.
isAlive() - Method in class jgame.JGObject
  Check if object is still active, or has already been removed.
isApplet() - Method in interface jgame.impl.JGEngineInterface
  Are we running as an applet or as an application?
isApplet() - Method in class jgame.platform.JGEngine
isBottomAligned(double) - Method in class jgame.JGObject
  Returns true if the bottom of the object's tile bbox is within margin of being tile grid aligned.
isGuiOpen() - Method in class jgame.platform.AppConfig
  Check if GUI is visible right now.
isInView(int, int) - Method in class jgame.JGObject
  Margin is the margin beyond which the object is considered off-view.
isLeftAligned(double) - Method in class jgame.JGObject
  Returns true if the left of the object's tile bbox is within margin of being tile grid aligned.
isMidlet() - Method in interface jgame.impl.JGEngineInterface
  Are we running as a midlet?
isMidlet() - Method in class jgame.platform.JGEngine
isOnPF(int, int) - Method in class jgame.JGObject
  Margin is the margin beyond which the object is considered off the playfield.
isOnScreen(int, int) - Method in class jgame.JGObject
  Deprecated. Use isOnPF and isInView according to your situation.
isOpaque(int) - Method in interface jgame.JGImage
  True means the image may have some transparent pixels below the given alpha threshold, false means image is completely opaque.
isOpenGL() - Method in interface jgame.impl.JGEngineInterface
  Are we running with an OpenGL backend?
isOpenGL() - Method in class jgame.platform.JGEngine
isRightAligned(double) - Method in class jgame.JGObject
  Returns true if the right of the object's tile bbox is within margin of being tile grid aligned.
isRunning() - Method in interface jgame.impl.JGEngineInterface
  True if engine is running, false if paused.
isRunning() - Method in class jgame.platform.JGEngine
isSuspended() - Method in class jgame.JGObject
  Check if object is suspended.
isTopAligned(double) - Method in class jgame.JGObject
  Returns true if the top of the object's tile bbox is within margin of being tile grid aligned.
isXAligned(double, double) - Method in interface jgame.impl.JGEngineInterface
  Returns true if x falls within margin of the tile snap grid.
isXAligned() - Method in class jgame.JGObject
  Returns true if x is distance xspeed-epsilon away from being grid aligned.
isXAligned(double) - Method in class jgame.JGObject
  Returns true if x is within margin of being tile grid aligned.
isXAligned(double, double) - Method in class jgame.platform.JGEngine
isYAligned(double, double) - Method in interface jgame.impl.JGEngineInterface
  Returns true if y falls within margin of the tile snap grid.
isYAligned() - Method in class jgame.JGObject
  Returns true if y is distance yspeed-epsilon away from being grid aligned.
isYAligned(double) - Method in class jgame.JGObject
  Returns true if y is within margin of being tile grid aligned.
isYAligned(double, double) - Method in class jgame.platform.JGEngine
ITALIC - Static variable in class jgame.JGFont

## J

jgame - package jgame
  Contains the platform-independent classes of JGame.
jgame.platform - package jgame.platform
  Contains the platform-dependent JGame classes.
JGColor - Class in jgame
  Minimal replacement of java.awt.Color.
JGColor(int, int, int) - Constructor for class jgame.JGColor
JGColor(int, int, int, int) - Constructor for class jgame.JGColor
JGColor(double, double, double) - Constructor for class jgame.JGColor
JGColor(double, double, double, double) - Constructor for class jgame.JGColor
JGEngine - Class in jgame.platform
  Contains the main functionality of the game engine.
JGEngine() - Constructor for class jgame.platform.JGEngine
  Construct engine, but do not initialise it yet.
JGEngineInterface - Interface in jgame.impl
  Interface defining all platform-independent methods in JGEngine.
JGFont - Class in jgame
  A generic font specification for fonts on the different platforms.
JGFont(String, int, double) - Constructor for class jgame.JGFont
  Creates a new Font from the specified name, style and point size.
JGImage - Interface in jgame
  Image functionality
JGObject - Class in jgame
  Superclass for game objects, override to define animated game objects.
JGObject(String, boolean, double, double, int, String) - Constructor for class jgame.JGObject
  Create object.
JGObject(String, boolean, double, double, int, String, int) - Constructor for class jgame.JGObject
  Create object with given expiry.
JGObject(String, boolean, double, double, int, String, int, int, int, int) - Constructor for class jgame.JGObject
  Create object with given tile bbox.
JGObject(String, boolean, double, double, int, String, int, int, int, int, int) - Constructor for class jgame.JGObject
  Create object with given tile bbox and expiry.
JGObject(String, boolean, double, double, int, String, double, double) - Constructor for class jgame.JGObject
  Create object with given absolute speed.
JGObject(String, boolean, double, double, int, String, double, double, int) - Constructor for class jgame.JGObject
  Create object with given absolute speed and expiry.
JGObject(String, boolean, double, double, int, String, int, int, int, int, double, double) - Constructor for class jgame.JGObject
  Create object with given tile bbox and absolute speed.
JGObject(String, boolean, double, double, int, String, int, int, int, int, double, double, int) - Constructor for class jgame.JGObject
  Create object with given tile bbox, absolute speed, expiry.
JGObject(String, boolean, double, double, int, String, int, int, double, double, int) - Constructor for class jgame.JGObject
  Create object with given direction/speed, expiry.
JGObject(String, boolean, double, double, int, String, int, int, int, int, int, int, double, double, int) - Constructor for class jgame.JGObject
  Create object with given tile bbox, direction/speed, expiry.
JGPoint - Class in jgame
  Minimal replacement of java.awt.Point.
JGPoint() - Constructor for class jgame.JGPoint
JGPoint(JGPoint) - Constructor for class jgame.JGPoint
JGPoint(int, int) - Constructor for class jgame.JGPoint
JGRectangle - Class in jgame
  Minimal replacement of java.awt.Rectangle.
JGRectangle() - Constructor for class jgame.JGRectangle
JGRectangle(int, int, int, int) - Constructor for class jgame.JGRectangle
JGRectangle(JGRectangle) - Constructor for class jgame.JGRectangle
JGTimer - Class in jgame
  A timer that generates a callback after a certain number of frames.
JGTimer(int, boolean) - Constructor for class jgame.JGTimer
  Create timer; the timer may be one-shot (it runs only once, then triggers the alarm and removes itself), or continuous (it continues running and triggering the alarm)
JGTimer(int, boolean, JGObject) - Constructor for class jgame.JGTimer
  Create timer which has an object as parent.
JGTimer(int, boolean, String) - Constructor for class jgame.JGTimer
  Create timer which has a specific gamestate as parent.

## K

key_action - Variable in class jgame.platform.StdGame
  Key for special action, default is X for JRE, 8 for MIDP.
key_continuegame - Variable in class jgame.platform.StdGame
  Key for continuing the game when in a sequence, JRE default is space, MIDP default is "*"
key_down - Variable in class examples.StdDungeonPlayer
  Movement keys.
key_down - Variable in class examples.StdMazePlayer
  movement key
key_down - Variable in class jgame.platform.StdGame
  Key for moving, default = cursors.
key_fire - Variable in class jgame.platform.StdGame
  Key for firing (in case there are no separate directional fire keys), JRE default is Z, MIDP default is Fire.
key_firedown - Variable in class jgame.platform.StdGame
  Key for directional firing, default is WSAD keys for JRE, 2456 for MIDP.
key_fireleft - Variable in class jgame.platform.StdGame
  Key for directional firing, default is WSAD keys for JRE, 2456 for MIDP.
key_fireright - Variable in class jgame.platform.StdGame
  Key for directional firing, default is WSAD keys for JRE, 2456 for MIDP.
key_fireup - Variable in class jgame.platform.StdGame
  Key for directional firing, default is WSAD keys for JRE, 2456 for MIDP.
key_gamesettings - Variable in class jgame.platform.StdGame
  Key for invoking the game settings window, default = enter.
key_left - Variable in class examples.StdDungeonPlayer
  Movement keys.
key_left - Variable in class examples.StdMazePlayer
  movement key
key_left - Variable in class jgame.platform.StdGame
  Key for moving, default = cursors.
key_pausegame - Variable in class jgame.platform.StdGame
  Key for pausing the game, JRE default is P, MIDP default is '0'
key_quitgame - Variable in class jgame.platform.StdGame
  Key for quitting the current game, JRE default is escape, MIDP default is "#".
key_quitprogram - Variable in class jgame.platform.StdGame
  Key for quitting the program, JRE default is escape, MIDP default is "#".
key_right - Variable in class examples.StdDungeonPlayer
  Movement keys.
key_right - Variable in class examples.StdMazePlayer
  movement key
key_right - Variable in class jgame.platform.StdGame
  Key for moving, default = cursors.
key_startgame - Variable in class jgame.platform.StdGame
  Key for starting the game, JRE default is space, MIDP default is "*"
key_up - Variable in class examples.StdDungeonPlayer
  Movement keys.
key_up - Variable in class examples.StdMazePlayer
  movement key
key_up - Variable in class jgame.platform.StdGame
  Key for moving, default = cursors.
KeyAlt - Static variable in interface jgame.impl.JGEngineInterface
KeyBackspace - Static variable in interface jgame.impl.JGEngineInterface
KeyBackspace - Static variable in class jgame.platform.JGEngine
KeyCtrl - Static variable in interface jgame.impl.JGEngineInterface
KeyDown - Static variable in interface jgame.impl.JGEngineInterface
  Cursor keys for both regular and mobile keyboard.
KeyEnter - Static variable in interface jgame.impl.JGEngineInterface
  On a mobile, pressing "*" also triggers KeyEnter.
KeyEsc - Static variable in interface jgame.impl.JGEngineInterface
KeyFire - Static variable in interface jgame.impl.JGEngineInterface
  Fire stands for a mobile key, indicating the fire button of the cursor controls.
KeyLeft - Static variable in interface jgame.impl.JGEngineInterface
  Cursor keys for both regular and mobile keyboard.
KeyMouse1 - Static variable in interface jgame.impl.JGEngineInterface
  Keymap equivalent of mouse button.
KeyMouse2 - Static variable in interface jgame.impl.JGEngineInterface
  Keymap equivalent of mouse button.
KeyMouse3 - Static variable in interface jgame.impl.JGEngineInterface
  Keymap equivalent of mouse button.
KeyPound - Static variable in interface jgame.impl.JGEngineInterface
  The mobile Pound key, equal to '#'.
KeyRight - Static variable in interface jgame.impl.JGEngineInterface
  Cursor keys for both regular and mobile keyboard.
KeyShift - Static variable in interface jgame.impl.JGEngineInterface
  On a mobile, the cursor control Fire is the same as shift.
KeyStar - Static variable in interface jgame.impl.JGEngineInterface
  The mobile Star key, equal to '*'.
KeyTab - Static variable in interface jgame.impl.JGEngineInterface
KeyTab - Static variable in class jgame.platform.JGEngine
KeyUp - Static variable in interface jgame.impl.JGEngineInterface
  Cursor keys for both regular and mobile keyboard.

## L

lastPlayedAudio(String) - Method in interface jgame.impl.JGEngineInterface
  Returns the audioclip that was last played, null if audio was stopped with stopAudio.
lastPlayedAudio(String) - Method in class jgame.platform.JGEngine
level - Variable in class jgame.platform.StdGame
  Difficulty level; starts at 0 at beginning of game.
levelDone() - Method in class jgame.platform.StdGame
  Call to make state transition to LevelDone.
leveldone_ingame - Variable in class jgame.platform.StdGame
  Indicates whether the InGame state should be retained when in the corresponding sequence state.
leveldone_ticks - Variable in class jgame.platform.StdGame
  Number of ticks to stay in LevelDone state, 0 = skip
lifeLost() - Method in class jgame.platform.StdGame
  Call to make state transition to LifeLost.
lifelost_ingame - Variable in class jgame.platform.StdGame
  Indicates whether the InGame state should be retained when in the corresponding sequence state.
lifelost_ticks - Variable in class jgame.platform.StdGame
  Number of ticks to stay in LifeLost state, 0 = skip
lives - Variable in class jgame.platform.StdGame
  Lives count, 0 means game over.
lives_img - Variable in class jgame.platform.StdGame
  Image to use to display lives
load(InputStream) - Static method in class jgame.Highscore
loadFromFile() - Method in class jgame.platform.AppConfig
  Load settings from file.
loadFromObject() - Method in class jgame.platform.AppConfig
  Load settings from previously specified fields in object.
loadImage(String) - Method in interface jgame.JGImage
  Load image from resource path (using getResource).

## M

magenta - Static variable in class jgame.JGColor
main(String[]) - Static method in class jgame.platform.AppConfig
  Edit a previously created file.
markAddObject(JGObject) - Method in interface jgame.impl.JGEngineInterface
  Add new object, will become active next frame, do not call directly.
markAddObject(JGObject) - Method in class jgame.platform.JGEngine
moduloPos() - Method in class jgame.JGObject
  Modulo x/y position according to wrap settings.
moduloXPos(double) - Method in interface jgame.impl.JGEngineInterface
  A modulo that moduloes symmetrically, relative to the middle of the view.
moduloXPos(double) - Method in class jgame.platform.JGEngine
moduloYPos(double) - Method in interface jgame.impl.JGEngineInterface
  A modulo that moduloes symmetrically, relative to the middle of the view.
moduloYPos(double) - Method in class jgame.platform.JGEngine
move() - Method in class examples.StdDungeonMonster
  Moves the object around, and ensures it occupies space.
move() - Method in class examples.StdDungeonPlayer
  Moves the object around, and ensures it occupies space.
move() - Method in class examples.StdMazeMonster
  Moves the object around.
move() - Method in class examples.StdMazePlayer
  Moves the object around.
move() - Method in class jgame.JGObject
  Override to implement automatic move; default is do nothing.
moveObjects(String, int) - Method in interface jgame.impl.JGEngineInterface
  Call the move() methods of those objects matching the given name prefix and collision id mask.
moveObjects() - Method in interface jgame.impl.JGEngineInterface
  Call the move() methods of all registered objects.
moveObjects(String, int) - Method in class jgame.platform.JGEngine
moveObjects() - Method in class jgame.platform.JGEngine

## N

name - Variable in class jgame.Highscore
name - Variable in class jgame.JGFont
  The font name can be a logical font name or a font face name.

## O

occupy_mask - Variable in class examples.StdDungeonMonster
  cid mask that object should use to indicate occupation
occupy_mask - Variable in class examples.StdDungeonPlayer
  cid mask that object should use to indicate occupation
one_shot - Variable in class jgame.JGTimer
openGui() - Method in class jgame.platform.AppConfig
  Make the Gui visible on screen, and let the user make a selection whether to save, apply, or just close.
orange - Static variable in class jgame.JGColor
orTileCid(int, int, int) - Method in interface jgame.impl.JGEngineInterface
  Modify the cid of a single tile by ORing a bit mask, leaving the actual tile.
orTileCid(int, int, int) - Method in class jgame.platform.JGEngine

## P

paint() - Method in class examples.StdScoring
  Paints the message.
paint() - Method in class jgame.JGObject
  Override to define custom paint actions.
paintFrame() - Method in interface jgame.impl.JGEngineInterface
  Is called when the engine's default screen painting is finished, and custom painting actions may be carried out.
paintFrame() - Method in class jgame.platform.JGEngine
paintFrame() - Method in class jgame.platform.StdGame
  Default paintFrame displays score at top left, lives at top right.
paintFrameEnterHighscore() - Method in class jgame.platform.StdGame
  Default displays highscore_entry, and the player's score and playername currently being entered.
paintFrameGameOver() - Method in class jgame.platform.StdGame
  Default displays "Game Over!".
paintFrameHighscores() - Method in class jgame.platform.StdGame
  Default displays the highscore list.
paintFrameLevelDone() - Method in class jgame.platform.StdGame
  Default displays "Level Done !".
paintFrameLifeLost() - Method in class jgame.platform.StdGame
  Default displays "Life Lost !".
paintFramePaused() - Method in class jgame.platform.StdGame
  The game is halted in pause mode, but the paintFrame is still done to refresh the screen.
paintFrameStartGame() - Method in class jgame.platform.StdGame
  Default displays "Start !".
paintFrameStartLevel() - Method in class jgame.platform.StdGame
  Default displays "Level "+(stage+1).
paintFrameTitle() - Method in class jgame.platform.StdGame
  Default displays class name as title, and "press [key_startgame] to start" below it.
parent_obj - Variable in class jgame.JGTimer
parent_state - Variable in class jgame.JGTimer
parseSizeArgs(String[], int) - Static method in class jgame.platform.StdGame
  Look for two arguments starting at index arg_ofs, and parse them as width and height.
pauseApp() - Method in interface jgame.impl.JGEngineInterface
  Called by the application manager to pause app.
pauseApp() - Method in class jgame.platform.JGEngine
pfHeight() - Method in interface jgame.impl.JGEngineInterface
  Get the virtual height in pixels (not the scaled screen height)
pfheight - Static variable in class jgame.JGObject
  The engine's pfWidth/pfHeight, stored in a local variable for extra speed.
pfHeight() - Method in class jgame.platform.JGEngine
pfTilesX() - Method in interface jgame.impl.JGEngineInterface
  Get the number of tiles in X direction
pfTilesX() - Method in class jgame.platform.JGEngine
pfTilesY() - Method in interface jgame.impl.JGEngineInterface
  Get the number of tiles in Y direction
pfTilesY() - Method in class jgame.platform.JGEngine
pfWidth() - Method in interface jgame.impl.JGEngineInterface
  Get the virtual width in pixels (not the scaled screen width)
pfwidth - Static variable in class jgame.JGObject
  The engine's pfWidth/pfHeight, stored in a local variable for extra speed.
pfWidth() - Method in class jgame.platform.JGEngine
pfWrapX() - Method in interface jgame.impl.JGEngineInterface
  Is playfield X wrap enabled?
pfwrapx - Static variable in class jgame.JGObject
  The engine's pfWrap settings, stored in a local variable for extra speed.
pfWrapX() - Method in class jgame.platform.JGEngine
pfWrapY() - Method in interface jgame.impl.JGEngineInterface
  Is playfield Y wrap enabled?
pfwrapy - Static variable in class jgame.JGObject
  The engine's pfWrap settings, stored in a local variable for extra speed.
pfWrapY() - Method in class jgame.platform.JGEngine
pink - Static variable in class jgame.JGColor
PLAIN - Static variable in class jgame.JGFont
playAudio(String) - Method in interface jgame.impl.JGEngineInterface
  Play audio clip on unnamed channel, which means it will not replace another clip, and cannot be stopped.
playAudio(String, String, boolean) - Method in interface jgame.impl.JGEngineInterface
  Play clip on channel with given name.
playAudio(String) - Method in class jgame.platform.JGEngine
playAudio(String, String, boolean) - Method in class jgame.platform.JGEngine
playername - Variable in class jgame.platform.StdGame
  Player's name being entered in EnterHighscore; is reset to the empty string before the EnterHighscore state is entered.
posWalkForwards(int, int, double, int, int, int, int) - Method in class jgame.platform.StdGame
  Walk across the screen, standing still momentarily at a specific position.
purgeImage(String) - Method in interface jgame.JGImage
  Purge image with the given resourcename from the cache.

## R

r - Variable in class jgame.JGColor
  a value between 0 and 255
random(double, double) - Method in interface jgame.impl.JGEngineInterface
  A floating-point random number between min and max
random(double, double, double) - Method in interface jgame.impl.JGEngineInterface
  Generates discrete random number between min and max inclusive, with steps of interval.
random(int, int, int) - Method in interface jgame.impl.JGEngineInterface
  Generates discrete random number between min and max inclusive, with steps of interval, integer version.
random(double, double) - Method in class jgame.platform.JGEngine
random(double, double, double) - Method in class jgame.platform.JGEngine
random(int, int, int) - Method in class jgame.platform.JGEngine
random_proportion - Variable in class examples.StdDungeonMonster
  chance that object moves randomly
random_proportion - Variable in class examples.StdMazeMonster
  chance that object moves randomly
red - Static variable in class jgame.JGColor
registerTimer(JGTimer) - Method in interface jgame.impl.JGEngineInterface
  Register a timer with the engine, don't call directly.
registerTimer(JGTimer) - Method in class jgame.platform.JGEngine
remove() - Method in class jgame.JGObject
  Mark object for removal, ignore if already removed.
removeAllTimers() - Method in interface jgame.impl.JGEngineInterface
  Remove all JGTimers still ticking in the system.
removeAllTimers() - Method in class jgame.platform.JGEngine
removeDone() - Method in class jgame.JGObject
  Signal to object that remove is done, don't call directly.
removeGameState(String) - Method in interface jgame.impl.JGEngineInterface
  Remove the given state from the game's existing state on the next frame.
removeGameState(String) - Method in class jgame.platform.JGEngine
removeObject(JGObject) - Method in interface jgame.impl.JGEngineInterface
  Remove one particular object.
removeObject(JGObject) - Method in class jgame.platform.JGEngine
removeObjects(String, int) - Method in interface jgame.impl.JGEngineInterface
  Remove all objects which have the given name prefix and/or match the given cidmask.
removeObjects(String, int, boolean) - Method in interface jgame.impl.JGEngineInterface
  Remove all objects which have the given name prefix and/or match the given cidmask.
removeObjects(String, int) - Method in class jgame.platform.JGEngine
removeObjects(String, int, boolean) - Method in class jgame.platform.JGEngine
requestGameFocus() - Method in interface jgame.impl.JGEngineInterface
  Call this to get focus.
requestGameFocus() - Method in class jgame.platform.JGEngine
resetAnim(String) - Method in class jgame.JGObject
  Always set the animation to the given default animation definition, resetting any changes or updates made to the animation.
resetAnim() - Method in class jgame.JGObject
  Reset the animation's state to the start state.
resume() - Method in class jgame.JGObject
  Resume from suspended state, if suspended.
resume_in_view - Variable in class jgame.JGObject
  If true, object will automatically start() when it is suspended and in view.
rotate(int) - Method in interface jgame.JGImage
  for angle, only increments of 90 are allowed
rotateAny(double) - Method in interface jgame.JGImage
  Image is rotated by rot (radians).
running - Variable in class jgame.JGTimer

## S

save(Highscore[], OutputStream) - Static method in class jgame.Highscore
saveHighscores() - Method in class jgame.platform.StdGame
  Try to save highscores to default location, $HOMEDIR/.jgame/$CLASSNAME.hsc.
saveToFile() - Method in class jgame.platform.AppConfig
  Save settings to file.
saveToObject() - Method in class jgame.platform.AppConfig
  Save settings into object.
scale(int, int) - Method in interface jgame.JGImage
  Returns a smoothly scaled image using getScaledInstance.
score - Variable in class jgame.Highscore
score - Variable in class jgame.platform.StdGame
  Player score; starts at 0 at beginning of game.
seqtimer - Variable in class jgame.platform.StdGame
  Sequence timer.
set(int, boolean) - Method in class jgame.JGTimer
setAnim(String) - Method in class jgame.JGObject
  Set the animation to the given default animation definition, or leave it as it was if the anim_id is unchanged.
setAnimPingpong(boolean) - Method in class jgame.JGObject
setAnimSpeed(double) - Method in class jgame.JGObject
  Set animation speed; speed may be less than 0, indicating that animation should go backwards.
setAuthorMessage(String) - Method in interface jgame.impl.JGEngineInterface
  Set author message, default "JGame [version]"
setAuthorMessage(String) - Method in class jgame.platform.JGEngine
setBBox(int, int, int, int) - Method in class jgame.JGObject
  Set bbox definition to override the image bbox.
setBGColor(JGColor) - Method in interface jgame.impl.JGEngineInterface
  Set global background colour, which is displayed in borders, and behind transparent tiles if no BGImage is defined.
setBGColor(JGColor) - Method in class jgame.platform.JGEngine
  Set global background colour, which is displayed in borders, and behind transparent tiles if no BGImage is defined.
setBGImage(String) - Method in interface jgame.impl.JGEngineInterface
  Set image to display behind transparent tiles.
setBGImage(int, String, boolean, boolean) - Method in interface jgame.impl.JGEngineInterface
  Set image to display at a particular parallax scroll level.
setBGImage(String) - Method in class jgame.platform.JGEngine
setBGImage(int, String, boolean, boolean) - Method in class jgame.platform.JGEngine
setBGImgOffset(int, double, double, boolean) - Method in interface jgame.impl.JGEngineInterface
  Change (absolute) offset of BG image independently of view offset.
setBGImgOffset(int, double, double, boolean) - Method in class jgame.platform.JGEngine
setBlendMode(int, int) - Method in interface jgame.impl.JGEngineInterface
  Set blend mode, for platforms that support blending.
setBlendMode(int, int) - Method in class jgame.platform.JGEngine
setCanvasSettings(int, int, int, int, JGColor, JGColor, JGFont) - Method in interface jgame.impl.JGEngineInterface
  Set canvas dimensions and message colours/fonts.
setCanvasSettings(int, int, int, int, JGColor, JGColor, JGFont) - Method in class jgame.platform.JGEngine
setColor(JGColor) - Method in interface jgame.impl.JGEngineInterface
  Set current drawing colour.
setColor(JGColor) - Method in class jgame.platform.JGEngine
setColorsFont(JGColor, JGColor, JGFont) - Method in interface jgame.impl.JGEngineInterface
  Set foreground and background colour, and message font in one go; passing a null means ignore that argument.
setColorsFont(JGColor, JGColor, JGFont) - Method in class jgame.platform.JGEngine
  Set foreground and background colour, and message font in one go; passing a null means ignore that argument.
setDir(int, int) - Method in class jgame.JGObject
  Set direction.
setDirSpeed(int, int, double, double) - Method in class jgame.JGObject
  Set speed and direction in one go.
setDirSpeed(int, int, double) - Method in class jgame.JGObject
  Set speed and direction in one go.
setEngine(JGEngineInterface) - Static method in class jgame.JGObject
  Set the engine to connect to when a new object is created.
setFGColor(JGColor) - Method in interface jgame.impl.JGEngineInterface
  Set global foreground colour, used for printing text and status messages.
setFGColor(JGColor) - Method in class jgame.platform.JGEngine
  Set global foreground colour, used for printing text and status messages.
setField(String, Object, boolean) - Method in class jgame.platform.AppConfig
  Set field's value, given that field is already defined.
setFont(JGFont) - Method in interface jgame.impl.JGEngineInterface
  Set current font, scale the font to screen size.
setFont(JGFont) - Method in class jgame.platform.JGEngine
setFont(Graphics, JGFont) - Method in class jgame.platform.JGEngine
setFrameRate(double, double) - Method in interface jgame.impl.JGEngineInterface
  Set frame rate in frames per second, and maximum number of frames that may be skipped before displaying a frame again.
setFrameRate(double, double) - Method in class jgame.platform.JGEngine
setGameSpeed(double) - Method in interface jgame.impl.JGEngineInterface
  Set game speed variable, default is 1.0.
setGameSpeed(double) - Method in class jgame.platform.JGEngine
setGameState(String) - Method in interface jgame.impl.JGEngineInterface
  Set the game's main state on the next frame.
setGameState(String) - Method in class jgame.platform.JGEngine
setGraphic(String) - Method in class jgame.JGObject
  Set ID of animation or image to display.
setGuiSettings(Font, Font, Color, Color, Color) - Method in class jgame.platform.AppConfig
  Configure the look of the GUI
setHighscoreDisplay(int, int, JGFont, JGColor, String, String, JGFont, JGColor) - Method in class jgame.platform.StdGame
  Set highscore display settings.
setHighscores(int, Highscore, int) - Method in class jgame.platform.StdGame
  Define highscore table.
setImage(String) - Method in class jgame.JGObject
  Set ID of image to display; clear animation.
setKey(int) - Method in interface jgame.impl.JGEngineInterface
  Set the key status of a key to pressed.
setKey(int) - Method in class jgame.platform.JGEngine
setListener(ActionListener) - Method in class jgame.platform.AppConfig
  Set listener for special events.
setMouseButton(int) - Method in interface jgame.impl.JGEngineInterface
  Set state of button to pressed.
setMouseButton(int) - Method in class jgame.platform.JGEngine
setMouseCursor(int) - Method in interface jgame.impl.JGEngineInterface
  Set mouse cursor to a platform-independent standard cursor.
setMouseCursor(Object) - Method in interface jgame.impl.JGEngineInterface
  Set mouse cursor, platform dependent.
setMouseCursor(int) - Method in class jgame.platform.JGEngine
setMouseCursor(Object) - Method in class jgame.platform.JGEngine
  Set mouse cursor, null means hide cursor.
setMsgFont(JGFont) - Method in interface jgame.impl.JGEngineInterface
  Set the (unscaled) message font, used for displaying status messages.
setMsgFont(JGFont) - Method in class jgame.platform.JGEngine
  Set the (unscaled) message font, used for displaying status messages.
setObject(Object) - Method in class jgame.platform.AppConfig
  Set or replace the object that this AppConfig should be associated with.
setOffscreenMargin(int, int) - Method in interface jgame.impl.JGEngineInterface
  Set margin used for testing if object should expire or suspend when off-view or off-playfield.
setOffscreenMargin(int, int) - Method in class jgame.platform.JGEngine
setPFSize(int, int) - Method in interface jgame.impl.JGEngineInterface
  Set the playfield size to be any size larger or equal to the view size.
setPFSize(int, int) - Method in class jgame.platform.JGEngine
setPFWrap(boolean, boolean, int, int) - Method in interface jgame.impl.JGEngineInterface
  Set playfield wraparound setting.
setPFWrap(boolean, boolean, int, int) - Method in class jgame.platform.JGEngine
setPos(double, double) - Method in class jgame.JGObject
setProgressBar(double) - Method in interface jgame.impl.JGEngineInterface
  Set progress bar position in the load screen.
setProgressBar(double) - Method in class jgame.platform.JGEngine
setProgressMessage(String) - Method in interface jgame.impl.JGEngineInterface
  Set progress message, default "Loading files..."
setProgressMessage(String) - Method in class jgame.platform.JGEngine
setRenderSettings(int, JGColor) - Method in interface jgame.impl.JGEngineInterface
  Configure image rendering.
setRenderSettings(int, JGColor) - Method in class jgame.platform.JGEngine
setResumeMode(boolean) - Method in class jgame.JGObject
  Set resume condition.
setScalingPreferences(double, double, int, int, int, int) - Method in interface jgame.impl.JGEngineInterface
  Set scaling preferences for translating the virtual playfield to the actual display.
setScalingPreferences(double, double, int, int, int, int) - Method in class jgame.platform.JGEngine
setSequences(boolean, int, boolean, int, boolean, int, boolean, int) - Method in class jgame.platform.StdGame
  Set all sequence variables in one go.
setSmoothing(boolean) - Method in interface jgame.impl.JGEngineInterface
  Magnification can be set to smooth or blocky.
setSmoothing(boolean) - Method in class jgame.platform.JGEngine
setSpeed(double, double) - Method in class jgame.JGObject
  Set relative speed; the values are copied into xspeed,yspeed.
setSpeed(double) - Method in class jgame.JGObject
  Set relative speed; the value is copied into xspeed,yspeed.
setSpeedAbs(double, double) - Method in class jgame.JGObject
  Set absolute speed.
setStatusDisplay(JGFont, JGColor, String) - Method in class jgame.platform.StdGame
  Set the status display variables in one go.
setStroke(double) - Method in interface jgame.impl.JGEngineInterface
  Set the line thickness
setStroke(double) - Method in class jgame.platform.JGEngine
setTextOutline(int, JGColor) - Method in interface jgame.impl.JGEngineInterface
  Set parameters of outline surrounding text (for example, used to increase contrast).
setTextOutline(int, JGColor) - Method in class jgame.platform.JGEngine
  Set parameters of outline surrounding text (for example, used to increase contrast).
setTile(int, int, String) - Method in interface jgame.impl.JGEngineInterface
  Set a single tile.
setTile(JGPoint, String) - Method in interface jgame.impl.JGEngineInterface
  Set a single tile.
setTile(int, int, String) - Method in class jgame.platform.JGEngine
setTile(JGPoint, String) - Method in class jgame.platform.JGEngine
setTileBBox(int, int, int, int) - Method in class jgame.JGObject
setTileCid(int, int, int, int) - Method in interface jgame.impl.JGEngineInterface
  Set the cid of a single tile using and and or mask.
setTileCid(int, int, int) - Method in interface jgame.impl.JGEngineInterface
  Set the cid of a single tile to the given value, leaving the actual tile.
setTileCid(int, int, int, int) - Method in class jgame.platform.JGEngine
setTileCid(int, int, int) - Method in class jgame.platform.JGEngine
setTiles(int, int, String[]) - Method in interface jgame.impl.JGEngineInterface
  Set a block of tiles according to the single-letter tile names in the nxm character array tilemap.
setTiles(int, int, String[]) - Method in class jgame.platform.JGEngine
setTileSettings(String, int, int) - Method in interface jgame.impl.JGEngineInterface
  Define background tile settings.
setTileSettings(String, int, int) - Method in class jgame.platform.JGEngine
setTilesMulti(int, int, String[]) - Method in interface jgame.impl.JGEngineInterface
  Set a block of tiles according to the tile names in the nxm element array tilemap.
setTilesMulti(int, int, String[]) - Method in class jgame.platform.JGEngine
setVideoSyncedUpdate(boolean) - Method in interface jgame.impl.JGEngineInterface
  Enable/disable video synced update (jogl only).
setVideoSyncedUpdate(boolean) - Method in class jgame.platform.JGEngine
setViewOffset(int, int, boolean) - Method in interface jgame.impl.JGEngineInterface
  Change offset of playfield view.
setViewOffset(int, int, boolean) - Method in class jgame.platform.JGEngine
setViewZoomRotate(double, double) - Method in interface jgame.impl.JGEngineInterface
  Zoom/rotate view.
setViewZoomRotate(double, double) - Method in class jgame.platform.JGEngine
size - Variable in class jgame.JGFont
  Font size is effectively pixel height.
snapBBoxToGrid(double, double, boolean, boolean) - Method in class jgame.JGObject
  Snap an object's tile bbox corner to grid; floats are rounded down.
snapToGrid(JGPoint, int, int) - Method in interface jgame.impl.JGEngineInterface
  Snap p to grid in case p is close enough to the grid lines.
snapToGrid() - Method in class jgame.JGObject
  Snap object to grid using the default gridsnap margin of (xspeed*gamespeed-epsilon, yspeed*gamespeed-epsilon), corresponding to the default is...Aligned margin.
snapToGrid(double, double) - Method in class jgame.JGObject
  Snap object to grid.
snapToGrid(JGPoint, int, int) - Method in class jgame.platform.JGEngine
snapToGridX(double, double) - Method in interface jgame.impl.JGEngineInterface
  Snap to grid, double version.
snapToGridX(double, double) - Method in class jgame.platform.JGEngine
snapToGridY(double, double) - Method in interface jgame.impl.JGEngineInterface
  Snap to grid, double version.
snapToGridY(double, double) - Method in class jgame.platform.JGEngine
speed - Variable in class examples.StdMazeMonster
  object's speed, overrides xspeed, yspeed.
speed - Variable in class examples.StdMazePlayer
  object's speed, overrides xspeed, yspeed.
stage - Variable in class jgame.platform.StdGame
  Game stage, which is usually the same as level, but typically goes on counting, while level may stop increasing at a certain value.
start() - Method in interface jgame.impl.JGEngineInterface
  Signal that the engine should start running.
start() - Method in class jgame.platform.JGEngine
startAnim() - Method in class jgame.JGObject
startApp() - Method in interface jgame.impl.JGEngineInterface
  Called when midlet is first initialised, or unpaused.
startApp() - Method in class jgame.platform.JGEngine
startEnterHighscore() - Method in class jgame.platform.StdGame
  Initialise enter-highscore screen.
startGame() - Method in class jgame.platform.StdGame
  Start game at level 0
startGame(int) - Method in class jgame.platform.StdGame
  Start game at given level
startgame_ingame - Variable in class jgame.platform.StdGame
  Indicates whether the InGame state should be retained when in the corresponding sequence state.
startgame_ticks - Variable in class jgame.platform.StdGame
  Number of ticks to stay in StartLevel/StartGame state, 0 = skip
startGameOver() - Method in class jgame.platform.StdGame
  Initialise game over sequence.
startHighscores() - Method in class jgame.platform.StdGame
  Initialise the highscore display.
startInGame() - Method in class jgame.platform.StdGame
  Initialisation at the start of the in-game action.
startLevelDone() - Method in class jgame.platform.StdGame
  Initialise next-level sequence.
startLifeLost() - Method in class jgame.platform.StdGame
  Initialise death sequence.
startStartGame() - Method in class jgame.platform.StdGame
  Initialise start-game sequence.
startStartLevel() - Method in class jgame.platform.StdGame
  Initialise start-level sequence.
startTitle() - Method in class jgame.platform.StdGame
  Initialise the title screen.
status_color - Variable in class jgame.platform.StdGame
  Color to use to display score
status_font - Variable in class jgame.platform.StdGame
  Font to use to display score
status_l_margin - Variable in class jgame.platform.StdGame
  Horizontal margins to be used by status displays, default 12 pixels.
status_r_margin - Variable in class jgame.platform.StdGame
  Horizontal margins to be used by status displays, default 12 pixels.
StdDungeonMonster - Class in examples
  A standard monster object that can move in 8 directions around a tile-based dungeon, which may be maze-like or contain open spaces.
StdDungeonMonster(String, boolean, double, double, int, String, boolean, boolean, int, int, double, JGObject, boolean, double) - Constructor for class examples.StdDungeonMonster
  When initialised, the object will snap to grid to the nearest free position, then it will start moving in the direction specified by home_in, random_proportion.
StdDungeonMonster(String, boolean, double, double, int, String, int) - Constructor for class examples.StdDungeonMonster
  Create static monster that just occupies space.
StdDungeonPlayer - Class in examples
  A standard object that allows the player to move in 8 directions around a tile-based dungeon, which may be maze-like or contain open spaces.
StdDungeonPlayer(String, double, double, int, String, boolean, boolean, int, int, double, int, int, int, int) - Constructor for class examples.StdDungeonPlayer
  When initialised, the object will snap to grid to the nearest free position.
StdGame - Class in jgame.platform
  A basic framework for a game.
StdGame() - Constructor for class jgame.platform.StdGame
StdMazeMonster - Class in examples
  A standard object that moves around a maze.
StdMazeMonster(String, boolean, double, double, int, String, boolean, int, int, int, double, JGObject, boolean, double) - Constructor for class examples.StdMazeMonster
  When initialised, the object will snap to grid to the nearest free position, then it will start moving in the direction specified by xdir, ydir.
StdMazePlayer - Class in examples
  A standard object that allows the player to move in 4 directions around a maze.
StdMazePlayer(String, double, double, int, String, boolean, boolean, int, double, int, int, int, int) - Constructor for class examples.StdMazePlayer
  When initialised, the object will snap to grid to the nearest free position.
StdScoring - Class in examples
  A class for displaying an animated piece of text.
StdScoring(String, double, double, double, double, int, String, JGFont, JGColor[], int) - Constructor for class examples.StdScoring
  Create animated piece of text.
stop() - Method in interface jgame.impl.JGEngineInterface
  signal that the engine should stop running and wait.
stop() - Method in class jgame.platform.JGEngine
stop_moving - Variable in class examples.StdDungeonPlayer
  Set to true to disable movement (for example, for firing).
stop_moving - Variable in class examples.StdMazePlayer
  set to true to disable movement (for example, for firing)
stopAnim() - Method in class jgame.JGObject
stopAudio(String) - Method in interface jgame.impl.JGEngineInterface
  Stop one audio channel.
stopAudio() - Method in interface jgame.impl.JGEngineInterface
  Stop all audio channels.
stopAudio(String) - Method in class jgame.platform.JGEngine
stopAudio() - Method in class jgame.platform.JGEngine
storeExists(String) - Method in interface jgame.impl.JGEngineInterface
  Checks if item exists in store
storeExists(String) - Method in class jgame.platform.JGEngine
storeReadDouble(String, double) - Method in interface jgame.impl.JGEngineInterface
  Reads double from store, use undef if ID not found
storeReadDouble(String, double) - Method in class jgame.platform.JGEngine
storeReadInt(String, int) - Method in interface jgame.impl.JGEngineInterface
  Reads int from store, use undef if ID not found
storeReadInt(String, int) - Method in class jgame.platform.JGEngine
storeReadString(String, String) - Method in interface jgame.impl.JGEngineInterface
  Reads String from store, use undef if ID not found
storeReadString(String, String) - Method in class jgame.platform.JGEngine
storeRemove(String) - Method in interface jgame.impl.JGEngineInterface
  Remove record if it exists
storeRemove(String) - Method in class jgame.platform.JGEngine
storeWriteDouble(String, double) - Method in interface jgame.impl.JGEngineInterface
  Writes double to store under given ID
storeWriteDouble(String, double) - Method in class jgame.platform.JGEngine
storeWriteInt(String, int) - Method in interface jgame.impl.JGEngineInterface
  Writes integer to store under given ID
storeWriteInt(String, int) - Method in class jgame.platform.JGEngine
storeWriteString(String, String) - Method in interface jgame.impl.JGEngineInterface
  Writes string to store under given ID
storeWriteString(String, String) - Method in class jgame.platform.JGEngine
style - Variable in class jgame.JGFont
  The style is an integer bitmask that may be PLAIN, or a bitwise union of BOLD and/or ITALIC (for example, ITALIC or BOLD|ITALIC).
suspend() - Method in class jgame.JGObject
  Suspend object until either resume is called or, if resume_in_view is true, when it comes into view.
suspend_off_view - Static variable in class jgame.JGObject
  Expiry value: suspend when out of view.
suspend_off_view_expire_off_pf - Static variable in class jgame.JGObject
  Expiry value: suspend when out of view and expire when out of playfield.

## T

tick(double) - Method in class jgame.JGTimer
  Tick function, as called by the engine implementation.
tileHeight() - Method in interface jgame.impl.JGEngineInterface
  Get the tile height in (virtual) pixels.
tileheight - Static variable in class jgame.JGObject
  The engine's tileWidth and tileHeight, stored in a local variable for extra speed.
tileHeight() - Method in class jgame.platform.JGEngine
tileIDToStr(int) - Method in interface jgame.impl.JGEngineInterface
  Convert tile ID code to tile name (as used internally).
tileIDToStr(int) - Method in class jgame.platform.JGEngine
tileStrToID(String) - Method in interface jgame.impl.JGEngineInterface
  Convert tile name to integer ID code (as used internally).
tileStrToID(String) - Method in class jgame.platform.JGEngine
tileWidth() - Method in interface jgame.impl.JGEngineInterface
  Get the tile width in (virtual) pixels.
tilewidth - Static variable in class jgame.JGObject
  The engine's tileWidth and tileHeight, stored in a local variable for extra speed.
tileWidth() - Method in class jgame.platform.JGEngine
timer - Variable in class jgame.platform.StdGame
  Animation timer.
title_bg_color - Variable in class jgame.platform.StdGame
  Color to use to display background effects behind title and messages
title_color - Variable in class jgame.platform.StdGame
  Color to use to display title and messages
title_font - Variable in class jgame.platform.StdGame
  Font to use to display title and messages
toDisplayCompatible(int, JGColor, boolean, boolean) - Method in interface jgame.JGImage
  Turn a (possibly) translucent or indexed image into a display-compatible bitmask image using the given alpha threshold and render-to-background colour, or to display-compatible translucent image.
toString() - Method in class jgame.JGPoint
toString() - Method in class jgame.JGRectangle
toString() - Method in class jgame.platform.AppConfig

## U

updateAnimation(double) - Method in class jgame.JGObject
  Do automatic animation.
updateEngineSettings() - Static method in class jgame.JGObject
  Called automatically by the engine to signal changes to pfWrap, gameSpeed, pfWidth/Height, viewX/YOfs.

## V

viewHeight() - Method in interface jgame.impl.JGEngineInterface
  Get the virtual height in pixels (not the scaled screen height)
viewheight - Static variable in class jgame.JGObject
  The engine's viewWidth and viewHeight, stored in a local variable for extra speed.
viewHeight() - Method in class jgame.platform.JGEngine
viewTilesX() - Method in interface jgame.impl.JGEngineInterface
  Get the number of tiles of view window in X direction
viewTilesX() - Method in class jgame.platform.JGEngine
viewTilesY() - Method in interface jgame.impl.JGEngineInterface
  Get the number of tiles of view window in Y direction
viewTilesY() - Method in class jgame.platform.JGEngine
viewWidth() - Method in interface jgame.impl.JGEngineInterface
  Get the virtual width in pixels (not the scaled screen width)
viewwidth - Static variable in class jgame.JGObject
  The engine's viewWidth and viewHeight, stored in a local variable for extra speed.
viewWidth() - Method in class jgame.platform.JGEngine
viewXOfs() - Method in interface jgame.impl.JGEngineInterface
  Get view offset as it will be at the next frame draw, in case we are not inside a frame draw, or the view offset as it is, when we are.
viewxofs - Static variable in class jgame.JGObject
  The engine's viewX/YOfs, stored in a local variable for extra speed.
viewXOfs() - Method in class jgame.platform.JGEngine
viewYOfs() - Method in interface jgame.impl.JGEngineInterface
  Get view offset as it will be at the next frame draw, in case we are not inside a frame draw, or the view offset as it is, when we are.
viewyofs - Static variable in class jgame.JGObject
  The engine's viewX/YOfs, stored in a local variable for extra speed.
viewYOfs() - Method in class jgame.platform.JGEngine

## W

WAIT_CURSOR - Static variable in interface jgame.impl.JGEngineInterface
  Platform-independent cursor.
waitUntilGuiClosed() - Method in class jgame.platform.AppConfig
  Block until the Gui closes.
wakeUpOnKey(int) - Method in interface jgame.impl.JGEngineInterface
  Make engine call start() when a key is pressed.
wakeUpOnKey(int) - Method in class jgame.platform.JGEngine
white - Static variable in class jgame.JGColor
width - Variable in class jgame.JGRectangle

## X

x - Variable in class jgame.JGObject
  Object position
x - Variable in class jgame.JGPoint
x - Variable in class jgame.JGRectangle
xdir - Variable in class jgame.JGObject
  Object direction, is multiplied with speed; default=1
xspeed - Variable in class jgame.JGObject
  Object speed; default=0

## Y

y - Variable in class jgame.JGObject
  Object position
y - Variable in class jgame.JGPoint
y - Variable in class jgame.JGRectangle
ydir - Variable in class jgame.JGObject
  Object direction, is multiplied with speed; default=1
yellow - Static variable in class jgame.JGColor
yspeed - Variable in class jgame.JGObject
  Object speed; default=0

A B C D E F G H I J K L M N O P R S T U V W X Y

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES