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

accel_set_zero_menu - Variable in class jgame.platform.StdGame
flag indicating that accelerometer set zero point menu should be active.
addGameState(String) - Method in class jgame.impl.EngineLogic
 
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)
alpha_thresh - Variable in class jgame.impl.EngineLogic
 
and(int, int) - Method in class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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
 
animate(double) - Method in class jgame.impl.Animation
Does one animation step and returns current image.
Animation - Class in jgame.impl
 
Animation(String[], double) - Constructor for class jgame.impl.Animation
 
Animation(String[], double, boolean) - Constructor for class jgame.impl.Animation
 
Animation(String[], double, boolean, int) - Constructor for class jgame.impl.Animation
 
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
 
audio_dialog_at_startup - Variable in class jgame.platform.StdGame
Flag indicating that sound enable dialog should be shown at startup
audioclips - Variable in class jgame.impl.EngineLogic
clipid -} filename
audioenabled - Variable in class jgame.platform.StdGame
Flag indicating that audio is enabled

B

b - Variable in class jgame.JGColor
a value between 0 and 255
bg_color - Variable in class jgame.impl.EngineLogic
 
bg_defined - Variable in class jgame.impl.EngineLogic
the defined state of the physical cells of background, i.e.
bg_images - Variable in class jgame.impl.EngineLogic
BGImages: images to use behind transparent tiles.
black - Static variable in class jgame.JGColor
 
blue - Static variable in class jgame.JGColor
 
BOLD - Static variable in class jgame.JGFont
 

C

canvas_xofs - Variable in class jgame.impl.EngineLogic
offset of playfield wrt canvas (may be negative if we crop the playfield).
canvas_yofs - Variable in class jgame.impl.EngineLogic
offset of playfield wrt canvas (may be negative if we crop the playfield).
checkBGCollision(JGRectangle) - Method in class jgame.impl.EngineLogic
 
checkBGCollision(JGEngineInterface, int, int) - Method in class jgame.impl.EngineLogic
 
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(JGEngineInterface, int, int) - Method in class jgame.impl.EngineLogic
 
checkCollision(int, JGObject) - Method in class jgame.impl.EngineLogic
 
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
 
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.
clear() - Method in class jgame.impl.SortedArray
 
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 class jgame.impl.EngineLogic
 
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
copy() - Method in class jgame.impl.Animation
 
copyFrom(JGRectangle) - Method in class jgame.JGRectangle
Copy contents of source rectangle into this rectangle.
countObjects(String, int) - Method in class jgame.impl.EngineLogic
 
countObjects(String, int, boolean) - Method in class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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
 
crop_bottom - Variable in class jgame.impl.EngineLogic
 
crop_left - Variable in class jgame.impl.EngineLogic
 
crop_right - Variable in class jgame.impl.EngineLogic
 
crop_top - Variable in class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
defineAnimation(String, String[], double, boolean) - Method in class jgame.impl.EngineLogic
 
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(Object, String, String) - Method in class jgame.impl.EngineLogic
Associate given clipid with a filename.
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(Object, String, String, int, String, String, int, int, int, int) - Method in class jgame.impl.EngineLogic
 
defineImage(String, String, int, JGImage, String, int, int, int, int) - Method in class jgame.impl.EngineLogic
passing -1 to top,left,width,height indicates these have to be taken from the image dimensions.
defineImage(Object, String, String, int, String, String) - Method in class jgame.impl.EngineLogic
 
defineImage(String, String, int, String, int, String, int, int, int, int) - Method in class jgame.impl.EngineLogic
 
defineImage(String, String, int, String, int, String) - Method in class jgame.impl.EngineLogic
 
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(Object, String, String, int, int, int, int, int, int) - Method in class jgame.impl.EngineLogic
 
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(Object, String, String, int, String, double) - Method in class jgame.impl.EngineLogic
 
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(JGEngineInterface, String) - Method in class jgame.impl.EngineLogic
 
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 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
 
