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

A

absPos(ScreenFrames, Point, int) - Static method in class JTP.Geom
Calculates absolute location (in pixels) of centre of tile face.
accept(File) - Method in class JTP.LevelSetFilter
Determines whether a particular file is to be listed or not
activateMediaMerge() - Method in class JTP.GamePlayer
Indicate that the MediaMerge tile should be shown in this levelset.
activateTestMode() - Method in class JTP.GamePlayer
Indicate that the editor originating test mode is active Note: This is reset each time a new levelset is loaded
activeKey() - Method in class JTP.PlayerKeys
Returns active key.
activePlayerDead() - Method in class JTP.LevelPlayer
Indicates whether the currently active player is dead or not
addHighScore(boolean, int, String) - Method in class JTP.Progress
Adds score to the highscore table.
addLevel() - Method in class JTP.LevelSet
Creates and adds a new level to this LevelSet.
addLevel(Level) - Method in class JTP.LevelSet
Adds a new level manually.
allowsDirection(int) - Method in class JTP.ArwTile
Check whether a particular direction is not restricted.
areaUnlocked(int) - Static method in class JTP.ProgressHandler
Checks whether a particular area has been unlocked.
ARROW - Static variable in class JTP.Tile
Only allows movement in certain directions.
ARROW_DOWN - Static variable in class JTP.Editor
 
ARROW_LEFT - Static variable in class JTP.Editor
 
ARROW_RIGHT - Static variable in class JTP.Editor
 
ARROW_UP - Static variable in class JTP.Editor
 
ArwTile - Class in JTP
Direction restricted tile (startable).
ArwTile(int, boolean, boolean[]) - Constructor for class JTP.ArwTile
Constructs a new ArwTile instance with the given attributes.
automaticMovesLeft() - Method in class JTP.GamePlayer
Returns true if there are any automatic moves left
automaticMovesLeft(int) - Method in class JTP.LevelPlayer
Returns whether the active player has automatic moves left given the last direction they moved in
automaticMovesLeft() - Method in class JTP.Screen
Used by KeyHandler class to decide whether another move should be executed.
AUTOSTART - Static variable in class JTP.GamePlayer
 
autoStart() - Method in class JTP.KeyHandler
To be called at start of level (to perform automatic moves, if any)

C

calcCharOnTileOffset(char, Font, ScreenFrames, Graphics2D) - Static method in class JTP.Geom
Calculates offset for drawing a single character on the face of a tile
calcMaxLineDimensions(String[], Font, Graphics2D) - Static method in class JTP.Geom
Calculates maximum line height and width for a set lines of text.
calcTextBounds(String, Font, Graphics2D) - Static method in class JTP.Geom
Calculates space taken up by given string and its offset
calcTileClip(ScreenFrames, Point) - Static method in class JTP.Geom
Calculates maximum clip area for one tile
calcTilesClip(ScreenFrames, Point, Point) - Static method in class JTP.Geom
Calculates maximum clip area for two tiles
cancel() - Method in class JTP.SplashMessage
Cancels any currently requested messages.
canStillMove(boolean) - Method in class JTP.LevelPlayer
Calculates whether the player can still move or not
centered(JFrame) - Static method in class JTP.Main
Tries to center the frame is possible.
Challenge - Class in JTP
Generates levels for one and two-player challenge modes.
Challenge() - Constructor for class JTP.Challenge
 
clear() - Method in class JTP.Level
Clears a level.
clear() - Method in class JTP.PlayerKeys
Empties currently held down key cache.
clickResult(int, Component) - Method in class JTP.Editor
Handles mouse (up) events based on last mouse location from last updateUI call.
clickResult(int) - Method in class JTP.GamePlayer
Indicate a mouse button has been pressed.
clickResult(Point) - Method in class JTP.Highscores
 
clickResult(Point) - Method in class JTP.LevelChooser
 
