|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.golden.gamedev.object.Sprite
vooga.engine.core.BetterSprite
vooga.games.grandius.sprites.Player
public class Player
Constructor Summary | |
---|---|
Player()
|
|
Player(java.lang.String label)
|
Method Summary | |
---|---|
void |
moveDown()
|
void |
moveLeft()
|
void |
moveRight()
|
void |
moveUp()
|
void |
setInvincible()
|
void |
updateCash(int cash)
Adds the given cash amounts to the Stat cash. |
int |
updatePlayerLives()
Decrements the number of lives the player has. |
void |
updateScore(int points)
Adds the given points to the Stat score. |
void |
updateStat(Stat<java.lang.Integer> stat,
int addedValue)
Method for adding a value (including negative ones) to any Stat |
Methods inherited from class vooga.engine.core.BetterSprite |
---|
addAnimatedImages, addHorizontalSpeed, addImage, addSprite, addVerticalSpeed, firstRun, forceX, forceY, getCurrentSprite, getDistance, getDoubleStat, getHeight, getHorizontalSpeed, getImage, getIntStat, getStat, getTimeInExistence, getVerticalSpeed, getWidth, getX, getY, isActive, isOnScreen, move, moveTo, moveX, moveY, render, setActive, setAsRenderedSprite, setBackground, setDoubleStat, setHorizontalSpeed, setImage, setImages, setIntStat, setLayer, setLocation, setMovement, setSpeed, setStat, setVerticalSpeed, setX, setY, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Player()
public Player(java.lang.String label)
Method Detail |
---|
public void moveLeft()
public void moveRight()
public void moveUp()
public void moveDown()
public int updatePlayerLives()
public void updateStat(Stat<java.lang.Integer> stat, int addedValue)
public void updateScore(int points)
public void updateCash(int cash)
public void setInvincible()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |