CreatureUseCase

scalata.application.usecases.CreatureUseCase
trait CreatureUseCase[U, P]

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 current GameSession and returns an updated value of type U.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def execute(param: P, gameSession: GameSession): U