Action

io.github.srs.model.entity.dynamicentity.action.Action
trait Action[F[_]]

Action trait represents an action that can be performed on a dynamic entity.

Type parameters

F

the effect type of the action.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class MovementAction[F]
class NoAction[F]
class SequenceAction[F]

Members list

Value members

Abstract methods

def run[E <: DynamicEntity](e: E)(using a: ActionAlg[F, E]): F[E]

Runs the action using the provided ActionAlg.

Runs the action using the provided ActionAlg.

Type parameters

E

the type of the dynamic entity on which the action will be executed.

Value parameters

a

the ActionAlg to use for executing the action.

e

the dynamic entity on which the action will be executed.

Attributes

Returns

an effectful computation that results in the dynamic entity after the action is executed.