|
||||||||||
| 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.Sprite
|
+--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!
Copyright: Copyright (c) 2005
Company: Pistachio Monkey
| Nested Class Summary | |
class |
Player.TimerInv
small class, turns invincible back off |
| Field Summary | |
int |
bombCount
|
int |
flameLength
|
boolean |
invincible
|
| Fields inherited from class javax.microedition.lcdui.game.Sprite |
TRANS_MIRROR, TRANS_MIRROR_ROT180, TRANS_MIRROR_ROT270, TRANS_MIRROR_ROT90, TRANS_NONE, TRANS_ROT180, TRANS_ROT270, TRANS_ROT90 |
| Method Summary | |
void |
beat(int direction,
boolean drop)
handels the player animation while also reacting to keystates and other events such as death and bombing |
void |
invTimer()
establishes a new timer to handle invincibility |
int[] |
spitLocation()
returns the location of this player |
| Methods inherited from class javax.microedition.lcdui.game.Sprite |
collidesWith, collidesWith, collidesWith, defineCollisionRectangle, defineReferencePixel, getFrame, getFrameSequenceLength, getRawFrameCount, getRefPixelX, getRefPixelY, nextFrame, paint, prevFrame, setFrame, setFrameSequence, setImage, setRefPixelPosition, setTransform |
| 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 |
| Field Detail |
public int flameLength
public int bombCount
public boolean invincible
| Method Detail |
public int[] spitLocation()
public void beat(int direction,
boolean drop)
direction - where the player is travelingdrop - wheather the player is droping a bombpublic void invTimer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||