Interface ICombatEntity
- All Superinterfaces:
ICollisionEntity
,IEntity
- All Known Implementing Classes:
CombatEntity
,Creature
,Prop
public interface ICombatEntity
extends ICollisionEntity
Method Summary
Modifier and Type Method Description void
addCombatEntityListener(CombatEntityListener listener)
void
die()
java.util.List<Effect>
getAppliedEffects()
java.awt.Shape
getHitBox()
RangeAttribute<java.lang.Integer>
getHitPoints()
ICombatEntity
getTarget()
int
getTeam()
void
hit(int damage)
void
hit(int damage, Ability ability)
boolean
isDead()
boolean
isFriendly(ICombatEntity entity)
boolean
isIndestructible()
boolean
isNeutral()
void
onDeath(CombatEntityDeathListener listener)
void
onHit(CombatEntityHitListener listener)
void
onResurrect(CombatEntityResurrectListener listener)
void
removeCombatEntityListener(CombatEntityListener listener)
void
removeListener(CombatEntityDeathListener listener)
void
removeListener(CombatEntityHitListener listener)
void
removeListener(CombatEntityResurrectListener listener)
void
resurrect()
void
setIndestructible(boolean indestructible)
void
setTarget(ICombatEntity target)
void
setTeam(int team)
boolean
wasHit(int timeSpan)
Methods inherited from interface de.gurkenlabs.litiengine.entities.ICollisionEntity
canCollideWith, fireCollisionEvent, getCollisionBox, getCollisionBox, getCollisionBoxAlign, getCollisionBoxCenter, getCollisionBoxHeight, getCollisionBoxValign, getCollisionBoxWidth, getCollisionType, hasCollision, onCollision, removeCollisionListener, setCollision, setCollisionBoxAlign, setCollisionBoxHeight, setCollisionBoxValign, setCollisionBoxWidth, setCollisionType
Methods inherited from interface de.gurkenlabs.litiengine.entities.IEntity
actions, addController, addEntityRenderListener, addListener, addTag, addTransformListener, animations, attachControllers, behavior, detachControllers, getAngle, getBoundingBox, getCenter, getController, getEnvironment, getHeight, getLocation, getMapId, getName, getProperties, getRenderType, getTags, getWidth, getX, getY, hasTag, isLoaded, isVisible, loaded, onMessage, onMessage, onRendered, perform, register, removed, removeListener, removeListener, removeListener, removeListener, removeListener, removeTag, renderWithLayer, sendMessage, setAngle, setController, setHeight, setLocation, setLocation, setMapId, setName, setRenderType, setRenderWithLayer, setSize, setVisible, setWidth, setX, setY
Method Details
addCombatEntityListener
removeCombatEntityListener
onHit
removeListener
onDeath
removeListener
onResurrect
removeListener
die
void die()getAppliedEffects
java.util.List<Effect> getAppliedEffects()getHitPoints
RangeAttribute<java.lang.Integer> getHitPoints()getHitBox
java.awt.Shape getHitBox()getTarget
ICombatEntity getTarget()getTeam
int getTeam()hit
void hit(int damage)hit
isDead
boolean isDead()isFriendly
isIndestructible
boolean isIndestructible()isNeutral
boolean isNeutral()resurrect
void resurrect()setIndestructible
void setIndestructible(boolean indestructible)setTarget
setTeam
void setTeam(int team)wasHit
boolean wasHit(int timeSpan)