Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
K
L
M
N
O
P
Q
R
S
T
V
W
X
Y
A
add(Object)
- Method in class org.piratis.j2me.core.
QuickList
Adds a new object to the QuickList
add(Layer)
- Method in class org.piratis.j2me.core.game.
LayerManager
Appends a Layer to this LayerManager.
B
BBox2D
- class org.piratis.j2me.core.
BBox2D
.
BBox2D: surrounding box with basic square features used by sprite, canvas and so on.
BBox2D()
- Constructor for class org.piratis.j2me.core.
BBox2D
Void constructor
BBox2D(BBox2D)
- Constructor for class org.piratis.j2me.core.
BBox2D
Create a BBox based on another's size
BBox2D(int, int, int, int)
- Constructor for class org.piratis.j2me.core.
BBox2D
Main constructor
bbox
- Variable in class org.piratis.j2me.core.game.
Layer
Own's bbox (initially empty!)
C
Canvas
- class org.piratis.j2me.core.game.
Canvas
.
CoreCanvas Description
Canvas(Display)
- Constructor for class org.piratis.j2me.core.game.
Canvas
Creates a new instance of a CoreCanvas, with an empty (white pixels) buffer for offscreen processing.
canvas
- Variable in class org.piratis.j2me.core.game.
Engine
Engine and canvas are tightly bound
cellCollides(Layer)
- Method in class org.piratis.j2me.core.game.
TiledLayer
Check colliding but checking cells.
collide(BBox2D)
- Method in class org.piratis.j2me.core.
BBox2D
Check if the current BBox collides with another one.
collide(int, int, int, int)
- Method in class org.piratis.j2me.core.
BBox2D
Check if this BBox collides with given area
contains(Object)
- Method in class org.piratis.j2me.core.
QuickList
Tests if the specified object is a component in this vector.
createCommonTile(int)
- Method in class org.piratis.j2me.core.game.
TiledLayer
Cretates a new common tile returning the index referring to this new common tile.
D
DEFAULT_FPS
- Static variable in class org.piratis.j2me.core.game.
Engine
Default FPS setting
display
- Variable in class org.piratis.j2me.core.game.
Canvas
Canvas display
E
Engine
- class org.piratis.j2me.core.game.
Engine
.
Default Engine class.
Engine(Canvas)
- Constructor for class org.piratis.j2me.core.game.
Engine
Creates a new Engine.
Engine(Canvas, int)
- Constructor for class org.piratis.j2me.core.game.
Engine
Creates a new Engine.
elementAt(int)
- Method in class org.piratis.j2me.core.
QuickList
Returns the object at the given position
elements()
- Method in class org.piratis.j2me.core.
QuickList
Gets all the elements of the list
elements(int)
- Method in class org.piratis.j2me.core.
QuickList
Gets all the elements of the list from one position
ensureCapacity(int)
- Method in class org.piratis.j2me.core.
QuickList
Increases the capacity of this quicklist, if necessary, to ensure that it can hold at least the number of components specified by the minimum capacity argument.
F
fillCells(int, int, int, int, int)
- Method in class org.piratis.j2me.core.game.
TiledLayer
Sets the given tileIndex in a given region.
flushGraphics()
- Method in class org.piratis.j2me.core.game.
Canvas
Flushes the off-screen buffer to the display.
G
getArea()
- Method in class org.piratis.j2me.core.
BBox2D
getBbox()
- Method in class org.piratis.j2me.core.game.
Layer
Returns own bounding box, always in pixel values
getCell(int, int)
- Method in class org.piratis.j2me.core.game.
TiledLayer
Gets cell's contents
getCenterX()
- Method in class org.piratis.j2me.core.
BBox2D
Gets the center on the X axis
getCenterY()
- Method in class org.piratis.j2me.core.
BBox2D
Gets the center on the Y axis
getCommonTile(int)
- Method in class org.piratis.j2me.core.game.
TiledLayer
Gets the tile referenced by the given common tile.
getDisplay()
- Method in class org.piratis.j2me.core.game.
Canvas
getFrame()
- Method in class org.piratis.j2me.core.game.
Sprite
Gets the current frame index
getGraphics()
- Method in class org.piratis.j2me.core.game.
Canvas
Returns the Graphics object for rendering a Game Canvas: it will be the Graphics object of the off-screen buffer.
getKeyStates()
- Method in class org.piratis.j2me.core.game.
Engine
Gets the states of the game keys.
getLayerAt(int)
- Method in class org.piratis.j2me.core.game.
LayerManager
Gets the layer at the specified index
getSize()
- Method in class org.piratis.j2me.core.game.
LayerManager
Gets the number of layers
getWindow()
- Method in class org.piratis.j2me.core.game.
LayerManager
Retrieve the current world window
H
hasMoreElements()
- Method in class org.piratis.j2me.core.
QuickList.Enum
height
- Variable in class org.piratis.j2me.core.
BBox2D
I
IS_DOWN
- Static variable in class org.piratis.j2me.core.game.
Engine
IS_FIRE
- Static variable in class org.piratis.j2me.core.game.
Engine
IS_GAME_A
- Static variable in class org.piratis.j2me.core.game.
Engine
IS_GAME_B
- Static variable in class org.piratis.j2me.core.game.
Engine
IS_GAME_C
- Static variable in class org.piratis.j2me.core.game.
Engine
IS_GAME_D
- Static variable in class org.piratis.j2me.core.game.
Engine
IS_LEFT
- Static variable in class org.piratis.j2me.core.game.
Engine
IS_RIGHT
- Static variable in class org.piratis.j2me.core.game.
Engine
IS_UP
- Static variable in class org.piratis.j2me.core.game.
Engine
Key status constants
indexOf(Object)
- Method in class org.piratis.j2me.core.
QuickList
Searches for the first occurence of the given argument, testing for equality using the equals method.
initialize(Canvas, int)
- Method in class org.piratis.j2me.core.game.
Engine
Initialize method..
input()
- Method in class org.piratis.j2me.core.game.
Engine
Engine's key management method.
insertAt(Layer, int)
- Method in class org.piratis.j2me.core.game.
LayerManager
Inserts a Layer at a given position.
insertElementAt(Object, int)
- Method in class org.piratis.j2me.core.
QuickList
Inserts the specified object as a component in this vector at the specified index.
isVisible()
- Method in class org.piratis.j2me.core.game.
Layer
Gets the visibility of this layer
isVoid()
- Method in class org.piratis.j2me.core.
BBox2D
Checks if the bounding box is not null 0x0
K
keyPressed(int)
- Method in class org.piratis.j2me.core.game.
Canvas
keyPressed(int)
- Method in class org.piratis.j2me.core.game.
Engine
Canvas calls this method upon a key is pressed.
keyReleased(int)
- Method in class org.piratis.j2me.core.game.
Canvas
keyReleased(int)
- Method in class org.piratis.j2me.core.game.
Engine
Canvas call this method upon a key is released.
L
Layer
- class org.piratis.j2me.core.game.
Layer
.
Abstract class representing a visual element of a game.
Layer()
- Constructor for class org.piratis.j2me.core.game.
Layer
LayerManager
- class org.piratis.j2me.core.game.
LayerManager
.
As in MIDP2.0, the LayerManager manages Layers.
LayerManager()
- Constructor for class org.piratis.j2me.core.game.
LayerManager
Creates a new LayerManager
layers
- Variable in class org.piratis.j2me.core.game.
Engine
Where to store all the layers/sprites/tiles
length()
- Method in class org.piratis.j2me.core.
QuickList
Gets the number of objects within the list
M
merge(BBox2D)
- Method in class org.piratis.j2me.core.
BBox2D
Merges the current bbox with another, returning the minimal bbox containing both (overwritting current one)
moveBy(int, int)
- Method in class org.piratis.j2me.core.game.
Layer
Moves the current layer the given horizontal and vertical distances.
moveTo(int, int)
- Method in class org.piratis.j2me.core.game.
Layer
Moves the layer's top-left corner at the given (x,y) coordinates
N
NO_FRAME
- Static variable in class org.piratis.j2me.core.game.
Sprite
Current frame will return this if there is no animated sprite
nextElement()
- Method in class org.piratis.j2me.core.
QuickList.Enum
nextFrame()
- Method in class org.piratis.j2me.core.game.
Sprite
Moves forward to the next frame in sequence
Frame sequences are circular: when reached the end of the sequence, it will continue at the beginning.
nextRunLoop()
- Method in class org.piratis.j2me.core.game.
Engine
Checks if the run loop needs to continue running (based on engine status)
nullify()
- Method in class org.piratis.j2me.core.
BBox2D
Voids the current BBox2D
O
offscreen
- Variable in class org.piratis.j2me.core.game.
Canvas
Double buffering image
org.piratis.j2me.core
- package org.piratis.j2me.core
org.piratis.j2me.core.game
- package org.piratis.j2me.core.game
P
paint(Graphics)
- Method in class org.piratis.j2me.core.game.
Canvas
paint()
- Method in class org.piratis.j2me.core.game.
Engine
Default paint method.
paint(Graphics)
- Method in class org.piratis.j2me.core.game.
Layer
Paints this layer if it is visible.
paint(Graphics, int, int)
- Method in class org.piratis.j2me.core.game.
LayerManager
Renders the LayerManager's Layers.
paint(Graphics)
- Method in class org.piratis.j2me.core.game.
Sprite
Paints the Sprite into the Graphics object provided.
paint(Graphics)
- Method in class org.piratis.j2me.core.game.
TiledLayer
paintBackground(Graphics, BBox2D)
- Method in class org.piratis.j2me.core.game.
Canvas
Paints the current background (if any).
prevFrame()
- Method in class org.piratis.j2me.core.game.
Sprite
Moves backward to the previous frame in sequence
Frame sequences are circular: when reached the beginnig of the sequence, it will continue at the last frame.
Q
QuickList
- class org.piratis.j2me.core.
QuickList
.
Provides a QuickList (Vector/ArrayList) implementation
QuickList()
- Constructor for class org.piratis.j2me.core.
QuickList
Creates a quick list with an initial array size
QuickList(int)
- Constructor for class org.piratis.j2me.core.
QuickList
Creates a QuickList with an initial allocated space
QuickList.Enum
- class org.piratis.j2me.core.
QuickList.Enum
.
Enumeration implementor
R
remove(Layer)
- Method in class org.piratis.j2me.core.game.
LayerManager
Deletes the Layer from this LayerManager.
removeAllElements()
- Method in class org.piratis.j2me.core.
QuickList
Remove all the objects of the list
removeElement(Object)
- Method in class org.piratis.j2me.core.
QuickList
Removes the first occurrence of the argument from this quicklist.
removeElementAt(int)
- Method in class org.piratis.j2me.core.
QuickList
Deletes the component at the specified index.
run()
- Method in class org.piratis.j2me.core.game.
Canvas
To be called by a
Display#callSerially(java.lang.Runnable)
when requesting a new repaint.
run()
- Method in class org.piratis.j2me.core.game.
Engine
S
Sprite
- class org.piratis.j2me.core.game.
Sprite
.
Provide some basic sprite functionality: getting and setting of coordinates and dimensions, as well as simple collision detection.
Sprite(Image)
- Constructor for class org.piratis.j2me.core.game.
Sprite
New 'static' Sprite with the given Image.
Sprite(Image, int, int)
- Constructor for class org.piratis.j2me.core.game.
Sprite
New 'dynamic' (animtaed) Sprite with the given frames contained in the Image.
setCell(int, int, int)
- Method in class org.piratis.j2me.core.game.
TiledLayer
Sets the contents of a cell.
setCommonTile(int, int)
- Method in class org.piratis.j2me.core.game.
TiledLayer
Changes the tile associated to this common tile.
setElementAt(Object, int)
- Method in class org.piratis.j2me.core.
QuickList
Sets the object at the given index.
setEngine(Engine)
- Method in class org.piratis.j2me.core.game.
Canvas
Sets its associated engine.
setFrame(int)
- Method in class org.piratis.j2me.core.game.
Sprite
Selectes the current frame in the current sequence.
setFrameSequence(int[])
- Method in class org.piratis.j2me.core.game.
Sprite
Establish the frame sequence of the Sprite.
setInitialStatus()
- Method in class org.piratis.j2me.core.game.
Engine
Sets the status variables to an initial status
setRunningStatus()
- Method in class org.piratis.j2me.core.game.
Engine
Engine Status to a running status
setVisible(boolean)
- Method in class org.piratis.j2me.core.game.
Layer
Sets the visibility of the layer.
setWindow(int, int, int, int)
- Method in class org.piratis.j2me.core.game.
LayerManager
Sets the view window on the LayerManager.
setWindow(BBox2D)
- Method in class org.piratis.j2me.core.game.
LayerManager
Sets the view window on the LayerManager
stop()
- Method in class org.piratis.j2me.core.game.
Engine
Performs a stop
T
TOP_LEFT
- Static variable in class org.piratis.j2me.core.game.
Layer
TiledLayer
- class org.piratis.j2me.core.game.
TiledLayer
.
A type of Layer composed of a grid of cells which can contain a reduced set of predefined images.
TiledLayer(int, int, Image, int, int)
- Constructor for class org.piratis.j2me.core.game.
TiledLayer
Creates a new TiledLayer.
V
visible
- Variable in class org.piratis.j2me.core.game.
Layer
Visibility management
W
waitSomething(long, long)
- Method in class org.piratis.j2me.core.game.
Engine
Wait method to synchronize work & repainting.
width
- Variable in class org.piratis.j2me.core.
BBox2D
work()
- Method in class org.piratis.j2me.core.game.
Engine
Real engine method that should be implemented in subclasses
X
x
- Variable in class org.piratis.j2me.core.
BBox2D
BBox data.
Y
y
- Variable in class org.piratis.j2me.core.
BBox2D
A
B
C
D
E
F
G
H
I
K
L
M
N
O
P
Q
R
S
T
V
W
X
Y
Overview
Package
Class
Tree
Deprecated
Index
Help
Copyright(c) 2003-2004 Jordi Martin
PREV NEXT
FRAMES
NO FRAMES
All Classes