divFloor(int, int) - Method in class jgame.impl.EngineLogic
Div which always rounds downwards, also for negative numbers.
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 OpenGL or Android.
drawImage(String, double, double) - Method in interface jgame.impl.JGEngineInterface
Draw image with given ID, new version.
drawImage(String, double, double, boolean) - Method in interface jgame.impl.JGEngineInterface
Draw image with given ID, new version.
drawImage(String, double, double, boolean, JGColor, double, double, double) - Method in interface jgame.impl.JGEngineInterface
Extended version of drawImage for OpenGL or Android, new version.
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
 
drawImage(String, double, double) - Method in class jgame.platform.JGEngine
 
drawImage(String, double, double, boolean) - Method in class jgame.platform.JGEngine
 
drawImage(String, double, double, boolean, JGColor, double, double, double) - Method in class jgame.platform.JGEngine
 
drawImageString(JGEngineInterface, String, double, double, int, String, int, int, boolean) - Method in class jgame.impl.EngineLogic
 
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, boolean, JGColor[], String) - Method in interface jgame.impl.JGEngineInterface
Draw shaded or patterned 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
 
drawRect(double, double, double, double, boolean, boolean, boolean, JGColor[], String) - 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.
EngineLogic - Class in jgame.impl
Contains the platform-independent game logic.
EngineLogic(JGImage, boolean, boolean) - Constructor for class jgame.impl.EngineLogic
 
EngineLogic.BGImage - Class in jgame.impl
 
EngineLogic.BGImage(String, boolean, boolean) - Constructor for class jgame.impl.EngineLogic.BGImage
 
existsImage(String) - Method in class jgame.impl.EngineLogic
protected
existsObject(String) - Method in class jgame.impl.EngineLogic
 
existsObject(String) - Method in interface jgame.impl.JGEngineInterface
Get object if it exists.
existsObject(String) - Method in class jgame.platform.JGEngine
 
exit_message - Variable in class jgame.impl.EngineLogic
 
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

fg_color - Variable in class jgame.impl.EngineLogic
 
fields - Variable in class jgame.Highscore
 
fillBG(String) - Method in class jgame.impl.EngineLogic
 
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
 
flushAddList() - Method in class jgame.impl.EngineLogic
Add objects marked for addition.
flushRemoveList() - Method in class jgame.impl.EngineLogic
protected, remove objects marked for removal.
fps - Variable in class jgame.impl.EngineLogic
 
frameFinished() - Method in class jgame.impl.EngineLogic
Do final update actions on objects after all frame updates finished.
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 - Variable in class jgame.impl.EngineLogic
 
gamespeed - Static variable in class jgame.JGObject
The engine's gamespeed setting, stored in a local variable for extra speed.
gamestate - Variable in class jgame.impl.EngineLogic
Engine game state
gamestate_new - Variable in class jgame.impl.EngineLogic
New game states which the game has to transition to, and for which start[state] have to be called.
gamestate_nextframe - Variable in class jgame.impl.EngineLogic
New engine game state to be assigned at the next frame
gametime - Variable in class jgame.platform.StdGame
Game timer.
get(String) - Method in class jgame.impl.SortedArray
 
