CreatureUseCase
scalata.application.usecases.CreatureUseCase
Generic action performed by a creature (player, enemy).
-
U – result type returned by the action.
-
P – parameter consumed by the action (direction, item name, …).
-
execute– pure function; takes the currentGameSessionand returns an updated value of type U.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class EnemyAttackUseCaseclass EnemyMovementUseCaseclass PlayerAttackUseCaseclass PlayerInteractUseCaseclass PlayerInventoryUseCaseclass PlayerMovementUseCase
Members list
In this article