Player

implicit
class Player[W <: AnyRef](val wrapped: W)(implicit evidence$2: ClassTag[W]) extends IPlayer[W, Player[W]] with SCROLLDynamic
class IPlayer[W, Player[W]]
trait Dynamic
class Object
trait Matchable
class Any

Type members

Inherited classlikes

protected
class TransferToBuilder[R <: AnyRef](role: R)(implicit evidence$6: ClassTag[R])
Inherited from
IPlayer

Value members

Concrete methods

override
def applyDynamic[E](name: String)(args: Any*)(using dispatchQuery: DispatchQuery): Either[SCROLLError, E]
Definition Classes
override
def applyDynamicNamed[E](name: String)(args: (String, Any)*)(using dispatchQuery: DispatchQuery): Either[SCROLLError, E]
Definition Classes
def hashCode()(using dispatchQuery: DispatchQuery): Int
override
def selectDynamic[E](name: String)(using dispatchQuery: DispatchQuery): Either[SCROLLError, E]
Definition Classes
def toString()(using dispatchQuery: DispatchQuery): String
override
def updateDynamic(name: String)(value: Any)(using dispatchQuery: DispatchQuery): Unit
Definition Classes

Inherited methods

def <+>[R <: AnyRef : ClassTag](role: R): Player[W]

Alias for IPlayer.play.

Alias for IPlayer.play.

Type Params
R

type of role

Value Params
role

the role that should be played

Returns

this

Inherited from
IPlayer
def <->(role: AnyRef): Player[W]

Alias for IPlayer.drop.

Alias for IPlayer.drop.

Value Params
role

the role that should be removed

Returns

this

Inherited from
IPlayer
def <=>[R <: AnyRef : ClassTag](role: R): W

Alias for IPlayer.playing.

Alias for IPlayer.playing.

Type Params
R

type of role

Value Params
role

the role that should played

Returns

the player instance

Inherited from
IPlayer
override
def dispatch[E](on: AnyRef, m: Method, args: Seq[Any]): Either[InvocationError, E]
Definition Classes
Inherited from
SCROLLDispatchable
def drop(role: AnyRef): Player[W]

Removes the play relation between core and role.

Removes the play relation between core and role.

Value Params
role

the role that should be removed

Returns

this

Inherited from
IPlayer
override
def equals(o: Any): Boolean
Definition Classes
IPlayer -> Any
Inherited from
IPlayer
def facets(): Seq[Value]

Returns a Seq of all facets attached to this player.

Returns a Seq of all facets attached to this player.

Returns

a Seq of all facets of this player including the player object itself. Returns an empty Seq if this player is not in the role-playing graph.

Inherited from
IPlayer
def hasExtension[E <: AnyRef : ClassTag]: Boolean

Checks of this IPlayer has an extension of the given type. Alias for IPlayer.isPlaying.

Checks of this IPlayer has an extension of the given type. Alias for IPlayer.isPlaying.

Inherited from
IPlayer
def hasFacets(f: Value*): Boolean

Checks if this IPlayer has all of the given facet(s) attached.

Checks if this IPlayer has all of the given facet(s) attached.

Value Params
f

the facet(s)

Returns

true if this player has all of the given facets attached, false otherwise.

Inherited from
IPlayer
def hasSomeFacet(f: Value*): Boolean

Checks if this IPlayer has at least one of the given facets attached.

Checks if this IPlayer has at least one of the given facets attached.

Value Params
f

the facets

Returns

true if this player has at least one of the given facets attached, false otherwise.

Inherited from
IPlayer
override
def hashCode(): Int
Definition Classes
IPlayer -> Any
Inherited from
IPlayer
def isPlaying[R <: AnyRef : ClassTag]: Boolean

Checks of this IPlayer is playing a role of the given type R.

Checks of this IPlayer is playing a role of the given type R.

Type Params
R

type of role

Returns

true if this player is playing a role of type R, false otherwise. Returns false also, if the player is not available in the role-playing graph.

Inherited from
IPlayer
def play[R <: AnyRef : ClassTag](role: R): Player[W]

Adds a play relation between core and role.

Adds a play relation between core and role.

Type Params
R

type of role

Value Params
role

the role that should be played

Returns

this

Inherited from
IPlayer
def player(using dispatchQuery: DispatchQuery): Either[TypeError, AnyRef]

Returns the player of this player instance if this is a role, or this itself.

Returns the player of this player instance if this is a role, or this itself.

Value Params
dispatchQuery

provide this to sort the resulting instances if a role instance is played by multiple core objects

Returns

the player of this player instance if this is a role, or this itself or an appropriate error

Inherited from
IPlayer
def playing[R <: AnyRef : ClassTag](role: R): W

Adds a play relation between core and role but always returns the player instance.

Adds a play relation between core and role but always returns the player instance.

Type Params
R

type of role

Value Params
role

the role that should played

Returns

the player instance

Inherited from
IPlayer
def predecessors(): Seq[AnyRef]

Returns a list of all predecessors of this player, i.e., a transitive closure of its cores (deep roles).

Returns a list of all predecessors of this player, i.e., a transitive closure of its cores (deep roles).

Returns

a list of all predecessors of this player

Inherited from
IPlayer
def remove(): Unit

Removes this player from the graph.

Removes this player from the graph.

Inherited from
IPlayer
def roles(): Seq[AnyRef]

Returns a Seq of all roles attached to this player.

Returns a Seq of all roles attached to this player.

Returns

a Seq of all roles of this player. Returns an empty Seq if this player is not in the role-playing graph.

Inherited from
IPlayer
def transfer[R <: AnyRef : ClassTag](role: R): TransferToBuilder[R]

Transfers a role to another player.

Transfers a role to another player.

Type Params
R

type of role

Value Params
role

the role to transfer

Inherited from
IPlayer
def unary_+: Player[W]

Applies lifting to IPlayer

Applies lifting to IPlayer

Returns

an lifted IPlayer instance with the calling object as wrapped.

Inherited from
IPlayer

Concrete fields

override
val wrapped: W