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
 
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[], boolean, boolean) - Method in interface jgame.impl.JGEngineInterface
Draw convex polygon.
drawPolygon(double[], double[], JGColor[], 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.
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() - 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 '#'.