com.brackeen.javagamebook.shooter3D
Class Player

java.lang.Object
  extended bycom.brackeen.javagamebook.game.GameObject
      extended bycom.brackeen.javagamebook.shooter3D.JumpingGameObject
          extended bycom.brackeen.javagamebook.shooter3D.Player

public class Player
extends JumpingGameObject

A Player object.


Field Summary
 
Fields inherited from class com.brackeen.javagamebook.shooter3D.JumpingGameObject
DEFAULT_JUMP_HEIGHT
 
Fields inherited from class com.brackeen.javagamebook.game.GameObject
STATE_ACTIVE, STATE_DESTROYED, STATE_IDLE
 
Constructor Summary
Player()
           
 
Method Summary
 void addHealth(float addition)
           
 void fireProjectile()
           
 float getHealth()
           
 float getMaxHealth()
           
 boolean isAlive()
           
 void setBlastModel(PolygonGroup blastModel)
           
 void setHealth(float health)
           
 
Methods inherited from class com.brackeen.javagamebook.shooter3D.JumpingGameObject
notifyFloorCollision, setJumpHeight, setJumping
 
Methods inherited from class com.brackeen.javagamebook.game.GameObject
addListener, getBounds, getCeilHeight, getFloorHeight, getListener, getLocation, getName, getPolygonGroup, getSpawns, getTransform, getX, getY, getZ, isActive, isDestroyed, isFlying, isIdle, isJumping, isMakingNoise, makeNoise, removeListener, sendTouchNotifications, setCeilHeight, setFloorHeight, setFlying, setState, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Player

public Player()
Method Detail

setBlastModel

public void setBlastModel(PolygonGroup blastModel)

getHealth

public float getHealth()

setHealth

public void setHealth(float health)

getMaxHealth

public float getMaxHealth()

addHealth

public void addHealth(float addition)

isAlive

public boolean isAlive()

fireProjectile

public void fireProjectile()