scalata.domain.entities.Enemy
Hostile creature.
-
enemyType – family/glyph (goblin, pig, …).
-
position – current tile.
-
health / maxHealth – hit-points pool.
-
attackPower – raw damage inflicted to a player.
All mutators return a new Enemy; no in-place changes.
Attributes
-
Graph
-
-
Supertypes
-
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Members list
Resolve an attack against opponent.
Resolve an attack against opponent.
Attributes
-
Definition Classes
-
Heal the entity (never exceeds maxHealth).
Heal the entity (never exceeds maxHealth).
Attributes
-
Definition Classes
-
Attributes
-
Definition Classes
-
Produce a copy of the entity at pos.
Produce a copy of the entity at pos.
Attributes
-
Definition Classes
-
Apply damage and return the updated entity.
Apply damage and return the updated entity.
Attributes
-
Definition Classes
-
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
-
Returns
-
a string representation of the object.
-
Definition Classes
-
Any
Attributes
-
Inherited from:
-
Product
Attributes
-
Inherited from:
-
Product