getAbsolutePath(Object, String) - Method in class jgame.impl.EngineLogic
Generate absolute path from relative path by prepending the package name of this class (and converting the "." to "/".
getAccelVec() - Method in interface jgame.impl.JGEngineInterface
get double[3] vector representing acceleration
getAccelVec() - Method in class jgame.platform.JGEngine
 
getAccelX() - Method in interface jgame.impl.JGEngineInterface
get accelerometer vector X coordinate
getAccelX() - Method in class jgame.platform.JGEngine
 
getAccelY() - Method in interface jgame.impl.JGEngineInterface
get accelerometer vector Y coordinate
getAccelY() - Method in class jgame.platform.JGEngine
 
getAccelZ() - Method in interface jgame.impl.JGEngineInterface
get accelerometer vector Z coordinate (positive = towards user)
getAccelZ() - Method in class jgame.platform.JGEngine
 
getAccelZeroCorrected() - Method in class jgame.platform.StdGame
get zero vector corrected acceleration vector (slow)
getAccelZeroVector() - Method in class jgame.platform.StdGame
 
getAnimation(String) - Method in class jgame.impl.EngineLogic
 
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
 
getCurrentFrame() - Method in class jgame.impl.Animation
 
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 class jgame.impl.EngineLogic
Slow version, (re)scales image on demand if original image is present.
getImage(String) - Method in interface jgame.impl.JGEngineInterface
Gets (scaled) image directly.
getImage(String) - Method in class jgame.platform.JGEngine
 
getImageBBox(String) - Method in class jgame.impl.EngineLogic
 
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).
getImageCoord(int) - Method in class jgame.impl.ImageMap
returns null when image was not loaded
getImageName() - Method in class jgame.JGObject
Get name of current image.
getImageOrig(String) - Method in class jgame.impl.EngineLogic
 
getImageQuick(String) - Method in class jgame.impl.EngineLogic
Quick version does not scale image on demand, and does not give an error when image is not defined.
getImageSize(String) - Method in class jgame.impl.EngineLogic
Gets (non-scaled) image's physical size directly.
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 class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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
 
getSubImage(String, int) - Method in class jgame.impl.EngineLogic
protected
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 class jgame.impl.EngineLogic
 
getTileCid(JGRectangle) - Method in class jgame.impl.EngineLogic
 
getTileCid(JGPoint, int, int) - Method in class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
getTileCoord(JGPoint) - Method in class jgame.impl.EngineLogic
 
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
 
getTileImage(Integer) - Method in class jgame.impl.EngineLogic
Protected.
getTileIndex(double, double) - Method in class jgame.impl.EngineLogic
 
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, JGRectangle) - Method in class jgame.impl.EngineLogic
 
getTiles(JGRectangle) - Method in class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
getTileStr(JGPoint, int, int) - Method in class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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.
gray - Static variable in class jgame.JGColor
 
green - Static variable in class jgame.JGColor
 
grey - Static variable in class jgame.JGColor
 

H

HAND_CURSOR - Static variable in interface jgame.impl.JGEngineInterface
Platform-independent cursor.
hasAccelerometer() - Method in interface jgame.impl.JGEngineInterface
returns true if device has accelerometer (currently only android)
hasAccelerometer() - Method in class jgame.platform.JGEngine
 
height - Variable in class jgame.impl.EngineLogic
Actual scaled canvas size; that is, the size of the playfield view, which may be smaller than the desired size of the game window to accommodate for integer-sized scaled tiles.
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.

I

image_orig_size - Variable in class jgame.impl.EngineLogic
JGPoint sizes of original images
ImageMap - Class in jgame.impl
 
ImageMap(JGImage, String, int, int, int, int, int, int) - Constructor for class jgame.impl.ImageMap
 
imagemaps - Variable in class jgame.impl.EngineLogic
 
images - Variable in class jgame.impl.EngineLogic
Strings -> JGImages, screen size, nonexistence indicates image is not cached and needs to be generated from images_orig
images_bbox - Variable in class jgame.impl.EngineLogic
 
images_exists - Variable in class jgame.impl.EngineLogic
indicates that image is defined even if it has no Image
images_loaded - Variable in class jgame.impl.EngineLogic
Hashtable: name to filename.
images_orig - Variable in class jgame.impl.EngineLogic
Strings -> JGImages, original size, nonexistence means there is no image
images_tile - Variable in class jgame.impl.EngineLogic
 
images_tilecid - Variable in class jgame.impl.EngineLogic
 
images_transp - Variable in class jgame.impl.EngineLogic
 
imageutil - Variable in class jgame.impl.EngineLogic
 
img - Variable in class jgame.impl.ImageMap
 
imgname - Variable in class jgame.impl.EngineLogic.BGImage
Image name (not tile name) of image to use behind transparent tiles.
impl - Variable in class jgame.JGColor
 
