Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
G
H
I
K
L
M
N
P
R
S
T
U
V
W
A
activateAnimset(int)
- Method in class mgdk.
MSprite
Activates one of the sprites animationssets.
B
bottomLeft
- Variable in class mgdk.
MCollisionInfo
bottomLeftHit()
- Method in class mgdk.
MCollisionInfo
bottomLeftNum
- Variable in class mgdk.
MCollisionInfo
bottomRight
- Variable in class mgdk.
MCollisionInfo
bottomRightHit()
- Method in class mgdk.
MCollisionInfo
bottomRightNum
- Variable in class mgdk.
MCollisionInfo
C
clear(Graphics, int, int, int)
- Method in class mgdk.
MCanvas
Clears the screen.
clearColor
- Variable in class mgdk.
MMap
Color used to clear the buffer.
create(byte[], String, int, int)
- Static method in class mgdk.
MMap
Used internally to create a map from the supplied data.
createAnimsets(int)
- Method in class mgdk.
MSprite
Creates the specified (num)ber of animation sets.
D
detailedCollidesWith(MMap, boolean)
- Method in class mgdk.
MSprite
Checks for collisions between the sprite and a map and gives detailed information about it.
draw(Graphics)
- Method in class mgdk.
MCanvas
Draw objects to the screen here (overload it).
E
EAST
- Static variable in class mgdk.
M8Sprite
entireBottom()
- Method in class mgdk.
MCollisionInfo
entireLeft()
- Method in class mgdk.
MCollisionInfo
entireRight()
- Method in class mgdk.
MCollisionInfo
entireTop()
- Method in class mgdk.
MCollisionInfo
G
getAnimsetNum()
- Method in class mgdk.
MSprite
Returns the number of the active animset.
getBuffer()
- Method in class mgdk.
MMap
Returns the maps buffer image, which you for example can use to look up pixels.
getCell(int)
- Method in class mgdk.
MMap
Get the tilenumber for the specified cell.
getCellNumber(int, int)
- Method in class mgdk.
MMap
Get cellnumber for cell at [cellX, cellY].
getCellNumberAtPixel(int, int)
- Method in class mgdk.
MMap
Get the cellnumber for the cell found at the specified screen coordinates (in pixels).
getDirection()
- Method in class mgdk.
M8Sprite
Get the direction drawn for this sprite.
getDirFrames()
- Method in class mgdk.
M8Sprite
Returns number of frames used for each direction.
getFirst()
- Method in class mgdk.
MCollisionInfo
getFirstNum()
- Method in class mgdk.
MCollisionInfo
getPixelX(int)
- Method in class mgdk.
MMap
Get the coordinate of the leftmost pixel in the cell with the specified number.
getPixelY(int)
- Method in class mgdk.
MMap
Get the coordinate of the topmost pixel in the cell with the specified number.
H
handleInput()
- Method in class mgdk.
MCanvas
Handle inputs in this one (overload it).
I
isBottomLeftUnique()
- Method in class mgdk.
MCollisionInfo
isTopRightUnique()
- Method in class mgdk.
MCollisionInfo
K
keyA()
- Method in class mgdk.
MCanvas
keyB()
- Method in class mgdk.
MCanvas
keyC()
- Method in class mgdk.
MCanvas
keyD()
- Method in class mgdk.
MCanvas
keyDown()
- Method in class mgdk.
MCanvas
Checks if key down is pressed.
keyFire()
- Method in class mgdk.
MCanvas
Checks if the fire key is pressed.
keyLeft()
- Method in class mgdk.
MCanvas
Checks if key left is pressed.
keyRight()
- Method in class mgdk.
MCanvas
Checks if key right is pressed.
keyUp()
- Method in class mgdk.
MCanvas
Checks if key up is pressed.
L
layers
- Variable in class mgdk.
MCanvas
All games will probable use a LayerManager, use this one :o)
loadFromFile(String, String, int, int)
- Static method in class mgdk.
MMap
Loads a map from a file located in /res.
loadFromRS(String, String, int, int)
- Static method in class mgdk.
MMap
Have to return a new MMap since you can not resize am existing one... ?
M
M8Sprite
- class mgdk.
M8Sprite
.
Used to display a sprite that has frames for eight different directions (N, NE, E, SE, S, SW, W, NW).
M8Sprite(String, int, int, int)
- Constructor for class mgdk.
M8Sprite
Constructs a M8Sprite and initilizes the data.
MCanvas
- class mgdk.
MCanvas
.
The base class for MIDlets created with MGDK, every MIDlet should have one.
MCanvas()
- Constructor for class mgdk.
MCanvas
Constructor, sets default values and creates some objects.
MCollisionInfo
- class mgdk.
MCollisionInfo
.
MCollisionInfo()
- Constructor for class mgdk.
MCollisionInfo
mgdk
- package mgdk
middle
- Variable in class mgdk.
MCollisionInfo
middleHit()
- Method in class mgdk.
MCollisionInfo
middleNum
- Variable in class mgdk.
MCollisionInfo
MMap
- class mgdk.
MMap
.
Extends TiledLayer.
MMap(int, int, String, int, int)
- Constructor for class mgdk.
MMap
Creates an empty map and loads the specified image.
modifyCellValue(int, int)
- Method in class mgdk.
MMap
Change the value of the specified cell.
move()
- Method in class mgdk.
MSprite
Moves the sprite using its velocity.
msgBox(String, int, int)
- Method in class mgdk.
MCanvas
Displays a simple messagebox centered on screen.
msgBoxBack
- Variable in class mgdk.
MCanvas
msgBoxBorder
- Variable in class mgdk.
MCanvas
msgBoxText
- Variable in class mgdk.
MCanvas
MSprite
- class mgdk.
MSprite
.
Extends Sprite, adding easier creation and better control over animation.
MSprite(MSprite)
- Constructor for class mgdk.
MSprite
Creates this sprite as a copy of another MSprite.
MSprite(String, int, int)
- Constructor for class mgdk.
MSprite
Creates a sprite based on an image loaded from the specified filename.
N
NE
- Static variable in class mgdk.
M8Sprite
Facing down (South).
nextFrame()
- Method in class mgdk.
MSprite
NORTH
- Static variable in class mgdk.
M8Sprite
Facing up (North).
NW
- Static variable in class mgdk.
M8Sprite
P
paint(Graphics, int, int)
- Method in class mgdk.
MMap
Paint the map to the specified graphics object.
R
run()
- Method in class mgdk.
MCanvas
The main game loop.
S
saveToRS(String)
- Method in class mgdk.
MMap
Save this map in a RecordStore (permanent storage).
SE
- Static variable in class mgdk.
M8Sprite
setAnimDelay(int, int[])
- Method in class mgdk.
MSprite
setAnimset(int, int[])
- Method in class mgdk.
MSprite
Sets the framesequence of a animationset.
setCell(int, int)
- Method in class mgdk.
MMap
Sets the tilenumber of the specified cell.
setDirection(int)
- Method in class mgdk.
M8Sprite
Sets the direction which the Sprite is facing.
setDirectionFromKeys(MCanvas)
- Method in class mgdk.
M8Sprite
Sets the direction depending on which keys are pressed.
setVelocity(int, int)
- Method in class mgdk.
MSprite
Set sprites velocity (speed & direction).
setX(int)
- Method in class mgdk.
MSprite
Conveniencemethod for changing a sprites horizontal position.
setY(int)
- Method in class mgdk.
MSprite
Conveniencemethod for changing a sprites vertical position.
SOUTH
- Static variable in class mgdk.
M8Sprite
start()
- Method in class mgdk.
MCanvas
Start the main game loop.
stop()
- Method in class mgdk.
MCanvas
Stop the main game loop.
SW
- Static variable in class mgdk.
M8Sprite
T
topLeft
- Variable in class mgdk.
MCollisionInfo
topLeftHit()
- Method in class mgdk.
MCollisionInfo
topLeftNum
- Variable in class mgdk.
MCollisionInfo
topRight
- Variable in class mgdk.
MCollisionInfo
topRightHit()
- Method in class mgdk.
MCollisionInfo
topRightNum
- Variable in class mgdk.
MCollisionInfo
toString()
- Method in class mgdk.
MCollisionInfo
U
updateBuffer(boolean)
- Method in class mgdk.
MMap
Updates the buffer image to show the maps current state.
updateObjects()
- Method in class mgdk.
MCanvas
Update (move, animation) your objects (sprites, maps) in this one (overload it).
V
vx
- Variable in class mgdk.
MSprite
Velocity x.
vy
- Variable in class mgdk.
MSprite
Velocity y.
W
WEST
- Static variable in class mgdk.
M8Sprite
wishFPS(int)
- Method in class mgdk.
MCanvas
Set how many frames per second you wish for your game to have.
wishTimePerFrame(int)
- Method in class mgdk.
MCanvas
Set how much time you wish to spend for each update of your game.
A
B
C
D
E
G
H
I
K
L
M
N
P
R
S
T
U
V
W
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes