Class Wizard
- 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.Wizard
-
public class Wizard extends AnimatedEntity implements Character
An NPC for testing dialogue and quests. The sprite was also fun to make!
-
-
Field Summary
Fields Modifier and Type Field Description private int
ANIMATION_THRESHOLD
private DialogueExchange
dialogue_gotHat
private DialogueExchange
dialogue_meetPlayer
private DialogueExchange
dialogue_playerGeneric
boolean
foundHat
private EntityExpression
foundHatExpression
private EntityExpression
meetPlayerExpression
boolean
metPlayer
boolean
wearingHat
-
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 Wizard()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.newdawn.slick.Image
getCharacterImage()
java.lang.String
getName()
private void
onPlayerInteraction()
Called whenever the player interacts with the wizardvoid
render(org.newdawn.slick.Graphics graphics)
void
setAnimations()
Sets the entity's animationsprotected void
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, onMove, onSectorEnter, onSectorLeave, setPosition, setSprite, setSprite, setSprites, toString, x, x, y, y
-
Methods inherited from class net.egartley.beyondorigins.core.abstracts.Renderable
x, y
-
-
-
-
Field Detail
-
ANIMATION_THRESHOLD
private final int ANIMATION_THRESHOLD
- See Also:
- Constant Field Values
-
meetPlayerExpression
private final EntityExpression meetPlayerExpression
-
foundHatExpression
private final EntityExpression foundHatExpression
-
dialogue_meetPlayer
private final DialogueExchange dialogue_meetPlayer
-
dialogue_gotHat
private final DialogueExchange dialogue_gotHat
-
dialogue_playerGeneric
private final DialogueExchange dialogue_playerGeneric
-
metPlayer
public boolean metPlayer
-
foundHat
public boolean foundHat
-
wearingHat
public boolean wearingHat
-
-
Method Detail
-
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
-
onPlayerInteraction
private void onPlayerInteraction()
Called whenever the player interacts with the wizard
-
setAnimations
public void setAnimations()
Description copied from class:AnimatedEntity
Sets the entity's animations- Specified by:
setAnimations
in classAnimatedEntity
- See Also:
AnimatedEntity.animations
-
setBoundaries
protected void setBoundaries()
Description copied from class:Entity
Sets the entity's boundaries- Specified by:
setBoundaries
in classEntity
- See Also:
Entity.boundaries
-
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
-
-