impl - Variable in class jgame.JGFont
Optional object that represents the font on a particular platform.
increment - Variable in class jgame.impl.Animation
 
incrementLevel() - Method in class jgame.platform.StdGame
Code for incrementing a level before transition from LevelDone to InGame is made.
inGameState(String) - Method in class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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.
initBGTiles(int, int, String) - Method in class jgame.impl.EngineLogic
protected
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.
initPF() - Method in class jgame.impl.EngineLogic
Initialise some derived pf dimension variables.
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
 
invalidateBGTiles() - Method in class jgame.impl.EngineLogic
protected
invokeUrl(String, String) - Method in interface jgame.impl.JGEngineInterface
Execute or go to URL (action depends on file type).
invokeUrl(String, String) - Method in class jgame.platform.JGEngine
 
is_exited - Variable in class jgame.impl.EngineLogic
signals that thread should die and canvas should paint exit message
is_inited - Variable in class jgame.impl.EngineLogic
signals that JGame globals are set, and exit code should null globals in JGObject
is_resizeable - Variable in class jgame.impl.EngineLogic
Platform implementation decides if window is resizeable.
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.
isAndroid() - Method in interface jgame.impl.JGEngineInterface
Are we running on Android?
isAndroid() - Method in class jgame.platform.JGEngine
 
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 class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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.impl - package jgame.impl
Package containing platform independent implementation details.
jgame.platform - package jgame.platform
Contains the platform-dependent JGame classes.
JGameError - Error in jgame.impl
Exception used for passing error conditions within JGame
JGameError(String) - Constructor for error jgame.impl.JGameError
Construct non-fatal error
JGameError(String, boolean) - Constructor for error jgame.impl.JGameError
Construct fatal or non-fatal error
JGameVersionString - Static variable in interface jgame.impl.JGEngineInterface
 
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, old style.
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, old style.
JGObject(String, boolean, double, double, int, String, double, double) - Constructor for class jgame.JGObject
Create object with given absolute speed, old style.
JGObject(String, boolean, double, double, int, String, double, double, int) - Constructor for class jgame.JGObject
Create object with given absolute speed and expiry, old style.
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, old style.
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, old style.
JGObject(String, boolean, double, double, int, String, int, int, double, double, int) - Constructor for class jgame.JGObject
Create object with given direction/speed, expiry, old style.
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, old style.
JGObject(String, boolean, double, double, int, String, int, double, double) - Constructor for class jgame.JGObject
Create object with given absolute speed, expiry, new style.
JGObject(String, boolean, double, double, int, String, int, double, double, int, int) - Constructor for class jgame.JGObject
Create object with given direction/speed, expiry, new style.
JGObject(String, boolean, double, double, int, String, int, double, double, int, int, JGRectangle) - Constructor for class jgame.JGObject
Create object with given tile bbox, direction/speed, expiry, new style.
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 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 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 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 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.
keys - Variable in class jgame.impl.SortedArray
 
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.impl.SortedArray
test method
main(String[]) - Static method in class jgame.platform.AppConfig
Edit a previously created file.
markAddObject(JGObject) - Method in class jgame.impl.EngineLogic
 
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
 
max_aspect - Variable in class jgame.impl.EngineLogic
 
maxframeskip - Variable in class jgame.impl.EngineLogic
 
min_aspect - Variable in class jgame.impl.EngineLogic
 
min_scale_fac - Variable in class jgame.impl.EngineLogic
min_scale_fac is min (scalex,scaley).
moduloFloor(double, int) - Method in class jgame.impl.EngineLogic
Modulo according to a regular modulo space, resulting in a value that is always greater than 0, float version.
moduloFloor(int, int) - Method in class jgame.impl.EngineLogic
Modulo according to a regular modulo space, resulting in a value that is always greater than 0.
moduloPos() - Method in class jgame.JGObject
Modulo x/y position according to wrap settings.
moduloXPos(double) - Method in class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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 jgame.JGObject
Override to implement automatic move; default is do nothing.
moveObjects(JGEngineInterface, String, int) - Method in class jgame.impl.EngineLogic
 
