B C D E F G H I K L M N O P Q R S V W

B

beat() - Method in class Bomb
keeps the animation alive
beat() - Method in class Boss
controls the behaviours of the boss
beat() - Method in class Droid
handels the droids behaviours
beat() - Method in class Field
beat method animates the flames in the corners
beat(int, boolean) - Method in class Player
handels the player animation while also reacting to keystates and other events such as death and bombing
beatBomb - Static variable in class Bomb
 
beatBombCtr - Static variable in class Bomb
 
blow(int) - Method in class Bomb.Explode
either spreads the flames or cleans them up
bluetoothClient() - Method in class MadnessMIDlet
sets the handset to act as the Client of a bluetooth game
bluetoothGame() - Method in class LevelCanvas
 
bluetoothHost() - Method in class MadnessMIDlet
sets the handset to act as the Host of a bluetooth game
BluetoothList - class BluetoothList.
a menu list for the bluetooth game Title: Monkey Madness Description: Player must run around field, destroying and avoiding bombs, droids and boss!
Bomb - class Bomb.
handles matters of the bomb, flames red brick walls Title: Monkey Madness Description: Player must run around field, destroying and avoiding bombs, droids and boss!
Bomb.Explode - class Bomb.Explode.
inner class of the Bomb, handels the explosions Title: Monkey Madness Description: Player must run around field, destroying and avoiding bombs, droids and boss!
Bomb.Explode(int, int, int) - Constructor for class Bomb.Explode
 
bombCount - Variable in class Player
 
bombDelay - Static variable in class Bomb
 
bombFlush() - Method in class Bomb
empties the array to null and replaces level buffers
Boss - class Boss.
creates a boss which hunts down towards the player Title: Monkey Madness Description: Player must run around field, destroying and avoiding bombs, droids and boss!
Boss.TimerInv - class Boss.TimerInv.
class terminates the invincibilty after a period
Boss.TimerInv() - Constructor for class Boss.TimerInv
 
bossOn - Variable in class LevelCanvas
 
btGame - Variable in class LevelCanvas
 
btHandle - Variable in class MadnessMIDlet
 
build() - Method in class LevelCanvas
there are many items which constiute towards a level that are built upon a random generator, this method flushes and builds the TiledLayer's
buildBT() - Method in class LevelCanvas
builds a bluetooth version of the game, maps and sprites
buildField() - Method in class Field
builds the tiled layer out of the different game tile arrays
buildPowerMap() - Method in class Powerup
build the array into a tile array

C

canvsBeat - Variable in class LevelCanvas
 
change(int, int, int) - Method in class Bomb
calls to change the value of a cell
checkHighScore() - Method in class MadnessMIDlet
checks to see if the current score is high, if so, it writes it to the record store and returns true
cleanFire() - Method in class Bomb
loctaes any tiles of fire or bombs and removes them
collides(Sprite) - Method in class Droid
detects to see weather the the sprite collides with any of the droids
collisionPlayerDroid() - Method in class LevelCanvas
returns true should a player & droid collide
commandAction(Command, Displayable) - Method in class BluetoothList
listens to commands from the user
commandAction(Command, Displayable) - Method in class InstructionsScreen
returns the user back to the menu
commandAction(Command, Displayable) - Method in class MenuList
listens to commands from the user
containsStartZone(int, int, int, int) - Method in class Field
sees if the field is a startzone tile (blue)
createBombMap() - Method in class Bomb
randomly generates positions for walls
createPowerMap() - Method in class Powerup
calls for the powers to be randomly generated

D

death() - Method in class Boss
allows for the gradual death of the boss while invoking an invincible timer
death() - Method in class Droid
handels the occurance of the death of a droid
destroyApp(boolean) - Method in class MadnessMIDlet
calls a stop to the levelCanvas
draw() - Method in class LevelCanvas
draws the game to the screen
Droid - class Droid.
droid is bot that wanders the field in order to get in the play of the player Title: Monkey Madness Description: Player must run around field, destroying and avoiding bombs, droids and boss!
drop(int, int, int) - Method in class Bomb
calls that a drop has been made and where it is we start a new thread called explThread to now take care of the explosion
dropBomb(int, int, int, int, int) - Method in class Bomb
drops a bomb

