Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
C
D
E
G
K
M
O
P
R
S
T
U
A
addNote(int)
- Method in class simpleGamePlatform.
MusicKeyboard
Add a note to the notes to be played during the next update cycle.
addPiece()
- Method in class simpleGamePlatform.
GamePlatform
Allocate a new piece and add it to the scene.
addPiece(String)
- Method in class simpleGamePlatform.
GamePlatform
Allocate a new piece of the given object class, and add it to the scene.
addPiece(Piece)
- Method in class simpleGamePlatform.
GamePlatform
Add an already existing piece to the scene.
C
contains(int, int)
- Method in class simpleGamePlatform.
Piece
Returns true iff this piece contains pixel (x,y).
D
defaultColor
- Static variable in class simpleGamePlatform.
Piece
The default color for a game piece.
E
endCollision(Piece, Piece)
- Method in class simpleGamePlatform.
GamePlatform
Callback function, invoked at the end of a collision between two pieces.
G
GamePlatform
- Class in
simpleGamePlatform
GamePlatform()
- Constructor for class simpleGamePlatform.
GamePlatform
getGamePlatform()
- Method in class simpleGamePlatform.
Piece
Returns the game platform containing this piece.
getHeight()
- Method in class simpleGamePlatform.
GamePlatform
Returns the height of the game window.
getId()
- Method in class simpleGamePlatform.
Piece
Get the unique id of this this piece.
getWidth()
- Method in class simpleGamePlatform.
GamePlatform
Returns the width of the game window.
getX()
- Method in class simpleGamePlatform.
Piece
Get the x position of this piece.
getY()
- Method in class simpleGamePlatform.
Piece
Get the y position of this piece.
K
keyDown(Event, int)
- Method in class simpleGamePlatform.
GamePlatform
Called by the system when the user presses a key on the keyboard.
keyUp(Event, int)
- Method in class simpleGamePlatform.
GamePlatform
Called by the system when the user releases a key on the keyboard.
M
mouseDown(Event, int, int)
- Method in class simpleGamePlatform.
GamePlatform
Called by the system when the user presses the mouse.
mouseDrag(Event, int, int)
- Method in class simpleGamePlatform.
GamePlatform
Called by the system when the user drags the mouse.
mouseMove(Event, int, int)
- Method in class simpleGamePlatform.
GamePlatform
Called by the system when the user moves the mouse.
mouseUp(Event, int, int)
- Method in class simpleGamePlatform.
GamePlatform
Called by the system when the user releases the mouse.
MusicKeyboard
- Class in
simpleGamePlatform
MusicKeyboard(int[])
- Constructor for class simpleGamePlatform.
MusicKeyboard
Constructor for a music keyboard, takes an array of note values.
O
overlay(Graphics)
- Method in class simpleGamePlatform.
GamePlatform
Subclasses can override this method to draw graphics over the scene.
P
piece(int)
- Method in class simpleGamePlatform.
GamePlatform
Returns a piece in this game, indexed by its order of creation.
Piece
- Class in
simpleGamePlatform
Piece()
- Constructor for class simpleGamePlatform.
Piece
playClip(String)
- Method in class simpleGamePlatform.
GamePlatform
Play an audio clip, given the name of the file containing the audio clip.
playNotes()
- Method in class simpleGamePlatform.
MusicKeyboard
Play all the notes that have been specified for this update cycle.
R
render(Graphics)
- Method in class simpleGamePlatform.
GamePlatform
Called by the system -- the rendering loop.
S
selectedPiece()
- Method in class simpleGamePlatform.
GamePlatform
Returns which piece is currently selected.
setBounds(double, double, double, double)
- Method in class simpleGamePlatform.
Piece
Set a rectangular bounding area for this piece.
setCollisionTracked(Piece)
- Method in class simpleGamePlatform.
GamePlatform
Indicate that collisions for this piece should be tracked.
setColor(Color)
- Method in class simpleGamePlatform.
Piece
Set the color of this piece.
setLabel(String)
- Method in class simpleGamePlatform.
Piece
Assign a label to this piece.
setLogging(boolean)
- Method in class simpleGamePlatform.
GamePlatform
Toggle whether there will be data logging.
setProjectName(String)
- Method in class simpleGamePlatform.
GamePlatform
For data logging purposes, set a name for this project.
setShape(double[], double[])
- Method in class simpleGamePlatform.
Piece
Set the shape of this piece, given arrays of X coords and Y coords.
setShape(double[], double[], int)
- Method in class simpleGamePlatform.
Piece
Set the shape of this piece, given arrays of X coords and Y coords, and number of points.
setup()
- Method in class simpleGamePlatform.
GamePlatform
Subclasses can override this method to set up the game board.
setVerbosity(int)
- Method in class simpleGamePlatform.
GamePlatform
Set the level of verbosity of reporting game events.
setX(double)
- Method in class simpleGamePlatform.
Piece
Set the x position of this piece.
setY(double)
- Method in class simpleGamePlatform.
Piece
Set the y position of this piece.
simpleGamePlatform
- package simpleGamePlatform
startCollision(Piece, Piece)
- Method in class simpleGamePlatform.
GamePlatform
Callback function, invoked at the start of a collision between two pieces.
stop()
- Method in class simpleGamePlatform.
MusicKeyboard
Stop playing all notes.
stringWidth(Graphics, String)
- Method in class simpleGamePlatform.
GamePlatform
Return the width, in pixels, of a text string.
T
track(Object, String)
- Method in class simpleGamePlatform.
GamePlatform
Track the values of an object, for logging purposes.
track(Object, String, String)
- Method in class simpleGamePlatform.
GamePlatform
Track specific variables of an object, for logging purposes.
U
update()
- Method in class simpleGamePlatform.
GamePlatform
Subclasses can override this method to define a 30fps update behavior.
A
C
D
E
G
K
M
O
P
R
S
T
U
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes