Actuator

io.github.srs.model.entity.dynamicentity.actuator.Actuator
trait Actuator[E <: DynamicEntity]

Represents an actuator for a dynamic entity.

Type parameters

E

the type of dynamic entity that the actuator can act upon.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def act[F[_] : Monad](dt: FiniteDuration, entity: E): F[E]

Performs an action on the entity after a specified duration.

Performs an action on the entity after a specified duration.

Type parameters

F

the effect type in which the action is performed, a Monad.

Value parameters

dt

the duration after which the action is performed.

entity

the dynamic entity on which the action is performed.

Attributes

Returns

the updated entity after the action is performed.