E

east - Variable in class Bomb
 

F

Field - class Field.
Field is a TiledLayer which looks after the lowest layer of the game.
flameLength - Variable in class Player
 

G

gameDuration - Variable in class LevelCanvas
 
gameOver() - Method in class MadnessMIDlet
refreshes the game stats & creates an instance of the GameOverScreen class
gameOverDone() - Method in class MadnessMIDlet
returns the display back to the MenuList and calls stopMusic()
GameOverScreen - class GameOverScreen.
another canvas screen used to denote a player death or game over Title: Monkey Madness Description: Player must run around field, destroying and avoiding bombs, droids and boss!
getBluetooth() - Method in class MadnessMIDlet
returns the BluetoothHandle
getBomb() - Method in class LevelCanvas
retuns an instance of the bomb
getBombCell(int, int) - Method in class Bomb
retrieves the value of a cell
getBoss() - Method in class LevelCanvas
retuns an instance of the boss
getBossStartX() - Method in class Field
returns a start X position for the boss
getBossStartY() - Method in class Field
returns a start Y position for the boss
getCanvas() - Method in class MadnessMIDlet
returns the LevelCanvas
getDroid() - Method in class LevelCanvas
retuns an instance of the droid vector
getField() - Method in class LevelCanvas
retuns an instance of the field
getFieldCell(int, int) - Method in class Field
gets the cell value for the loaction
getHighScore() - Method in class MadnessMIDlet
returns an int of the highest score
getPlayer() - Method in class LevelCanvas
retuns an instance of the player
getPlayerStartX(int) - Method in class Field
returns start X postion for a player
getPlayerStartY(int) - Method in class Field
returns start Y postion for a player
getPowerCell(int, int) - Method in class Powerup
retrives the value of a cell from a given loaction
getPowerup() - Method in class LevelCanvas
retuns an instance of the powerup
getStartOffset() - Method in class Field
returns an offset start position, used for removing the boss instance frokm the gaming field

H

HighScoreScreen - class HighScoreScreen.
another canavs screen that displays the current high score Title: Monkey Madness Description: Player must run around field, destroying and avoiding bombs, droids and boss!

I

identifyBombLayer(int, int, int, int) - Method in class Bomb
identifys what value the bomb layer is
init() - Method in class LevelCanvas
initates the positions of all the sprites
InstructionsScreen - class InstructionsScreen.
displays a set of instructions to the user Title: Monkey Madness Description: Player must run around field, destroying and avoiding bombs, droids and boss!
invincible - Variable in class Player
 
invincible() - Method in class LevelCanvas
if the player dies, we ant them to become invincible for a period to ensure their safe return to the gaming field. this method calls a timer task to handle this.
invTimer() - Method in class Boss
scheduales a invincible timer
invTimer() - Method in class Player
establishes a new timer to handle invincibility
inZone(int, int, int, int) - Method in class Field
returns true if every pixel of the sprite is in the zone square
isPower(int, int, int, int) - Method in class Powerup
detects if sprie is on a power and allows them to collect it

K

keyPressed(int) - Method in class GameOverScreen
returns the player back to the game or menu, upon key press
keyPressed(int) - Method in class HighScoreScreen
returns the user back to the menu upon key press
keyPressed(int) - Method in class LevelCanvas
stops the game & returns the user back to the menu should they press a vlaue less than 0
keyPressed(int) - Method in class NextLevelScreen
continues gameplay once a key is pressed
keyPressed(int) - Method in class SplashScreen
calls dismiss upon keypress
kill() - Method in class LevelCanvas
handels the event of the player being killed. it updates the statitics and readys the player for more action or deatch by passing the display to the GameOverScreen by calling the midlet
killtheundead() - Method in class Droid
kills all droids
killTheUndead() - Method in class LevelCanvas
frequently invisable instances of the Droid can be found during the game, by calling this method we remove all items found within the droid vector

L

layerConstruct() - Method in class LevelCanvas
constructs all the layers in order
layerDroid() - Method in class LevelCanvas
handels the multiple constructions of droid
layerPlayers() - Method in class LevelCanvas
builds multiple players
level - Variable in class LevelCanvas
 
level - Variable in class MadnessMIDlet
 
LevelCanvas - class LevelCanvas.
LevelCanvas manages the multiple layers of Sprites and TiledLayers, by controlling the LayerManager, while running the animation beat methods for them. it accepts the keyStates from the handset and also handels many aspects of game play/events Title: Monkey Madness Description: Player must run around field, destroying and avoiding bombs, droids and boss!
levelCanvasMenu() - Method in class MadnessMIDlet
refreshes game stats, calls the animation thread to a stop and returns the display back to the also calls stopMusic() if soundOn
levelDroids - Variable in class LevelCanvas
 
levelDroids - Variable in class MadnessMIDlet
 
lives - Variable in class LevelCanvas
 
lives - Variable in class MadnessMIDlet
 
locatorDefined(int, int, int, int) - Method in class Field
defines a single cell to be location of the sprite
locatorVaried(int, int, int, int, int) - Method in class Field
retruns an array of the possible field postions the sprite could be within

M

MadnessMIDlet - class MadnessMIDlet.
Class MadnessMIDlet is the super class. it handels the display mainly switching between the menus and the game. it handles the required events specfic for apllication deployment to a mobile handset. it handels any loading of files in the res folder and the recordstore Title: Monkey Madness Description: Player must run arround field, destroying and avoiding bombs, droids and boss.
MadnessMIDlet() - Constructor for class MadnessMIDlet
Holds no constructors
MenuList - class MenuList.
the main game menu Title: Monkey Madness Description: Player must run around field, destroying and avoiding bombs, droids and boss!
menuList() - Method in class MadnessMIDlet
resturns the display back to the MenuList
menuListBluetoothGame() - Method in class MadnessMIDlet
creates a new Bluetooth list menu
menuListBluetoothLevel() - Method in class MadnessMIDlet
goes about building a multiplayer game, changes the display to the LevelCanvas, and calls playMusic() if soundOn
menuListContinue() - Method in class MadnessMIDlet
returns the diaplay back tot the canvas, restarts the LevelCanvas and makes the player invincible
menuListHighScore() - Method in class MadnessMIDlet
changes the display & creates an instance of the HighScoreScreen
menuListInstructions() - Method in class MadnessMIDlet
creates a new Instructions screen
menuListNewGame() - Method in class MadnessMIDlet
calls the initlaiser on the LevelCanvas and then the start's the game, while changing the display to the LevelCanvas, if soundOn then it calls to playMusic()
menuListQuit() - Method in class MadnessMIDlet
quits the application and calls a stopMusic()

N

newGame() - Method in class LevelCanvas
creats a new game
nextLevel() - Method in class LevelCanvas
prepares the game for the next level
nextLevel() - Method in class MadnessMIDlet
refreshes the game stats & creates an instance of the NextLevelScreen class
nextLevelDone() - Method in class MadnessMIDlet
returns to the LevelCanvas
NextLevelScreen - class NextLevelScreen.
a canavs screen used to act as break in play as a player advances through the game Title: Monkey Madness Description: Player must run around field, destroying and avoiding bombs, droids and boss!
noGo(int, int, int, int) - Method in class Field
returns true if the player hits a wall!
north - Variable in class Bomb
 
NumberOfDroids - Variable in class LevelCanvas
 

O

overlapsBoss(Sprite) - Method in class LevelCanvas
 
