Class Dummy
- java.lang.Object
-
- net.egartley.beyondorigins.core.abstracts.Renderable
-
- net.egartley.beyondorigins.core.abstracts.Entity
-
- net.egartley.beyondorigins.core.abstracts.AnimatedEntity
-
- net.egartley.beyondorigins.entities.Dummy
-
public class Dummy extends AnimatedEntity implements Character
-
-
Field Summary
Fields Modifier and Type Field Description private int
ANIMATION_THRESHOLD
private DialogueExchange
dialogue_playerCollision
private byte
dir
private EntityExpression
exp
private boolean
isTalkingToPlayer
private byte
LEFT_ANIMATION
private byte
RIGHT_ANIMATION
private short
walktime
-
Fields inherited from class net.egartley.beyondorigins.core.abstracts.AnimatedEntity
animation, animations
-
Fields inherited from class net.egartley.beyondorigins.core.abstracts.Entity
boundaries, canCollide, defaultBoundary, deltaX, deltaY, DIRECTION_DOWN, DIRECTION_LEFT, DIRECTION_RIGHT, DIRECTION_UP, firstLayer, health, image, interactions, inventory, isAllowedToMoveDownwards, isAllowedToMoveLeftwards, isAllowedToMoveRightwards, isAllowedToMoveUpwards, isAnimated, isCollided, isDualRendered, isMovingDownwards, isMovingLeftwards, isMovingRightwards, isMovingUpwards, isSectorSpecific, isTraversable, lastCollision, lastCollisionEvent, maximumHealth, name, secondLayer, sheets, speed, sprite, sprites, uuid
-
-
Constructor Summary
Constructors Constructor Description Dummy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.newdawn.slick.Image
getCharacterImage()
java.lang.String
getName()
protected void
onMove(byte direction)
Called whenever the entity movesvoid
onSectorEnter(MapSector entering)
void
onSectorLeave(MapSector leaving)
void
render(org.newdawn.slick.Graphics graphics)
void
setAnimations()
Sets the entity's animationsvoid
setBoundaries()
Sets the entity's boundariesvoid
setCollisions()
Sets the entity's collisionsvoid
setInteractions()
Sets the entity's interactionsvoid
tick()
Ticks boundaries and interactions-
Methods inherited from class net.egartley.beyondorigins.core.abstracts.AnimatedEntity
switchAnimation
-
Methods inherited from class net.egartley.beyondorigins.core.abstracts.Entity
allowAllMovement, drawDebug, drawFirstLayer, drawSecondLayer, move, setPosition, setSprite, setSprite, setSprites, toString, x, x, y, y
-
Methods inherited from class net.egartley.beyondorigins.core.abstracts.Renderable
x, y
-
-
-
-
Field Detail
-
walktime
private short walktime
-
isTalkingToPlayer
private boolean isTalkingToPlayer
-
dir
private byte dir
-
LEFT_ANIMATION
private final byte LEFT_ANIMATION
- See Also:
- Constant Field Values
-
RIGHT_ANIMATION
private final byte RIGHT_ANIMATION
- See Also:
- Constant Field Values
-
ANIMATION_THRESHOLD
private final int ANIMATION_THRESHOLD
- See Also:
- Constant Field Values
-
exp
private final EntityExpression exp
-
dialogue_playerCollision
private final DialogueExchange dialogue_playerCollision
-
-
Method Detail
-
onSectorEnter
public void onSectorEnter(MapSector entering)
- Overrides:
onSectorEnter
in classEntity
-
onSectorLeave
public void onSectorLeave(MapSector leaving)
- Overrides:
onSectorLeave
in classEntity
-
tick
public void tick()
Description copied from class:Entity
Ticks boundaries and interactions- Specified by:
tick
in interfaceTickable
- Overrides:
tick
in classEntity
- See Also:
Entity.boundaries
-
render
public void render(org.newdawn.slick.Graphics graphics)
Description copied from class:Entity
- Overrides:
render
in classAnimatedEntity
-
onMove
protected void onMove(byte direction)
Description copied from class:Entity
Called whenever the entity moves- Overrides:
onMove
in classEntity
- Parameters:
direction
- Which direction the entity moved in- See Also:
Entity.DIRECTION_UP
,Entity.DIRECTION_DOWN
,Entity.DIRECTION_LEFT
,Entity.DIRECTION_RIGHT
,Entity.move(byte)
-
setBoundaries
public void setBoundaries()
Description copied from class:Entity
Sets the entity's boundaries- Specified by:
setBoundaries
in classEntity
- See Also:
Entity.boundaries
-
setAnimations
public void setAnimations()
Description copied from class:AnimatedEntity
Sets the entity's animations- Specified by:
setAnimations
in classAnimatedEntity
- See Also:
AnimatedEntity.animations
-
setCollisions
public void setCollisions()
Description copied from class:Entity
Sets the entity's collisions- Specified by:
setCollisions
in classEntity
- See Also:
Entity.boundaries
-
setInteractions
public void setInteractions()
Description copied from class:Entity
Sets the entity's interactions- Specified by:
setInteractions
in classEntity
- See Also:
Entity.interactions
-
getCharacterImage
public org.newdawn.slick.Image getCharacterImage()
- Specified by:
getCharacterImage
in interfaceCharacter
-
-