clickResult(Point) - Method in class JTP.Menu
Determine whether a menu button has been clicked (to be called after mousePressed()
CLOSE - Static variable in class JTP.Editor
 
CLOSE - Static variable in class JTP.Highscores
 
CLOSE - Static variable in class JTP.LevelChooser
 
COOP - Static variable in class JTP.GamePlayer
Cooperative two player mode
COOP - Static variable in class JTP.Highscores
 
COOP - Static variable in class JTP.LevelChooser
 
COOP - Static variable in class JTP.Progress
Cooperative.
copy() - Method in class JTP.ArwTile
Creates an exact (non-shallow) copy of the current tile
copy() - Method in class JTP.GrvTile
Creates an exact (non-shallow) copy of the current tile
copy() - Method in class JTP.IceTile
Creates an exact (non-shallow) copy of the current tile
copy() - Method in class JTP.NrmTile
Creates an exact (non-shallow) copy of the current tile
copy() - Method in class JTP.Tile
Creates an exact (non-shallow) copy of the current tile
copy() - Method in class JTP.TptTile
Creates an exact (non-shallow) copy of the current tile
cpMessage - Static variable in class JTP.Main
Copyright message
CTRL_DEFAULT - Static variable in class JTP.ScreenFrames
 
CTRL_EDITOR - Static variable in class JTP.ScreenFrames
 
CTRL_NONE - Static variable in class JTP.ScreenFrames
 
CTRL_P_ALTERNATE - Static variable in class JTP.ScreenFrames
 
CTRL_P_CHALLENGE - Static variable in class JTP.ScreenFrames
 
CTRL_P_NORMAL - Static variable in class JTP.ScreenFrames
 
CTRL_P_SIMULTANEOUS - Static variable in class JTP.ScreenFrames
 
currentFrameMode() - Method in class JTP.GamePlayer
Returns what borders (frames) are being rendered
cursorChange() - Method in class JTP.Editor
Indicates whether the cursor should be change (e.g.
cursorChange(boolean) - Method in class JTP.Editor
Indicates whether the cursor should be change (e.g.
CUSTOM - Static variable in class JTP.LevelChooser
 
CUSTOM_DEATH_MESSAGE_LEVEL - Static variable in class JTP.GamePlayer
 

D

dealWithScore(boolean, int) - Method in class JTP.Highscores
Decide whether the given score needs to be enterd in the highscore table
decHeight() - Method in class JTP.GameTile
Decreases height of this tile by one.
decHeight() - Method in class JTP.StartableTile
Reduces height of pile by one.
decHeight() - Method in class JTP.Tile
Reduces height of pile by one (to at most 1).
DEFAULT - Static variable in class JTP.SplashMessage
Default display length.
develModeOn() - Static method in class JTP.Main
Indicates whether development mode has been turned on.
disable() - Method in class JTP.GameTile
Sets disable flag for this tile.
display(Rectangle, Graphics2D) - Method in class JTP.SplashMessage
Draws the requested message to the screen.
DOWN - Static variable in class JTP.ArwTile
Indicates downward/south direction.
DOWN - Static variable in class JTP.GamePlayer
 
draw(Graphics2D) - Method in class JTP.GamePlayer
Depending on situation this will either render only the timer (i.e.
drawAll(Graphics2D) - Method in class JTP.Editor
Draws all editor components and grid.
drawAll(Graphics2D) - Method in class JTP.GamePlayer
 
drawAll(Graphics2D) - Method in class JTP.Highscores
 
drawAll(Graphics2D) - Method in class JTP.LevelChooser
 
drawAll(Graphics2D) - Method in class JTP.Menu
 
drawAll(boolean, Graphics2D) - Method in class JTP.ScreenFrames
Draws all frames (as currently configured)
drawAll(boolean, boolean, Graphics2D) - Method in class JTP.ScreenFrames
Draws all frames (as currently configured)
drawChar(char, int, int, Color, Graphics2D) - Static method in class JTP.Geom
Draws a character at the given location in the specified color
drawClickUpdate(Graphics2D) - Method in class JTP.Editor
Draws update after mouse click (call after clickResult)
drawGrid(Rectangle, int, int, Color, Graphics2D) - Static method in class JTP.Geom
Draws grid in editor
drawGridFrame(boolean, Graphics2D) - Method in class JTP.ScreenFrames
Only draws the frame around tile grid
drawGTiles(GameTile[][], Point, Point, boolean, Graphics2D) - Method in class JTP.TilePainter
Renders the given tiles (in-game).
drawImage(BufferedImage, Rectangle, Color, Graphics2D) - Static method in class JTP.Geom
Renders an image at the specified location, clearing the background first with the specified color.
drawKeyUpdate(Graphics2D) - Method in class JTP.Editor
Draws update required after keypress (call after keyUpdate)
drawLineRel(ScreenFrames, Point, int, Point, int, Color, Graphics2D) - Static method in class JTP.Geom
Draws a line between tile locations on grid (relative positioning dependant on tile height)
drawMenuString(String, boolean, Rectangle, Graphics2D) - Method in class JTP.TilePainter
Draws a string with each letter on a separate tile.
drawNumber(int, int, int, Color, Graphics2D) - Static method in class JTP.Geom
Draws a number at the given location in the specified color
drawRect(Rectangle, Color, Graphics2D) - Static method in class JTP.Geom
Draws a rectangle.
drawRoundRect(Rectangle, int, Color, Stroke, Graphics2D) - Static method in class JTP.Geom
Draws a rectangle with rounded edges.
drawScoreString(String, boolean, boolean, int, int, Graphics2D) - Method in class JTP.TilePainter
Variation of drawMenuString.
drawString(String, int, int, Color, Graphics2D) - Static method in class JTP.Geom
Draws a string at the given location in the specified color
drawString(String, Point, Color, Graphics2D) - Static method in class JTP.Geom
Draws a string at the given location in the specified color
drawString(String, Point, Point, Color, Graphics2D) - Static method in class JTP.Geom
Draws a string at the given location with an offset.
drawTiles(Tile[][], Point, Point, Point, Point, boolean, Graphics2D) - Method in class JTP.TilePainter
Renders the given tiles (editor).
drawTiles(Tile[][], Rectangle, int, Point, Point, Point, Point, boolean, boolean, boolean, Graphics2D) - Method in class JTP.TilePainter
Renders the given tiles (editor/level-chooser).
drawUpdate(Graphics2D) - Method in class JTP.Editor
Draw any required changes after mouse movement (call after updateUI
drawUpdate(Graphics2D) - Method in class JTP.Highscores
 
drawUpdate(Graphics2D) - Method in class JTP.LevelChooser
 
drawUpdate(Graphics2D) - Method in class JTP.Menu
 

E

E_ARROW_DOWN - Static variable in class JTP.Images
 
E_ARROW_LEFT - Static variable in class JTP.Images
 
E_ARROW_RIGHT - Static variable in class JTP.Images
 
E_ARROW_UP - Static variable in class JTP.Images
 
E_CLEAR - Static variable in class JTP.Images
 
E_CLOSE - Static variable in class JTP.Images
 
E_LEVEL_BACK - Static variable in class JTP.Images
 
E_LEVEL_FIRST - Static variable in class JTP.Images
 
E_LEVEL_FORWARD - Static variable in class JTP.Images
 
E_LEVEL_LAST - Static variable in class JTP.Images
 
E_LEVEL_MESSAGES - Static variable in class JTP.Images
 
E_LEVEL_NUMBER_BG - Static variable in class JTP.Images
 
E_LEVEL_SWAP - Static variable in class JTP.Images
 
E_LEVEL_TIME - Static variable in class JTP.Images
 
E_PLAY - Static variable in class JTP.Images
 
E_SAVE - Static variable in class JTP.Images
 
E_SAVECLOSE - Static variable in class JTP.Images
 
Editor - Class in JTP
Defines function and rendering of the editor component.
Editor(Images, ScreenFrames, TilePainter, int, int, int, float, Color, Font, Color, Color, Color, Graphics2D, String, String) - Constructor for class JTP.Editor
Creates a new Editor instance with the specified parameters.
EDITOR - Static variable in class JTP.ProgressHandler
Progress milestone: Editor
EDITOR_BACK - Static variable in class JTP.Menu
 
EDITOR_LOAD - Static variable in class JTP.IO
LevelSet will be loaded in editor.
EDITOR_LOAD - Static variable in class JTP.Menu
 
EDITOR_NEW - Static variable in class JTP.IO
LevelSet will be created in editor.
EDITOR_NEW - Static variable in class JTP.Menu
 
editorLoadLevelSet(Editor, String, JOptionPane, Screen, Graphics2D) - Static method in class JTP.IO
Tries to load the given file for editing.
enableSpaceKey() - Method in class JTP.KeyHandler
To be called when a popup message is shown in-game so it can be cancelled via keyboard.
enableUnlocking() - Method in class JTP.GamePlayer
Indicate that this levelset's levels have to be unlocked Note: Unlock status is reset each time a new levelset is loaded
equalsApartFromHeight(Tile) - Method in class JTP.ArwTile
Used to compare two tiles, ignoring their respective heights.
equalsApartFromHeight(Tile) - Method in class JTP.GrvTile
Used to compare two tiles, ignoring their respective heights.
equalsApartFromHeight(Tile) - Method in class JTP.IceTile
Used to compare two tiles, ignoring their respective heights.
equalsApartFromHeight(Tile) - Method in class JTP.NrmTile
Used to compare two tiles, ignoring their respective heights.
equalsApartFromHeight(Tile) - Method in class JTP.Tile
Used to compare two tiles, ignoring their respective heights.
equalsApartFromHeight(Tile) - Method in class JTP.TptTile
Used to compare two tiles, ignoring their respective heights.
EXIT - Static variable in class JTP.LevelChooser
 

F

FAILED_TO_SAVE - Static variable in class JTP.ProgressHandler
Indicates progress data could not be saved.
fillRect(Rectangle, Color, Graphics2D) - Static method in class JTP.Geom
Draws a filled rectangle.
fillRect(Rectangle, int, int, Color, Graphics2D) - Static method in class JTP.Geom
Modified version of fillRect() for use in editor for correct cropping
fillRectMax(Rectangle, Color, Graphics2D) - Static method in class JTP.Geom
Fills a rectangle exactly as specified in Graphics2D.fillRect()
fillRectOversize(Rectangle, Color, Graphics2D) - Static method in class JTP.Geom
Like fillRectMax except offset by one pixel horizontally and vertically, i.e.: x - 1, y - 1, width + 2, height + 2.
fillRoundRect(Rectangle, int, Color, Graphics2D) - Static method in class JTP.Geom
Fills a rectangle with rounded edges.
FINISHED - Static variable in class JTP.LevelPlayer
moveOne return code indicating the level has been completed
FINISHED_LEVEL - Static variable in class JTP.GamePlayer
 
FINISHED_SET - Static variable in class JTP.GamePlayer
 
FIRST - Static variable in class JTP.LevelChooser
 

G

GAME_1P - Static variable in class JTP.KeyHandler
Handling mode: Only Player 1 keys allowed
GAME_2P - Static variable in class JTP.KeyHandler
Handling mode: Both Player keys allowed
GAME_LOAD - Static variable in class JTP.IO
LevelSet will be loaded for play.
gameLoadLevelSet(GamePlayer, String, JOptionPane, Screen, int, Graphics2D) - Static method in class JTP.IO
Tries to load the given file for play.
gameLoadLevelSet(GamePlayer, URL, JOptionPane, Screen, int, Graphics2D) - Static method in class JTP.IO
Tries to load the given file for play.
gameMode() - Method in class JTP.GamePlayer
Returns the currently set game mode
GAMEOVER - Static variable in class JTP.GamePlayer
 
GamePlayer - Class in JTP
Defines function and rendering of the gameplay component.
GamePlayer(Images, ScreenFrames, TilePainter, Color, Font, int, int, Graphics2D, String, String, SplashMessage, Screen) - Constructor for class JTP.GamePlayer
Creates a new GamePlayer instance with the given attributes
GameTile - Class in JTP
Wrapper for Tile used in-game.
GameTile(Tile) - Constructor for class JTP.GameTile
Creates a new GameTile instance with the given from the given Tile.
GameTimer - Class in JTP
Class for controlling timed levels.
GameTimer(String, Screen, GamePlayer) - Constructor for class JTP.GameTimer
Constructs a new GameTimer instance with the given attributes.
genLevel(Dimension, Point, int, int, boolean, Random) - Static method in class JTP.Challenge
Generates a new level with the given attributes.
genSet(int, int, int, Dimension, Point, int, int, boolean) - Static method in class JTP.Challenge
Generates a new set of levels with the given attributes.
genSet(int, int, int, int, int, int, int, boolean) - Static method in class JTP.Challenge
Generates a new set of levels with the given attributes and a square grid.
Geom - Class in JTP
Geometry related support methods
Geom() - Constructor for class JTP.Geom
 
get3DImage(int, boolean) - Method in class JTP.Images
Returns the matching "3D" wall for a tile of the given index.
getAccumulatedTime() - Method in class JTP.GameTimer
Returns time added up by using incrementAccumulatedTime() method for active timer.
getAccumulatedTime() - Method in class JTP.TimeStore
Returns time added up by using incrementAccumulatedTime() method.
getAccumulatedTimeSeconds() - Method in class JTP.GameTimer
Returns time added up by using incrementAccumulatedTime() method, in seconds, for active timer.
getAccumulatedTimeSeconds() - Method in class JTP.TimeStore
Returns time added up by using incrementAccumulatedTime() method, in seconds.
getActivePosition() - Method in class JTP.LevelPlayer
Returns position of currently active player
getAndClearOneOffKey() - Method in class JTP.PlayerKeys
Returns the currently set one-off key and clears it.
getAreaUnlockPoint(int) - Static method in class JTP.ProgressHandler
Returns level which unlocks a certain area.
getBgColor() - Method in class JTP.ScreenFrames
Returns currently used background colour
getBorderSpacing() - Method in class JTP.ScreenFrames
Returns border spacing used (between frames and screen border)
getChosenLevel() - Method in class JTP.LevelChooser
Returns currently highlighted level
getCtrlFrameColor() - Method in class JTP.ScreenFrames
Returns colour of the control frame
getCtrlFrameType() - Method in class JTP.ScreenFrames
Returns the type of control frame in use
getCtrlOffset() - Method in class JTP.ScreenFrames
Returns default location of control frame
getDescription() - Method in class JTP.LevelSetFilter
Provides description for this file filter
getDestination() - Method in class JTP.TptTile
Returns destination of this teleport tile as a Point.
getDestination(Tile) - Static method in class JTP.TptTile
Returns destination of a teleport tile as a Point.
getDisplayLength() - Method in class JTP.SplashMessage
Returns lenght for which the requested message will be displayed.
getDrawArea() - Method in class JTP.ScreenFrames
Returns size of draw area.
getEditorCtrlOffset() - Method in class JTP.ScreenFrames
Returns location of control frames as used in editor
getEditorImageCount() - Method in class JTP.Images
Returns the total number of editor image resources (excluding common ones)
getEditorImageOffset() - Method in class JTP.Images
Returns starting offset for the editor image group.
getFrameThickness() - Method in class JTP.ScreenFrames
Returns thickness rounded up to the nearest integer (pixel)
getGameCtrlOffset(int) - Method in class JTP.ScreenFrames
Returns location of a sub-control frame (in-game only)
getGameMode() - Method in class JTP.GamePlayer
Returns the current game mode
getGameTiles() - Method in class JTP.LevelPlayer
Used by GamePlayer to directly access the game board (for rendering)
getGridArea() - Method in class JTP.ScreenFrames
Returns dimensions of the tile grid.
getGridOffset() - Method in class JTP.ScreenFrames
Returns location of tile grid frame
getHeight() - Method in class JTP.GameTile
Returns the height of this tile pile.
getHeight() - Method in class JTP.Tile
Returns height of this pile.
getHeightPerLevel() - Method in class JTP.ScreenFrames
Returns height per tile
getIcon(int) - Method in class JTP.Images
Returns the image resource with the given (absolute) index in icon form.
getImage(int, boolean) - Method in class JTP.Images
Returns the image resource associated with the given index.
getImage(int) - Method in class JTP.Images
Returns the image resource associated with the given index.
getImageData() - Method in class JTP.Screen
Provides access to global image resources
getImages(Class, String, String, String, String[], String[], int) - Static method in class JTP.ImageLoader
Loads a set of images.
getInText() - Method in class JTP.Level
Get the level start message
getInvalidLevelIndices() - Method in class JTP.LevelSet
Returns indices of invalid levels in this LevelSet.
getKeyHandler() - Method in class JTP.Screen
Allows parent class (JFrame) to forward key events to handler of this class.
getLevel(int) - Method in class JTP.LevelSet
Provides direct access to a level in this set.
getLevelSet() - Method in class JTP.GamePlayer
Returns the active levelset
getMaxString(String, String, int, Font, Graphics2D) - Static method in class JTP.Geom
Calculates maximum substring which can fit in the given absolute width
getMousePosition() - Method in class JTP.Screen
Overloaded from Component class.
getName() - Method in class JTP.LevelSet
Returns name of this LevelSet.
getName(boolean, int) - Method in class JTP.Progress
Retrieves name associated with a score from the highscore table.
getOffset() - Method in class JTP.ScreenFrames
Returns offset from top-left window corner where to render tile grid (not frame)
getOtherImage(int, boolean) - Method in class JTP.Images
Returns the image resource assicated with the given index (relative to the "other" image group).
getOtherImageCount() - Method in class JTP.Images
Returns the total number of other (common) image resources.
getOtherImageOffset() - Method in class JTP.Images
Returns starting offset for the other (common) image group.
getOutText() - Method in class JTP.Level
Get the level end message
getP1Position() - Method in class JTP.LevelPlayer
Returns the grid position of player 1
getP2Position() - Method in class JTP.LevelPlayer
Returns the grid position of player 2
getProgressFilePath() - Static method in class JTP.ProgressHandler
Returns location of progress file.
getReachedLevel(boolean) - Method in class JTP.Progress
Returns progress made in the levelset.
getReachedLevel(boolean) - Static method in class JTP.ProgressHandler
Returns which level has been reached.
getRenderQuality() - Method in class JTP.ScreenFrames
Used by other game components to determine how they should render.
getRequestMessage(int, boolean) - Static method in class JTP.ProgressHandler
Creates message informing player which level they have to beat to unlock a particular area.
getScore() - Method in class JTP.GamePlayer
Returns total score up to now Note: Scoring status is reset each time a new levelset is loaded
getScore(boolean, int) - Method in class JTP.Progress
Retrieves score from the highscore table.
getSize() - Method in class JTP.LevelSet
Returns number of levels stored in this LevelSet.
getSize() - Method in class JTP.Screen
Returns size of whole (scaled) game screen.
getStart() - Method in class JTP.Level
Returns 1st player start location
getStart2() - Method in class JTP.Level
Returns 2nd player start location
getState() - Method in class JTP.GamePlayer
Returns the current game state (e.g.
getTestSet() - Method in class JTP.Editor
Returns levelset for testing (so can be loaded into GamePlayer .
getTile() - Method in class JTP.GameTile
Returns the tile within this wrapper.
getTileButtonWidth(String, boolean, ScreenFrames) - Static method in class JTP.Geom
Calculates width required for a button rendered with tiles
getTileImageCount() - Method in class JTP.Images
Returns the total number of tile image resources (excluding "3D" walls)
getTileImageOffset() - Method in class JTP.Images
Returns starting offset for the tile image group.
getTiles() - Method in class JTP.Level
Direct access to tile array.
getTileSize() - Method in class JTP.ScreenFrames
Returns width/height of tiles
getTimeLimit() - Method in class JTP.Level
Get the time limit of this level
getTimeLimit() - Method in class JTP.TimeStore
Returns time time limit set.
getType() - Method in class JTP.GameTile
Returns the type of tile.
getType() - Method in class JTP.Tile
Returns the type of tile.
getUnlockMessage(int) - Static method in class JTP.ProgressHandler
Returns string representation of unlocked area.
getUserFile(JFileChooser, int, String, Screen) - Static method in class JTP.IO
Prompts user for level set file and returns the absolute path to the chosen file.
getWholeDrawArea() - Method in class JTP.ScreenFrames
Returns size of whole screen.
GRAVITY - Static variable in class JTP.Editor
 
GRAVITY - Static variable in class JTP.Tile
Exerts force on surrounding tiles
GRID - Static variable in class JTP.Editor
 
gridPos(ScreenFrames, Point) - Static method in class JTP.Geom
Calculates relative grid position given absolute mouse location
GrvTile - Class in JTP
Gravity tile
GrvTile(int) - Constructor for class JTP.GrvTile
Constructs a new GrvTile instance with the given attributes.

H

handleDeactivation() - Method in class JTP.Screen
If window loses focus do not preserve mouse/keyboard status
hasEqualStarts() - Method in class JTP.Level
Checks whether both players have equal starts
hasForcedLength() - Method in class JTP.SplashMessage
Returns whether a particular display length has been set or not.
hasNotStarted() - Method in class JTP.LevelPlayer
Returns whether a level has been started.
hasStarted() - Method in class JTP.GameTimer
Indicates whether start() method has been called.
hasStarted() - Method in class JTP.TimeStore
Returns whether start point has been set.
height - Variable in class JTP.Tile
Height of this pile
HIGH_SCORE_COUNT - Static variable in class JTP.Progress
Number of entries in each highscore table.
Highscores - Class in JTP
Defines function and rendering of the highscore UI component
Highscores(Images, ScreenFrames, TilePainter, Color, float, int, int) - Constructor for class JTP.Highscores
 

I

ICE - Static variable in class JTP.Editor
 
ICE - Static variable in class JTP.Tile
Slides to adjacent tile.
IceTile - Class in JTP
Ice tile
IceTile(int) - Constructor for class JTP.IceTile
Constructs a new IceTile instance with the given attributes.
ImageLoader - Class in JTP
This class is used to load the various image resources used by the game.
ImageLoader() - Constructor for class JTP.ImageLoader
 
Images - Class in JTP
Defines and loads game graphics resources (staged).
Images() - Constructor for class JTP.Images
 
inAppletMode() - Static method in class JTP.Main
Queries whether the game is running as an applet.
incHeight() - Method in class JTP.Tile
Increases height of pile.
incrementAccumulatedTime() - Method in class JTP.GameTimer
Adds the currently leftover time to the total for active timer.
incrementAccumulatedTime() - Method in class JTP.TimeStore
Adds the currently leftover time to the total.
init() - Method in class JTP.MainApplet
Applet entry point.
INVALID_MOVE - Static variable in class JTP.GamePlayer
 
INVALID_MOVE - Static variable in class JTP.LevelPlayer
moveOne return code indicating the move was invalid
IO - Class in JTP
Set of methods for loading levelsets with appropriate the error handling.
IO() - Constructor for class JTP.IO
 
isActive() - Method in class JTP.GameTimer
Indicates whether a time limit has been set.
isDisabled() - Method in class JTP.GameTile
Returns whether a player has died here.
isEmpty() - Method in class JTP.Level
Determines whether the level is empty / blank.
isHighScoreWhere(boolean, int) - Method in class JTP.Progress
Checks whether the given score can go in the highscore table.
isRepeating() - Method in class JTP.PlayerKeys
Indicates whether the keys are in repeat mode or not.
isStart() - Method in class JTP.StartableTile
Sepcifies whether this is a start tile.
isStartable() - Method in class JTP.StartableTile
Specifies whether this can be a start tile.
isStartable() - Method in class JTP.Tile
Specifies whether this can be a start tile.
isTwoPlayer() - Method in class JTP.LevelSet
Returns whether this is a two-player LevelSet.
isValid() - Method in class JTP.Level
Validates a level.
isValidMessage(String) - Static method in class JTP.SplashMessage
Checks whether the given message is valid.

J

JTP - package JTP
Contains all JTilePile game classes.

K

keyDown() - Method in class JTP.KeyHandler
Used by Screen class to determine whether a key is being held down in-game.
keyDown(int) - Method in class JTP.PlayerKeys
Registers a new key as being held down.
KeyHandler - Class in JTP
Class for handling keyboard control in-game.
KeyHandler(Screen) - Constructor for class JTP.KeyHandler
Constructs a new instance of KeyHandler.
keyPressed(KeyEvent) - Method in class JTP.KeyHandler
Handles key-down events.
keyPressedGame(int, int, long) - Method in class JTP.Screen
Handler for all keyboard events whilst in-game.
keyPressedNormal(KeyEvent) - Method in class JTP.Screen
Handler for all keyboard events (except in-game).
keyReleased(KeyEvent) - Method in class JTP.KeyHandler
Handles key-up events.
keyReleased(KeyEvent) - Method in class JTP.Screen
Handler for key releases.
keyResult(int, Component) - Method in class JTP.Editor
Processes a keypress.
keyResult(int, Component) - Method in class JTP.Highscores
 
keyResult(int) - Method in class JTP.LevelChooser
 
keyResult(int) - Method in class JTP.Menu
 
keyTyped(KeyEvent) - Method in class JTP.KeyHandler
Handles key-typed events.
keyTyped(KeyEvent) - Method in class JTP.Screen
Handler for highscore name input.
keyTypedResult(char) - Method in class JTP.Highscores
Used to process key events for entering highscore name
keyUp(int) - Method in class JTP.PlayerKeys
Unregisters key which from 'held down' list.
keyUpdateUI() - Method in class JTP.Menu
 

L

LAST - Static variable in class JTP.LevelChooser
 
LEFT - Static variable in class JTP.ArwTile
Indicates left/west direction.
LEFT - Static variable in class JTP.GamePlayer
 
Level - Class in JTP
Deals with handling and storage of individual levels.
Level(int, int, int, int, boolean) - Constructor for class JTP.Level
Constructs a new Level instance with the given attributes.
Level(int, int, int, boolean) - Constructor for class JTP.Level
Constructs a new Level instance with the given attributes and no time limit.
Level(int, int, int, int) - Constructor for class JTP.Level
Constructs a new single-player Level instance with the given attributes.
Level(int, int, int) - Constructor for class JTP.Level
Constructs a new single-player Level instance with the given attributes and no time limit.
LEVEL_BACK - Static variable in class JTP.Editor
 
LEVEL_CHANGED - Static variable in class JTP.LevelChooser
 
LEVEL_CHOSEN - Static variable in class JTP.LevelChooser
 
LEVEL_CLEAR - Static variable in class JTP.Editor
 
LEVEL_FIRST - Static variable in class JTP.Editor
 
LEVEL_FORWARD - Static variable in class JTP.Editor
 
LEVEL_LAST - Static variable in class JTP.Editor
 
LEVEL_MESSAGES - Static variable in class JTP.Editor
 
LEVEL_PLAY - Static variable in class JTP.Editor
 
LEVEL_SWAP - Static variable in class JTP.Editor
 
LEVEL_TIME - Static variable in class JTP.Editor
 
LevelChooser - Class in JTP
Defines function and rendering of the level chooser component.
LevelChooser(TilePainter, Images, ScreenFrames, LevelSet[], Font, Color, Graphics2D) - Constructor for class JTP.LevelChooser
Create a new LevelChooser instance with the given attributes.
levelHasNotStarted() - Method in class JTP.GamePlayer
Checks whether the level has been started
LevelPlayer - Class in JTP
Handles gameplay mechanics of individual levels.
LevelPlayer(Level) - Constructor for class JTP.LevelPlayer
Creates a new LevelPlayer instance with the given level.
LevelPlayer(Level, boolean) - Constructor for class JTP.LevelPlayer
Creates a new LevelPlayer instance with the given level and in either single or two player mode.
LevelSet - Class in JTP
Deals with handling and storage of a collection of levels.
LevelSet(String, int, int, int) - Constructor for class JTP.LevelSet
Constructs a new single-player LevelSet instance with the given attributes.
LevelSet(String, int, int, int, boolean) - Constructor for class JTP.LevelSet
Constructs a LevelSet instance with the given attributes.
LevelSetFilter - Class in JTP
Custom file filter for levelset open/save dialogs
LevelSetFilter(String) - Constructor for class JTP.LevelSetFilter
Constructs a new LevelSetFilter with the given extension.
levelStart - Variable in class JTP.StartableTile
Indicates whether this is a start or not
levelWillUnlockMode(int) - Static method in class JTP.ProgressHandler
Returns whether a particular level will unlock an area
LIFE_LOST - Static variable in class JTP.GamePlayer
 
load(URL) - Static method in class JTP.LevelSet
Loads a LevelSet from the given location.
load(String) - Static method in class JTP.LevelSet
Loads a LevelSet from a file.
LOAD_CANCELLED - Static variable in class JTP.GamePlayer
loadLevelSet method return value
LOAD_CUSTOM - Static variable in class JTP.ProgressHandler
Progress milestone: Loading of custom levelsets
LOAD_NOT2P - Static variable in class JTP.GamePlayer
loadLevelSet method return value
LOAD_OK - Static variable in class JTP.GamePlayer
loadLevelSet method return value
loadImage(URL) - Static method in class JTP.ImageLoader
Loads an image from the given location.
loadLevelSet(String, Component, Graphics2D) - Method in class JTP.Editor
Loads a levelset from disk or creates a new one if it does not exist.
loadLevelSet(String, Graphics2D) - Method in class JTP.GamePlayer
Loads a levelset from a file.
loadLevelSet(String, int, Component, Graphics2D) - Method in class JTP.GamePlayer
Loads a levelset from a file with the specified game mode.
loadLevelSet(URL, Graphics2D) - Method in class JTP.GamePlayer
Loads a levelset from the given location
loadLevelSet(URL, int, Component, Graphics2D) - Method in class JTP.GamePlayer
Loads a levelset from a location with the specified game mode.
loadNextSet() - Method in class JTP.Images
Loads the next set of image resources into memory.
loadProgress() - Static method in class JTP.ProgressHandler
Loads progress data from disk.
LONG - Static variable in class JTP.SplashMessage
Long display length.
LOST - Static variable in class JTP.LevelPlayer
moveOne return code indicating no more moves are available

M

Main - Class in JTP
Class from which JTP is launched.
Main() - Constructor for class JTP.Main
 
main(String[]) - Static method in class JTP.Main
Launch method.
MAIN_EDITOR - Static variable in class JTP.Menu
 
MAIN_EXIT - Static variable in class JTP.Menu
 
MAIN_HELP - Static variable in class JTP.Menu
 
MAIN_HIGHSCORES - Static variable in class JTP.Menu
 
MAIN_ONEP - Static variable in class JTP.Menu
 
MAIN_TWOP - Static variable in class JTP.Menu
 
MainApplet - Class in JTP
Class from which JTP is launched as an applet.
MainApplet() - Constructor for class JTP.MainApplet
 
manipulateMultiple(Point, Point, Tile) - Method in class JTP.Level
Push or pop multiple tiles.
MEDIAMERGE_LEVEL - Static variable in class JTP.GamePlayer
 
Menu - Class in JTP
Defines function and rendering of the menu component.
Menu(ScreenFrames, TilePainter, int, int) - Constructor for class JTP.Menu
Constructs a new Menu instance with the given parameters.
MENU_CHANGED - Static variable in class JTP.Menu
 
MENU_EDITOR - Static variable in class JTP.Menu
Editor submenu
MENU_MAIN - Static variable in class JTP.Menu
Main menu
MENU_MOVED - Static variable in class JTP.Menu
 
MENU_ONEP - Static variable in class JTP.Menu
One player submenu
MENU_TWOP - Static variable in class JTP.Menu
Two player submenu
MENU_TWOP_COOP - Static variable in class JTP.Menu
Two player cooperative submenu
MENU_TWOP_VS - Static variable in class JTP.Menu
Two player versus submenu
moreToLoad() - Method in class JTP.Images
Indicates whether more images still have to be loaded.
mouseClicked(MouseEvent) - Method in class JTP.Screen
Not used (defined by MouseInputListener)
mouseDragged(MouseEvent) - Method in class JTP.Screen
Handles mouse movement while key is depressed.
mouseEntered(MouseEvent) - Method in class JTP.Screen
Not used (defined by MouseInputListener)
mouseExited(MouseEvent) - Method in class JTP.Screen
Prevents button or grid tile to be active when mouse moved off screen
mouseMoved(MouseEvent) - Method in class JTP.Screen
Handles mouse movement events.
mousePressed(int) - Method in class JTP.Editor
Handles mouse (down) events.
mousePressed(int, Point) - Method in class JTP.Highscores
 
mousePressed(int, Point) - Method in class JTP.LevelChooser
 
mousePressed(int, Point) - Method in class JTP.Menu
 
mousePressed(MouseEvent) - Method in class JTP.Screen
Handles mouse-down events.
mouseReleased(MouseEvent) - Method in class JTP.Screen
Handles mouse click events (once button has been released)
MOVED - Static variable in class JTP.GamePlayer
 
MOVED - Static variable in class JTP.LevelPlayer
moveOne return code indicating succesful move
moveOne(int) - Method in class JTP.LevelPlayer
Moves active player by one in the given direction.

N

NAME_CHANGED - Static variable in class JTP.Highscores
 
NEXT - Static variable in class JTP.LevelChooser
 
NonClosingJFrame - Class in JTP
Slightly changed JFrame to prevent accidental closing of JTP
NonClosingJFrame(String) - Constructor for class JTP.NonClosingJFrame
 
NONE - Static variable in class JTP.Editor
 
NONE - Static variable in class JTP.GamePlayer
 
NONE - Static variable in class JTP.Highscores
 
NONE - Static variable in class JTP.LevelChooser
 
NONE - Static variable in class JTP.Menu
 
NONE - Static variable in class JTP.PlayerKeys
Constand indicating no key is being held down.
NORMAL - Static variable in class JTP.Editor
 
NORMAL - Static variable in class JTP.KeyHandler
Handling mode: Bypassed (handling performed by Screen class)
NORMAL - Static variable in class JTP.Tile
A normal tile.
NrmTile - Class in JTP
Normal tile (startable)
NrmTile(int, boolean) - Constructor for class JTP.NrmTile
Constructs a new GrvTile instance with the given attributes.
NUMBERED_LEVEL - Static variable in class JTP.GamePlayer
 

O

O_1P - Static variable in class JTP.Images
 
O_2P - Static variable in class JTP.Images
 
O_3D - Static variable in class JTP.Images
 
O_3D_GRAVITY - Static variable in class JTP.Images
 
O_3D_ICE - Static variable in class JTP.Images
 
O_3D_TELEPORT - Static variable in class JTP.Images
 
O_BACK - Static variable in class JTP.Images
 
O_CLOSE - Static variable in class JTP.Images
 
O_DISABLED_TILE - Static variable in class JTP.Images
 
O_DISABLED_TILE_P1 - Static variable in class JTP.Images
 
O_DISABLED_TILE_P2 - Static variable in class JTP.Images
 
O_ERROR - Static variable in class JTP.Images
 
O_FIRST - Static variable in class JTP.Images
 
O_FORWARD - Static variable in class JTP.Images
 
O_INFO - Static variable in class JTP.Images
 
O_LAST - Static variable in class JTP.Images
 
O_MEDIAMERGE - Static variable in class JTP.Images
 
O_QUESTION - Static variable in class JTP.Images
 
O_START_BOTH - Static variable in class JTP.Images
 
O_TIME - Static variable in class JTP.Images
 
O_WARNING - Static variable in class JTP.Images
 
oneOffKeySet() - Method in class JTP.PlayerKeys
Returns whether a one-off key is active.
ONEP_BACK - Static variable in class JTP.Menu
 
ONEP_CHALLENGE - Static variable in class JTP.Menu
 
ONEP_CHALLENGE - Static variable in class JTP.ProgressHandler
Progress milestone: Single player challenge mode
ONEP_LOAD - Static variable in class JTP.Menu
 
ONEP_NORMAL - Static variable in class JTP.Menu
 

P

P1 - Static variable in class JTP.GamePlayer
ID of first player
P2 - Static variable in class JTP.GamePlayer
ID of second player
paint(Graphics) - Method in class JTP.Screen
Draws screen updated (requirement by Canvas class)
performMoves(int, int) - Method in class JTP.GamePlayer
Moves one or both players (or executes control command, e.g.
PLAY - Static variable in class JTP.LevelChooser
 
PlayerKeys - Class in JTP
Class for keeping track of which keys a player is holding down.
PlayerKeys() - Constructor for class JTP.PlayerKeys
Create a new PlayerKeys instance.
popTile(Point) - Method in class JTP.Level
Pops a tile from the grid.
PREVIOUS - Static variable in class JTP.LevelChooser
 
Progress - Class in JTP
Keeps track of highscores, levels reached and areas unlocked.
Progress() - Constructor for class JTP.Progress
Constructs a new Progress instance.
progressColor - Static variable in class JTP.Main
Colour for loading progress overlay on splash screen
ProgressHandler - Class in JTP
Provides methods for storing highscore and progress data to disk and handling of area unlocking.
ProgressHandler() - Constructor for class JTP.ProgressHandler
 
progressHeight - Static variable in class JTP.Main
How much of the loading screen (height wise) should be filled with the overlay colour
progressMade(boolean) - Static method in class JTP.ProgressHandler
Checks whether any progress has been made in a levelset.
purgeEmptyLevels() - Method in class JTP.LevelSet
Removes all empty levels from this LevelSet
purgeInvalidLevels() - Method in class JTP.LevelSet
Removes all invalid and empty levels from this LevelSet.
pushTile(Point, Tile, boolean) - Method in class JTP.Level
Pushes a tile onto the grid (works a bit like a stack - hence the name).
pushTile(Point, boolean) - Method in class JTP.Level
Only adds normal tiles and starts.

Q

QUIT - Static variable in class JTP.GamePlayer
 

R

readOnly() - Method in class JTP.LevelSet
Returns whether the level can be saved or not.
redrawWanted() - Method in class JTP.Editor
Indicates whether screen should be refreshed.
registerScreen(Screen) - Method in class JTP.NonClosingJFrame
Registers Screen instance so icon for close dialog can be read
removeLevel(int) - Method in class JTP.LevelSet
Removes a level from this LevelSet.
RENDERING_BALANCED - Static variable in class JTP.ScreenFrames
 
RENDERING_QUALITY - Static variable in class JTP.ScreenFrames
 
RENDERING_SPEED - Static variable in class JTP.ScreenFrames
 
request(boolean, long) - Method in class JTP.SplashMessage
Requests player start message to be displayed.
request(int, int, long) - Method in class JTP.SplashMessage
Requests player scores to be displayed.
request(String, long) - Method in class JTP.SplashMessage
Requests a text message to be displayed.
request(String) - Method in class JTP.SplashMessage
Requests a text message to be displayed.
requested() - Method in class JTP.SplashMessage
Checks whether a message have been requested.
requestHelp() - Method in class JTP.SplashMessage
Request help message (horribly hardcoded)
RESET - Static variable in class JTP.GamePlayer
 
reset() - Method in class JTP.GameTile
Resets height specified in wrapper to that of the referenced Tile instance.
reset() - Method in class JTP.GameTimer
Resets start and stop times for all timers as well as setting active timer back to the default.
reset(int) - Method in class JTP.GameTimer
Resets start and stop times for all timers as well as setting active timer back to specified one.
reset() - Method in class JTP.KeyHandler
Resets state of this KeyHandler instance.
reset() - Method in class JTP.LevelPlayer
Resets currently loaded level back to starting position.
reset() - Method in class JTP.TimeStore
Resets start and stop times.
resetAccumulatedTime() - Method in class JTP.GameTimer
Resets the time added up by using incrementAccumulatedTime() method back to zero for active timer.
resetAccumulatedTime() - Method in class JTP.TimeStore
Resets the time added up by using incrementAccumulatedTime() method back to zero for active timer.
resume() - Method in class JTP.GameTimer
Continues countdown of a timer stopped by stop().
resume() - Method in class JTP.TimeStore
Adjust start time to take into account pause period caused by call to stop().
returnToMenu() - Method in class JTP.Screen
Used by GameTimer to return focus to menu when time runs out.
revokeMediaMergeTile() - Method in class JTP.GamePlayer
Indicate that the MediaMerge tile should not be used anymore
RIGHT - Static variable in class JTP.ArwTile
Indicates right/east direction.
RIGHT - Static variable in class JTP.GamePlayer
 

S

SAVE - Static variable in class JTP.Editor
 
SAVECLOSE - Static variable in class JTP.Editor
 
SAVED - Static variable in class JTP.ProgressHandler
Indicates progress data was saved.
saveProgress(Progress) - Static method in class JTP.ProgressHandler
Saves progress data to disk.
saveToDisk(LevelSet, String, boolean) - Static method in class JTP.LevelSet
Writes the specified LevelSet to a file.
scaled() - Method in class JTP.Screen
Returns whether the game is scaled up/down.
SCORE_SET - Static variable in class JTP.Highscores
 
scoringEnabled() - Method in class JTP.GamePlayer
Indicates whether scoring is turned on Note: Scoring status is reset each time a new levelset is loaded
Screen - Class in JTP
Controls all other game components and performs double-buffered rendering.
Screen(double) - Constructor for class JTP.Screen
Creates a new Screen instance.
ScreenFrames - Class in JTP
Responsible for drawing borders and frames, also provides dimensions to other game components.
ScreenFrames(Rectangle, Rectangle, Rectangle, Point, int, Point[], Color, Color, Color, int, int, int, int, float) - Constructor for class JTP.ScreenFrames
Creates a new ScreenFrames instance with the specified parameters.
secondPlayerActive() - Method in class JTP.LevelPlayer
Indicates whether the second or first player is currently active.
set2PTableAsActive(boolean) - Method in class JTP.Highscores
Choose which highscore table should be shown
setActivePlayerDead() - Method in class JTP.LevelPlayer
Flags currently active player as dead
setActivePlayerTo(boolean) - Method in class JTP.LevelPlayer
Set the active player.
setAppletMode() - Static method in class JTP.Main
Used by MainApplet class to indicate the game is running in applet mode.
setBgColor(Color) - Method in class JTP.ScreenFrames
Sets the background colour to use
setCtrlFrameType(int) - Method in class JTP.ScreenFrames
Sets the type of control frame to use
setCustomLevelSet(LevelSet, boolean) - Method in class JTP.LevelChooser
Specify a levelset which can be previewed in CUSTOM mode.
setCustomLookAndFeel() - Static method in class JTP.Main
Tries to apply custom look and feel.
setDisplayLength(long) - Method in class JTP.SplashMessage
Sets display length for any currently requested message.
setEntryIndex(int) - Method in class JTP.Menu
Sets which menu entry is highlighted.
setHeight(int) - Method in class JTP.StartableTile
Sets height of tile.
setHeight(int) - Method in class JTP.Tile
Sets height of tile.
setInText(String) - Method in class JTP.Level
Sets level start message to specified string
setLastUpdateAsKey() - Method in class JTP.Menu
Use to make sure pressing a menu button via mouse/keyboard is handled exactly the same after the mouse leaves the screen.
setLevel(int) - Method in class JTP.GamePlayer
Choose which level to play
setLevel(Level) - Method in class JTP.LevelPlayer
Loads the provided level.
setLevel(Level, boolean) - Method in class JTP.LevelPlayer
Loads the provided level in either single or two-player mode.
setLevel(Level, boolean, boolean) - Method in class JTP.LevelPlayer
Loads the provided level in either single or two-player mode.
setLevelSet(LevelSet, int, boolean, Graphics2D) - Method in class JTP.GamePlayer
Loads a levelset straight from its native format.
setLevelSet(int) - Method in class JTP.LevelChooser
Specify which levelset to display.
setLives(int, Graphics2D) - Method in class JTP.GamePlayer
Sets number of lives player has at beginning of levelset.
setMenu(int, Point) - Method in class JTP.Menu
Set active menu and highlight entry currently under mouse pointer.
setMenu(int, int) - Method in class JTP.Menu
Set active menu and entry.
setMode(int, boolean) - Method in class JTP.KeyHandler
Sets key input handling mode.
setName(String) - Method in class JTP.LevelSet
Changes the name of this LevelSet.
setOneOffKey(int) - Method in class JTP.PlayerKeys
Sets a one-off key.
setOutText(String) - Method in class JTP.Level
Sets level end message to specified string
setProgressFilePath(String) - Static method in class JTP.ProgressHandler
Sets location of progress file.
setProperty(String, String) - Static method in class JTP.Main
Sets a system property gracefully.
setReachedLevel(int, boolean) - Method in class JTP.Progress
Updates progress made in the levelset.
setReachedLevel(int, boolean) - Static method in class JTP.ProgressHandler
Updates progress made in levelset.
setRenderingHints(Graphics2D, boolean) - Method in class JTP.ScreenFrames
Turns rendering options for the current graphics context on or off.
setRepeats(boolean) - Method in class JTP.PlayerKeys
Set whether any of the keys are in repeat mode or not.
setSize(int) - Method in class JTP.Square
Sets the size of this Rectangle to the specified width and height.
setStart(boolean) - Method in class JTP.StartableTile
Set whether this tile is a start or not.
setTimeLimit(int) - Method in class JTP.GameTimer
Sets time limit to use.
setTimeLimit(int) - Method in class JTP.Level
Sets time limit for this level
setTimeLimit(int) - Method in class JTP.TimeStore
Sets time limit to use.
SHORT - Static variable in class JTP.SplashMessage
Short display length.
SINGLE - Static variable in class JTP.GamePlayer
Single player mode
SINGLE - Static variable in class JTP.Highscores
 
SINGLE - Static variable in class JTP.LevelChooser
 
SINGLE - Static variable in class JTP.Progress
Single player.
size() - Method in class JTP.Level
Counts number of tiles (not piles) in this level
SKIPPED_LEVEL - Static variable in class JTP.GamePlayer
 
SplashControl - Class in JTP
Class to handle start-up splash animation
SplashControl(int, Color, int) - Constructor for class JTP.SplashControl
Constructs a new SplashControl instance with the specified parameters.
SplashMessage - Class in JTP
Displays various "pop-up" messages.
SplashMessage(Font, Color, Color, Color, int, int, int, float, ScreenFrames, Images, Graphics2D) - Constructor for class JTP.SplashMessage
Constructs a new SplashMessage instance with the given attributes.
Square - Class in JTP
This is a subclass of Rectangle.
Square(int, int, int) - Constructor for class JTP.Square
Constructs a new Rectangle whose upper-left corner is specified as (x,y) and whose width and height are equal
stackTraceToString(Exception) - Static method in class JTP.Main
Formats traceback stack by inserting line breaks.
START - Static variable in class JTP.Editor
 
start() - Method in class JTP.GameTimer
Starts the active timer if a time limit has been set.
start() - Method in class JTP.MainApplet
Called once applet has been initalised.
start(SplashControl) - Method in class JTP.Screen
Initialises various game components.
start() - Method in class JTP.TimeStore
Sets start time to current timestamp.
START2 - Static variable in class JTP.Editor
 
StartableTile - Class in JTP
Serves as a parent for all startable tiles.
StartableTile() - Constructor for class JTP.StartableTile
 
stop() - Method in class JTP.GameTimer
Stops the active timer.
stop() - Method in class JTP.TimeStore
Sets stop time to current timestamp assuming start() has been called before.
stopAll() - Method in class JTP.GameTimer
Stops all (both) timers.
stopAndToggleTimer() - Method in class JTP.GamePlayer
Like in chess - stops one timer and activates it for the other player
STUCK - Static variable in class JTP.LevelPlayer
moveOne return code indicating the just moved player is stuck
swapActiveTimer() - Method in class JTP.GameTimer
Sets other timer to active one.
swapLevel(int) - Method in class JTP.LevelSet
Swaps specified level with next one.

T

T_ARROW_DOWN - Static variable in class JTP.Images
 
T_ARROW_LEFT - Static variable in class JTP.Images
 
T_ARROW_RIGHT - Static variable in class JTP.Images
 
T_ARROW_UP - Static variable in class JTP.Images
 
T_GRAVITY - Static variable in class JTP.Images
 
T_ICE - Static variable in class JTP.Images
 
T_NORMAL - Static variable in class JTP.Images
 
T_START - Static variable in class JTP.Images
 
T_START2 - Static variable in class JTP.Images
 
T_TELEPORT - Static variable in class JTP.Images
 
TELEPORT - Static variable in class JTP.Editor
 
TELEPORT - Static variable in class JTP.Tile
Teleports to another tile.
teleportDeath - Variable in class JTP.LevelPlayer
 
testModeActive() - Method in class JTP.GamePlayer
Checks whether the (editor) test mode is on
tile(Point) - Method in class JTP.Level
Provides direct access to a tile at the given location
tile(int, int) - Method in class JTP.Level
Provides direct access to a tile at the given location
Tile - Class in JTP
Serves as parent for all types of tile.
Tile() - Constructor for class JTP.Tile
 
tileCheck() - Method in class JTP.StartableTile
Used to check for tile attribute validity upon creation.
tileCheck() - Method in class JTP.Tile
Used to check for tile attribute validity upon creation.
TileException - Exception in JTP
Class used to handle most tile and level related exceptions
TileException(String) - Constructor for exception JTP.TileException
Constructs a TileException with the specified detail message.
TilePainter - Class in JTP
Handles tile rendering
TilePainter(Images, ScreenFrames, Screen, Font, Font, Color, Color, Color, Color, Graphics2D) - Constructor for class JTP.TilePainter
Constructs a new TilePainter instance with the given attributes.
tilePosToArea(ScreenFrames, Point) - Static method in class JTP.Geom
Calculates absolute locations and size of a tile
tilesClearedByP1() - Method in class JTP.LevelPlayer
Returns number of tiles cleared by player 1
tilesClearedByP2() - Method in class JTP.LevelPlayer
Returns number of tiles cleared by player 2
tilesLeft() - Method in class JTP.LevelPlayer
Returns how many tiles are left in the level
tileType(Point) - Method in class JTP.Level
Returns type of tile at given location
timeLeft() - Method in class JTP.GameTimer
Returns time remaining for active timer.
timeLeft(int) - Method in class JTP.GameTimer
Returns time remaining.
timeLeft() - Method in class JTP.TimeStore
Returns time remaining for given time limit.
TimeStore - Class in JTP
Class storing timing information (used by GameTimer).
TimeStore() - Constructor for class JTP.TimeStore
 
timeUpdateRequested() - Method in class JTP.GameTimer
Used to decide whether the whole screen or just timer display has to be rendered.
toggleMediaMerge() - Method in class JTP.Images
Swaps the T_NORMAL image resource with O_MEDIAMERGE .
toString() - Method in class JTP.GameTimer
Returns time remaining for active timer in mm:ss format.
toString(int) - Method in class JTP.GameTimer
Returns time remaining in mm:ss format.
toString() - Method in class JTP.TimeStore
Returns time remaining in mm:ss format.
TptTile - Class in JTP
Teleportation tile
TptTile(int, Point) - Constructor for class JTP.TptTile
Constructs a new TptTile instance with the given attributes.
transferAttributesFrom(Tile) - Method in class JTP.StartableTile
Used to apply all attributes to this tile from another one.
transferAttributesFrom(StartableTile) - Method in class JTP.StartableTile
Used to apply all attributes to this tile from another one.
transferAttributesFrom(Tile) - Method in class JTP.Tile
Used to apply all attributes to this tile from another one.
TWOP_BACK - Static variable in class JTP.Menu
 
TWOP_CHALLENGE - Static variable in class JTP.ProgressHandler
Progress milestone: Two player challenge mode
TWOP_COOP - Static variable in class JTP.Menu
 
TWOP_COOP - Static variable in class JTP.ProgressHandler
Progress milestone: Two player cooperative mode
TWOP_COOP_BACK - Static variable in class JTP.Menu
 
TWOP_COOP_CHALLENGE - Static variable in class JTP.Menu
 
TWOP_COOP_LOAD - Static variable in class JTP.Menu
 
TWOP_COOP_NORMAL - Static variable in class JTP.Menu
 
TWOP_VS - Static variable in class JTP.Menu
 
TWOP_VS - Static variable in class JTP.ProgressHandler
Progress milestone: Two player versus mode
TWOP_VS_ALT - Static variable in class JTP.Menu
 
TWOP_VS_ALT - Static variable in class JTP.ProgressHandler
Progress milestone: Two player versus alternate mode
TWOP_VS_BACK - Static variable in class JTP.Menu
 
TWOP_VS_LOAD - Static variable in class JTP.Menu
 
TWOP_VS_SIM - Static variable in class JTP.Menu
 
type - Variable in class JTP.Tile
One of NORMAL, ICE, TELEPORT, GRAVITY or ARROW

U

UNLOCKED - Static variable in class JTP.ProgressHandler
Indivates progress data was saved and an area unlocked.
unpauseTimer() - Method in class JTP.GamePlayer
 
UP - Static variable in class JTP.ArwTile
Indicates upward/north direction.
UP - Static variable in class JTP.GamePlayer
 
update(Graphics) - Method in class JTP.Screen
Draws screen update, automatically choosing right component to render.
updateProgress() - Method in class JTP.SplashControl
Advances logo overlay "fill" to next step.
updateScreen() - Method in class JTP.Screen
Forces screen update.
updateState(boolean) - Method in class JTP.GamePlayer
 
updateUI(Point) - Method in class JTP.Editor
Determines whether a different button or tile is active and returns clipping area (for drawing) is so.
updateUI(Point) - Method in class JTP.GamePlayer
 
updateUI(Point) - Method in class JTP.Highscores
 
updateUI(Point) - Method in class JTP.LevelChooser
 
updateUI(Point) - Method in class JTP.Menu
Updates state of menu based on current mouse position.

V

version - Static variable in class JTP.Main
Version string
VS - Static variable in class JTP.GamePlayer
Versus two player mode
VS_CHOOSE - Static variable in class JTP.GamePlayer
Versus mode with choice between simulatenous and alternate modes
VS_TURN_BASED - Static variable in class JTP.GamePlayer
Versus alternate two player mode

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