moveObjects(JGEngineInterface) - Method in class jgame.impl.EngineLogic
 
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
 
msg_font - Variable in class jgame.impl.EngineLogic
 

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.
NO_CURSOR - Static variable in interface jgame.impl.JGEngineInterface
Platform-independent cursor.
nrtilesx - Variable in class jgame.impl.EngineLogic
Total number of tiles on the playfield.
nrtilesy - Variable in class jgame.impl.EngineLogic
Total number of tiles on the playfield.

O

objects - Variable in class jgame.impl.EngineLogic
Note: objects lock is used to synchronise object updating between repaint thread and game thread.
offscreen_margin_x - Variable in class jgame.impl.EngineLogic
 
offscreen_margin_y - Variable in class jgame.impl.EngineLogic
 
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.
optsAddBoolean(String, String, String, boolean) - Method in interface jgame.impl.JGEngineInterface
Adds boolean that can be configured with a checkbox.
optsAddBoolean(String, String, String, boolean) - Method in class jgame.platform.JGEngine
 
optsAddEnum(String, String, String, String[], int) - Method in interface jgame.impl.JGEngineInterface
Adds enum that can be configured with radio buttons.
optsAddEnum(String, String, String, String[], int) - Method in class jgame.platform.JGEngine
 
optsAddKey(String, String, String, int) - Method in interface jgame.impl.JGEngineInterface
Adds "key" option that can be configured by selecting a key or button on the device.
optsAddKey(String, String, String, int) - Method in class jgame.platform.JGEngine
 
optsAddNumber(String, String, String, int, double, double, double, double) - Method in interface jgame.impl.JGEngineInterface
adds (int or float) number that can be configured with a slider.
optsAddNumber(String, String, String, int, double, double, double, double) - Method in class jgame.platform.JGEngine
 
optsAddString(String, String, String, int, boolean, String) - Method in interface jgame.impl.JGEngineInterface
Adds String that can be configured by typing text.
optsAddString(String, String, String, int, boolean, String) - Method in class jgame.platform.JGEngine
 
optsAddTitle(String) - Method in interface jgame.impl.JGEngineInterface
Adds title to be displayed above subsequent items.
optsAddTitle(String) - Method in class jgame.platform.JGEngine
 
optsClear() - Method in interface jgame.impl.JGEngineInterface
Clear all previous option definitions.
optsClear() - Method in class jgame.platform.JGEngine
 
orange - Static variable in class jgame.JGColor
 
orTileCid(int, int, int) - Method in class jgame.impl.EngineLogic
 
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
 
outline_colour - Variable in class jgame.impl.EngineLogic
 
outline_thickness - Variable in class jgame.impl.EngineLogic
 

P

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
 
pendingxofs - Variable in class jgame.impl.EngineLogic
Pending pixel offset of visible view on playfield, to be handled at the next frame draw.
pendingyofs - Variable in class jgame.impl.EngineLogic
Pending pixel offset of visible view on playfield, to be handled at the next frame draw.
pf_wrapshiftx - Variable in class jgame.impl.EngineLogic
 
pf_wrapshifty - Variable in class jgame.impl.EngineLogic
 
pf_wrapx - Variable in class jgame.impl.EngineLogic
Wrap-around playfield
pf_wrapy - Variable in class jgame.impl.EngineLogic
Wrap-around playfield
pfheight - Variable in class jgame.impl.EngineLogic
Derived info (playfield size in logical pixels)
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
 
pfheight_half - Variable in class jgame.impl.EngineLogic
Derived info, used for modulo calculation
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 - Variable in class jgame.impl.EngineLogic
Derived info (playfield size in logical pixels)
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
 
pfwidth_half - Variable in class jgame.impl.EngineLogic
Derived info, used for modulo calculation
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
 
pingpong - Variable in class jgame.impl.Animation
 
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.
put(SortedArray) - Method in class jgame.impl.SortedArray
 
