Movable
scalata.domain.entities.components.Movable
Capability mix-in for entities that can change their position.
==== Contract ====
-
position – current tile coordinate.
-
move – returns a new instance at a different
Point2D; never mutates in place.
Type parameters
- E
-
concrete entity type that implements the trait
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Members list
In this article