Package engine.entity.trigger
Class Interaction
java.lang.Object
engine.entity.AbstractEntity
engine.entity.trigger.Trigger
engine.entity.trigger.Interaction
- All Implemented Interfaces:
Comparable<AbstractEntity>
-
Field Summary
FieldsFields inherited from class engine.entity.AbstractEntity
hurtColor -
Constructor Summary
ConstructorsConstructorDescriptionInteraction(float x, float y, float w, float h, AbstractEntity i, AbstractAbility a, Triggers t) -
Method Summary
Modifier and TypeMethodDescriptionstatic InteractioncreateInteraction(Room r, AbstractMove m, AbstractEntity e, AbstractAbility a, Triggers t) booleanisDelete()booleanisMarked()voidshow()voidupdate()Methods inherited from class engine.entity.trigger.Trigger
getCastDir, getCaster, getCastID, getTrigger, getType, interactMethods inherited from class engine.entity.AbstractEntity
addX, addXY, addY, calculateHash, compareTo, equals, getAbilities, getAnimator, getColorList, getH, getHash, getID, getImg, getMoveSet, getMoveSetType, getOverDir, getOverState, getPotential, getRH, getRoom, getRoomList, getRW, getRX, getRY, getW, getX, getXY, getXYWH, getY, isBreakable, isTangible, setOverDir, setOverState, setX, setXY, setY, toString
-
Field Details
-
a
-
t
-
-
Constructor Details
-
Interaction
public Interaction(float x, float y, float w, float h, AbstractEntity i, AbstractAbility a, Triggers t)
-
-
Method Details
-
createInteraction
public static Interaction createInteraction(Room r, AbstractMove m, AbstractEntity e, AbstractAbility a, Triggers t) -
update
public void update() -
show
public void show()- Overrides:
showin classAbstractEntity
-
getTriggerType
- Specified by:
getTriggerTypein classTrigger
-
isDelete
public boolean isDelete()- Specified by:
isDeletein classAbstractEntity
-
isMarked
public boolean isMarked()- Specified by:
isMarkedin classAbstractEntity
-