put(String, Object) - Method in class jgame.impl.SortedArray
 

R

r - Variable in class jgame.JGColor
a value between 0 and 255
random(double, double) - Method in class jgame.impl.EngineLogic
 
random(double, double, double) - Method in class jgame.impl.EngineLogic
 
random(int, int, int) - Method in class jgame.impl.EngineLogic
 
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.JGObject
 
random(double, double, double) - Method in class jgame.JGObject
 
random(int, int, int) - Method in class jgame.JGObject
 
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
 
readline(InputStreamReader) - Static method in class jgame.impl.EngineLogic
Readline as in BufferedReader.
red - Static variable in class jgame.JGColor
 
registerTimer(JGTimer) - Method in class jgame.impl.EngineLogic
 
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(String) - Method in class jgame.impl.SortedArray
 
remove(SortedArray) - Method in class jgame.impl.SortedArray
 
remove() - Method in class jgame.JGObject
Mark object for removal, ignore if already removed.
removeAllTimers() - Method in class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
removeObjects(String, int, boolean) - Method in class jgame.impl.EngineLogic
 
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
 
render_bg_color - Variable in class jgame.impl.EngineLogic
 
repaintBG(JGEngineInterface) - Method in class jgame.impl.EngineLogic
Repaint those parts of BG which are undefined according to bg_defined.
requestGameFocus() - Method in interface jgame.impl.JGEngineInterface
Call this to get focus.
requestGameFocus() - Method in class jgame.platform.JGEngine
 
reset() - Method in class jgame.impl.Animation
 
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.
scaledtilex - Variable in class jgame.impl.EngineLogic
Size of one tile, scaled
scaledtiley - Variable in class jgame.impl.EngineLogic
Size of one tile, scaled
scalePos(double, double, boolean) - Method in class jgame.impl.EngineLogic
 
scalePos(double, double, double, double, boolean) - Method in class jgame.impl.EngineLogic
returns null if r is null
scalePos(JGRectangle, boolean) - Method in class jgame.impl.EngineLogic
returns null if r is null
scaleXPos(double, boolean) - Method in class jgame.impl.EngineLogic
The scale methods also take care of wraparound modulo calculations.
scaleYPos(double, boolean) - Method in class jgame.impl.EngineLogic
 
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, int, boolean, boolean) - Method in class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
setTile(JGPoint, String) - Method in class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
setTileCid(int, int, int) - Method in class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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.impl.SortedArray
 
size - Variable in class jgame.JGFont
Font size is effectively pixel height.
skipx - Variable in class jgame.impl.ImageMap
 
skipy - Variable in class jgame.impl.ImageMap
 
smooth_magnify - Variable in class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
 
snapToGridY(double, double) - Method in interface jgame.impl.JGEngineInterface
Snap to grid, double version.
snapToGridY(double, double) - Method in class jgame.platform.JGEngine
 
SortedArray - Class in jgame.impl
Data structure that can be used as replacement for Hashtable<String> for fast sorted enumeration of its elements.
SortedArray(int) - Constructor for class jgame.impl.SortedArray
 
speed - Variable in class jgame.impl.Animation
 
splitList(String) - Static method in class jgame.impl.EngineLogic
Split a ';' separated list of words
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 class jgame.impl.Animation
 
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.
StdGame - Class in jgame.platform
A basic framework for a game.
StdGame() - Constructor for class jgame.platform.StdGame
 
stop() - Method in class jgame.impl.Animation
 
stop() - Method in interface jgame.impl.JGEngineInterface
signal that the engine should stop running and wait.
stop() - Method in class jgame.platform.JGEngine
 
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.
tickTimers() - Method in class jgame.impl.EngineLogic
protected
tilecidmap - Variable in class jgame.impl.EngineLogic
 
tileHeight() - Method in class jgame.impl.EngineLogic
 
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 class jgame.impl.EngineLogic
Convert tile ID code to tile name (as used internally).
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
 
tilemap - Variable in class jgame.impl.EngineLogic
 
