|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfeud.testgame.model.LocalObject
feud.testgame.model.LocalPlayerObject
A local object that holds a player's data.
Constructor Summary | |
LocalPlayerObject()
|
Method Summary | |
void |
activate()
Activate a player. |
void |
alignCamera(com.threed.jpct.Camera camera)
Align the camera to the player. |
void |
deactivate()
Deactivate a player. |
long |
deadSince()
Is the player is dead, here's since how long... |
com.threed.jpct.Matrix |
getViewRotation()
Gets the "view rotation". |
boolean |
isActive()
Is the player active. |
boolean |
isDead()
Is the player dead? |
boolean |
move(com.threed.jpct.World world,
KeyStates keys,
MouseMapper mouse,
long ticks)
Move the player according to key and mouse input. |
void |
setAlive()
Flag the player as alive. |
void |
setDead()
Flag the player as dead. |
void |
setViewRotation(com.threed.jpct.Matrix mat)
Sets the "view rotation". |
Methods inherited from class feud.testgame.model.LocalObject |
addToValue, copyFrom, equals, getAnimation, getAnimationSpeed, getClientID, getObjectID, getPosition, getRotation, getSpeed, getType, getValue, getView, hasCollided, hashCode, setAnimation, setAnimationSpeed, setCollided, setObjectID, setPosition, setRotation, setSpeed, setType, setValue, setView |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LocalPlayerObject()
Method Detail |
public com.threed.jpct.Matrix getViewRotation()
public void setViewRotation(com.threed.jpct.Matrix mat)
mat
- the view directionpublic void setDead()
public void setAlive()
public boolean isDead()
public long deadSince()
public void activate()
public void deactivate()
public boolean isActive()
public void alignCamera(com.threed.jpct.Camera camera)
camera
- the camera that should be alignedpublic boolean move(com.threed.jpct.World world, KeyStates keys, MouseMapper mouse, long ticks)
world
- the world in which the player existskeys
- the currently pressed keysmouse
- the mouse inputticks
- the game time passed since the last call
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |