Class Player
java.lang.Object
com.badlogic.gdx.scenes.scene2d.Actor
group24.escaperoom.entities.player.Player
- All Implemented Interfaces:
Drawable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidact(float delta) voidvoidvoiddraw(com.badlogic.gdx.graphics.g2d.Batch batch) Draw this Drawable on theBatchvoiddraw(com.badlogic.gdx.graphics.g2d.Batch batch, float parentAlpha) voidcom.badlogic.gdx.math.Vector2com.badlogic.gdx.utils.Array<Item>com.badlogic.gdx.utils.Array<Item>com.badlogic.gdx.math.Rectanglecom.badlogic.gdx.math.Vector2intintbooleanvoidcom.badlogic.gdx.math.Vector2position()voidvoidvoidintvoidsetDetails(PlayerDetails details) voidsetInventoryOpen(boolean isOpen) voidsetPosition(float x, float y) voidsetSize(int width, int height) voidsetTexture(com.badlogic.gdx.graphics.g2d.TextureAtlas.AtlasRegion texture) voidstepAnimation(float delta) Methods inherited from class com.badlogic.gdx.scenes.scene2d.Actor
addAction, addCaptureListener, addListener, ancestorsVisible, ascendantsVisible, clear, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, drawDebug, drawDebugBounds, fire, firstAscendant, getActions, getCaptureListeners, getColor, getDebug, getHeight, getListeners, getName, getOriginX, getOriginY, getParent, getRight, getRotation, getScaleX, getScaleY, getStage, getTop, getTouchable, getUserObject, getWidth, getX, getX, getY, getY, getZIndex, hasActions, hasKeyboardFocus, hasParent, hasScrollFocus, hit, isAscendantOf, isDescendantOf, isTouchable, isTouchFocusListener, isTouchFocusTarget, isVisible, localToActorCoordinates, localToAscendantCoordinates, localToParentCoordinates, localToScreenCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, positionChanged, remove, removeAction, removeCaptureListener, removeListener, rotateBy, rotationChanged, scaleBy, scaleBy, scaleChanged, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setParent, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setStage, setTouchable, setUserObject, setVisible, setWidth, setX, setX, setY, setY, setZIndex, sizeBy, sizeBy, sizeChanged, stageToLocalCoordinates, toBack, toFront, toString
-
Field Details
-
stats
-
renderPriority
public int renderPriority
-
-
Constructor Details
-
Player
-
-
Method Details
-
getGameScreen
-
getDirection
-
setDetails
-
setSize
public void setSize(int width, int height) -
setTexture
public void setTexture(com.badlogic.gdx.graphics.g2d.TextureAtlas.AtlasRegion texture) -
act
public void act(float delta) - Overrides:
actin classcom.badlogic.gdx.scenes.scene2d.Actor
-
setPosition
public void setPosition(float x, float y) - Overrides:
setPositionin classcom.badlogic.gdx.scenes.scene2d.Actor
-
calculateStatistics
-
draw
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float parentAlpha) - Overrides:
drawin classcom.badlogic.gdx.scenes.scene2d.Actor
-
getRenderPriority
public int getRenderPriority() -
getPosition
public com.badlogic.gdx.math.Vector2 getPosition() -
getCenter
public com.badlogic.gdx.math.Vector2 getCenter() -
findInteractables
public void findInteractables() -
getFocusCanidates
-
getFocusedItem
-
openInventory
public void openInventory() -
getInventory
-
getInventoryIDs
-
removeItemFromInventory
-
addItemToInventory
-
isInventoryOpen
public boolean isInventoryOpen() -
setInventoryOpen
public void setInventoryOpen(boolean isOpen) -
printInventory
public void printInventory() -
registerBinds
public void registerBinds() -
stepAnimation
public void stepAnimation(float delta) -
getOccupiedRegion
public com.badlogic.gdx.math.Rectangle getOccupiedRegion() -
renderPriority
public int renderPriority()- Specified by:
renderPriorityin interfaceDrawable- Returns:
- the renderPriority of this Drawable
-
draw
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch) Description copied from interface:DrawableDraw this Drawable on theBatch -
position
public com.badlogic.gdx.math.Vector2 position() -
getTileDepth
public int getTileDepth()- Specified by:
getTileDepthin interfaceDrawable- Returns:
- the tile depth of this Drawable
-