tiles - Variable in class jgame.impl.EngineLogic.BGImage
 
tileStrToID(String) - Method in class jgame.impl.EngineLogic
Convert tile name to integer ID code (as used internally).
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 class jgame.impl.EngineLogic
 
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
 
tilex - Variable in class jgame.impl.EngineLogic
Size of one tile
tilex - Variable in class jgame.impl.ImageMap
 
tilexofs - Variable in class jgame.impl.EngineLogic
Tile offset of top left tile on background image; is derived from x/yofs
tiley - Variable in class jgame.impl.EngineLogic
Size of one tile
tiley - Variable in class jgame.impl.ImageMap
 
tileyofs - Variable in class jgame.impl.EngineLogic
Tile offset of top left tile on background image; is derived from x/yofs
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.
tokenizeString(String, char) - Static method in class jgame.impl.EngineLogic
Replacement for stringTokenizer.
toString() - Method in error jgame.impl.JGameError
 
toString() - Method in class jgame.impl.SortedArray
 
toString() - Method in class jgame.JGPoint
 
toString() - Method in class jgame.JGRectangle
 
toString() - Method in class jgame.platform.AppConfig
 

U

undefineImage(String) - Method in class jgame.impl.EngineLogic
Remove all information associated with image, including any cached image data.
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.
updateViewOffset() - Method in class jgame.impl.EngineLogic
Update offset according to pending offset.

V

values - Variable in class jgame.impl.SortedArray
 
view_initialised - Variable in class jgame.impl.EngineLogic
indicates if setCanvasSettings was called.
viewHeight() - Method in class jgame.impl.EngineLogic
 
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
 
viewnrtilesx - Variable in class jgame.impl.EngineLogic
Number of tiles in view (visible window).
viewnrtilesy - Variable in class jgame.impl.EngineLogic
Number of tiles in view (visible window).
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 class jgame.impl.EngineLogic
 
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.impl.EngineLogic
Actual scaled canvas size; that is, the size of the playfield view, which may be smaller than the desired size of the game window to accommodate for integer-sized scaled tiles.
width - Variable in class jgame.JGRectangle
 
winheight - Variable in class jgame.impl.EngineLogic
Desired width/height of game window; 0 is not initialised yet.
winwidth - Variable in class jgame.impl.EngineLogic
Desired width/height of game window; 0 is not initialised yet.
wrapx - Variable in class jgame.impl.EngineLogic.BGImage
 
wrapy - Variable in class jgame.impl.EngineLogic.BGImage
 

X

x - Variable in class jgame.JGObject
Object position
x - Variable in class jgame.JGPoint
 
x - Variable in class jgame.JGRectangle
 
x_scale_fac - Variable in class jgame.impl.EngineLogic
min_scale_fac is min (scalex,scaley).
xdir - Variable in class jgame.JGObject
Object direction, is multiplied with speed; default=1
xofs - Variable in class jgame.impl.EngineLogic.BGImage
 
xofs - Variable in class jgame.impl.EngineLogic
Pixel offset of visible view on playfield.
xofs - Variable in class jgame.impl.ImageMap
 
xofs_mid - Variable in class jgame.impl.EngineLogic
Derived offset information, useful for modulo.
xofs_scaled - Variable in class jgame.impl.EngineLogic
Derived offset information, useful for scaling.
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
 
y_scale_fac - Variable in class jgame.impl.EngineLogic
min_scale_fac is min (scalex,scaley).
ydir - Variable in class jgame.JGObject
Object direction, is multiplied with speed; default=1
yellow - Static variable in class jgame.JGColor
 
yofs - Variable in class jgame.impl.EngineLogic.BGImage
 
yofs - Variable in class jgame.impl.EngineLogic
Pixel offset of visible view on playfield.
yofs - Variable in class jgame.impl.ImageMap
 
yofs_mid - Variable in class jgame.impl.EngineLogic
Derived offset information, useful for modulo.
yofs_scaled - Variable in class jgame.impl.EngineLogic
Derived offset information, useful for scaling.
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