public class PlayerWithWeapon extends AbstractCharacter
NAMELIST
GAME_DIAGLENGTH, GAME_DIAGLENGTH2, GAME_EDGELENGTH, OBJECTTYPESCOUNT, SCREEN_DEPTH, SCREEN_DEPTH2, SCREEN_DEPTH4, SCREEN_HEIGHT, SCREEN_HEIGHT2, SCREEN_HEIGHT4, SCREEN_WIDTH, SCREEN_WIDTH2, SCREEN_WIDTH4, VALUESCOUNT
Constructor and Description |
---|
PlayerWithWeapon(Point point)
Creates a player.
|
Modifier and Type | Method and Description |
---|---|
com.badlogic.gdx.math.Vector3 |
getAiming()
Getting aim relative to middle of view by reading mouse position.
|
void |
jump()
Jumps the player
|
void |
setCamera(Camera camera)
Set the camera which is renderin the player to calculate the aiming.
|
damage, dispose, exist, getDirectionVector, getHealt, getMana, isInLiquid, jump, onGround, setDamageSounds, setFallingSound, setJumpingSound, setLandingSound, setMana, setRunningSound, setWaterSound, update, walk
getCategory, getDepth, getName, getPos, setHeight, setPos, shouldBeDisposed
getDimensionZ, getDrawCalls, getId, getLightlevel, getPixmap, getSprite, getSprites, getSpritesheet, getValue, increaseDrawCalls, isClipped, isHidden, isObstacle, isTransparent, loadSheet, prepareColor, render, render, render, render, render, render, render, resetDrawCalls, setClipped, setDimensionZ, setHidden, setLightlevel, setObstacle, setTransparent, setValue, staticDispose, updateStaticUpdates
public PlayerWithWeapon(Point point)
point
- the position of the playerBlock.getInstance(int)
public void jump()
jump
in class AbstractCharacter
AbstractCharacter.jump(float)
public com.badlogic.gdx.math.Vector3 getAiming()
getAiming
in class AbstractCharacter
public void setCamera(Camera camera)
camera
-