|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.microedition.lcdui.game.Layer
|
+--javax.microedition.lcdui.game.TiledLayer
|
+--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!
Copyright: Copyright (c) 2005
Company: Pistachio Monkey
| Method Summary | |
void |
buildPowerMap()
build the array into a tile array |
void |
createPowerMap()
calls for the powers to be randomly generated |
int |
getPowerCell(int row,
int column)
retrives the value of a cell from a given loaction |
int |
isPower(int x,
int y,
int width,
int height)
detects if sprie is on a power and allows them to collect it |
void |
powerFlush()
clears the power array back to null |
void |
randomLocator(int counter,
int value)
randomly disperses powerups across the field |
| Methods inherited from class javax.microedition.lcdui.game.TiledLayer |
createAnimatedTile, fillCells, getAnimatedTile, getCell, getCellHeight, getCellWidth, getColumns, getRows, paint, setAnimatedTile, setCell, setStaticTileSet |
| Methods inherited from class javax.microedition.lcdui.game.Layer |
getHeight, getWidth, getX, getY, isVisible, move, setPosition, setVisible |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void buildPowerMap()
public void powerFlush()
public void createPowerMap()
public void randomLocator(int counter,
int value)
counter - how many powerupsvalue - what type of power up
public int isPower(int x,
int y,
int width,
int height)
x - x positiony - y positionwidth - width of the player spriteheight - height of the player sprite
public int getPowerCell(int row,
int column)
row - numbercolumn - number
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||