overlapsDroid(Sprite) - Method in class LevelCanvas
takse a sprtie droid and compares fowards it with an int of the number of droids
overlapsDroid(Sprite, int) - Method in class LevelCanvas
checks to see if the sprite passed overlpas with any of the droids
overlapsOtherDroid(Sprite) - Method in class LevelCanvas
checks to see if one droid overlaps another
overlapsPlayer(Sprite) - Method in class LevelCanvas
returns true if the sprite passed collides with with the player sprite

P

paint(Graphics) - Method in class GameOverScreen
paints to the screen
paint(Graphics) - Method in class HighScoreScreen
paints to the screen
paint(Graphics) - Method in class NextLevelScreen
paints the details to the screen
paint(Graphics) - Method in class SplashScreen
paints the display
pauseApp() - Method in class MadnessMIDlet
hear we handle the occurance of a pause, the animation thread is stoped
playBang() - Method in class LevelCanvas
Calls the midlet to play an explosion
playBang() - Method in class MadnessMIDlet
creats a new player to play /bang.wav, not called anywhere and thus temporaryly disabled
Player - class Player.
creates a player sprite which is controled by the user Title: Monkey Madness Description: Player must run around field, destroying and avoiding bombs, droids and boss!
Player.TimerInv - class Player.TimerInv.
small class, turns invincible back off
Player.TimerInv() - Constructor for class Player.TimerInv
 
playMusic() - Method in class MadnessMIDlet
palys the music loop's it for 100 counts
points - Variable in class LevelCanvas
 
points - Variable in class MadnessMIDlet
 
powerFlush() - Method in class Powerup
clears the power array back to null
Powerup - class Powerup.
powerup introduces specials for the player to collect Title: Monkey Madness Description: Player must run around field, destroying and avoiding bombs, droids and boss!

Q

quit() - Method in class LevelCanvas
quits the game and returns the user to the menu using the midlet

R

random(int) - Method in class LevelCanvas
calls the midlet to return a random int limited by the int passed
randomLocator(int, int) - Method in class Powerup
randomly disperses powerups across the field
readRecordStore() - Method in class MadnessMIDlet
reads the record store and returns an int value
refresh() - Method in class MadnessMIDlet
refreshes the MIDlet variables of game statistics such that they can be accessed by other children classes
removeLayer(Sprite) - Method in class LevelCanvas
removes a layer from the manager of the sprite passed
run() - Method in class Bomb.Explode
decides what type of fuction the blow method should perform
run() - Method in class Boss.TimerInv
 
run() - Method in class LevelCanvas
creats a current thread and handels produces a beat to handle the constant drawing and flushing
run() - Method in class MadnessMIDlet
calls the init() initilzer method
run() - Method in class Player.TimerInv
 
run() - Method in class SplashScreen
leaves the splash sceen for a period

S

setBombLayer() - Method in class Bomb
sets the array to become a tile array
south - Variable in class Bomb
 
spitLocation() - Method in class Player
returns the location of this player
SplashScreen - class SplashScreen.
slapsh screen used at the outset of the game to introduce the user Title: Monkey Madness Description: Player must run around field, destroying and avoiding bombs, droids and boss!
splashScreenPainted() - Method in class MadnessMIDlet
creates a thread while the splash screen is painted
start() - Method in class LevelCanvas
builds upon the animationThread, starts it and records the start time
startApp() - Method in class MadnessMIDlet
inititation of the app and we decide weather this is the first time.
startTime - Variable in class LevelCanvas
 
stop() - Method in class LevelCanvas
records the gameduration and stops the animationThread
stopMusic() - Method in class MadnessMIDlet
closes the songPlayer

V

vibrate(int) - Method in class LevelCanvas
calls the midlet to vibrate for a passed int in milleseconds
vibrate(int) - Method in class MadnessMIDlet
causes the display to vibrate for a passed int in millieseconds
vibrateAndBombUp(int) - Method in class Bomb
calls the vibrate, and also replenishes the players ammo

W

wallNumber - Variable in class LevelCanvas
 
wallNumber - Variable in class MadnessMIDlet
 
west - Variable in class Bomb
 

B C D E F G H I K L M N O P Q R S V W