public class Player extends Entity implements Damageable
| Modifier and Type | Class and Description |
|---|---|
static class |
Player.WalkDirection |
| Constructor and Description |
|---|
Player(com.badlogic.gdx.assets.AssetManager assets,
Game game,
com.badlogic.gdx.maps.tiled.TiledMap map) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
void |
draw(com.badlogic.gdx.graphics.g2d.Batch batch) |
com.badlogic.gdx.maps.tiled.TiledMap |
getCurrentMap() |
static int |
getTotalHearts() |
Player.WalkDirection |
getWalkDirection() |
void |
onDamaged() |
void |
setCurrentMap(java.lang.String params) |
void |
setWalkDirection(Player.WalkDirection walkDirection) |
compareTo, equals, getLifes, getName, getSpeed, getUUID, getVelocity, hashCode, setVelocity, setVelocityX, setVelocityY, toStringdraw, flip, getBoundingRectangle, getColor, getHeight, getOriginX, getOriginY, getRotation, getScaleX, getScaleY, getVertices, getWidth, getX, getY, rotate, rotate90, scale, scroll, set, setAlpha, setBounds, setCenter, setCenterX, setCenterY, setColor, setColor, setColor, setFlip, setOrigin, setOriginCenter, setPosition, setRegion, setRotation, setScale, setScale, setSize, setU, setU2, setV, setV2, setX, setY, translate, translateX, translateYgetRegionHeight, getRegionWidth, getRegionX, getRegionY, getTexture, getU, getU2, getV, getV2, isFlipX, isFlipY, setRegion, setRegion, setRegion, setRegion, setRegionHeight, setRegionWidth, setRegionX, setRegionY, setTexture, split, splitpublic Player(com.badlogic.gdx.assets.AssetManager assets,
Game game,
com.badlogic.gdx.maps.tiled.TiledMap map)
public static int getTotalHearts()
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch)
draw in class com.badlogic.gdx.graphics.g2d.Spritepublic void onDamaged()
onDamaged in interface Damageablepublic Player.WalkDirection getWalkDirection()
public void setWalkDirection(Player.WalkDirection walkDirection)
public com.badlogic.gdx.maps.tiled.TiledMap getCurrentMap()
public void setCurrentMap(java.lang.String params)
public void dispose()
dispose in interface com.badlogic.gdx.utils.Disposable