Class

scroll.internal.Compartment

Player

Related Doc: package Compartment

Permalink

implicit class Player[T <: AnyRef] extends SCROLLDynamic with SCROLLDispatch

Implicit wrapper class to add basic functionality to roles and its players as unified types.

T

type of wrapped object

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Player
  2. SCROLLDispatch
  3. Dispatchable
  4. SCROLLDynamic
  5. Dynamic
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Player(wrapped: T)(implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[T])

    Permalink

    wrapped

    the player or role that is wrapped into this dynamic type

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def applyDynamic[E, A](name: String)(args: A*)(implicit dispatchQuery: DispatchQuery = DispatchQuery.empty): Either[SCROLLError, E]

    Permalink

    Allows to call a function with arguments.

    Allows to call a function with arguments.

    E

    return type

    A

    argument type

    name

    the function name

    args

    the arguments handed over to the given function

    dispatchQuery

    the dispatch rules that should be applied

    returns

    the result of the function call or an appropriate error

    Definition Classes
    PlayerSCROLLDynamic
  5. def applyDynamicNamed[E](name: String)(args: (String, Any)*)(implicit dispatchQuery: DispatchQuery = DispatchQuery.empty): Either[SCROLLError, E]

    Permalink

    Allows to call a function with named arguments.

    Allows to call a function with named arguments.

    E

    return type

    name

    the function name

    args

    tuple with the the name and argument handed over to the given function

    dispatchQuery

    the dispatch rules that should be applied

    returns

    the result of the function call or an appropriate error

    Definition Classes
    PlayerSCROLLDynamic
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def dispatch[E, A](on: Any, m: scala.reflect.api.JavaUniverse.Symbol, args: Seq[A]): Either[InvocationError, E]

    Permalink

    For multi-argument dispatch.

    For multi-argument dispatch.

    E

    the return type of method m

    A

    the type of the argument values

    on

    the instance to dispatch the given method m on

    m

    the method to dispatch

    args

    the arguments to pass to method m

    returns

    the resulting return value of the method invocation or an appropriate error

    Definition Classes
    SCROLLDispatchDispatchable
  9. def dispatch[E](on: Any, m: scala.reflect.api.JavaUniverse.Symbol): Either[InvocationError, E]

    Permalink

    For empty argument list dispatch.

    For empty argument list dispatch.

    E

    the return type of method m

    on

    the instance to dispatch the given method m on

    m

    the method to dispatch

    returns

    the resulting return value of the method invocation or an appropriate error

    Definition Classes
    SCROLLDispatchDispatchable
  10. def drop[R <: AnyRef](role: R)(implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[R]): Player[T]

    Permalink

    Removes the play relation between core and role.

    Removes the play relation between core and role.

    role

    the role that should be removed

    returns

    this

  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(o: Any): Boolean

    Permalink
    Definition Classes
    Player → AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    Player → AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def isPlaying[E](implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[E]): Boolean

    Permalink

    Checks of this Player is playing a role of the given type.

  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def play[R <: AnyRef](role: R)(implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[R]): Player[T]

    Permalink

    Adds a play relation between core and role.

    Adds a play relation between core and role.

    R

    type of role

    role

    the role that should played

    returns

    this

  22. def player(implicit dispatchQuery: DispatchQuery = DispatchQuery.empty): Either[TypeError, Any]

    Permalink

    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.

    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

  23. def playing[R <: AnyRef](role: R)(implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[R]): T

    Permalink

    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.

    R

    type of role

    role

    the role that should played

    returns

    the player instance

  24. def selectDynamic[E](name: String)(implicit dispatchQuery: DispatchQuery = DispatchQuery.empty): Either[SCROLLError, E]

    Permalink

    Allows to read a field.

    Allows to read a field.

    E

    return type

    name

    of the field

    dispatchQuery

    the dispatch rules that should be applied

    returns

    the result of the field access or an appropriate error

    Definition Classes
    PlayerSCROLLDynamic
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. def transfer[R <: AnyRef](role: R)(implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[R]): AnyRef { def to[P <: AnyRef](player: P)(implicit evidence$17: reflect.runtime.universe.WeakTypeTag[P]): Unit }

    Permalink

    Transfers a role to another player.

    Transfers a role to another player.

    R

    type of role

    role

    the role to transfer

  28. def unary_+: Player[T]

    Permalink

    Applies lifting to Player

    Applies lifting to Player

    returns

    an lifted Player instance with the calling object as wrapped.

  29. def updateDynamic(name: String)(value: Any)(implicit dispatchQuery: DispatchQuery = DispatchQuery.empty): Unit

    Permalink

    Allows to write field updates.

    Allows to write field updates.

    name

    of the field

    value

    the new value to write

    dispatchQuery

    the dispatch rules that should be applied

    Definition Classes
    PlayerSCROLLDynamic
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. val wrapped: T

    Permalink

    the player or role that is wrapped into this dynamic type

Inherited from SCROLLDispatch

Inherited from Dispatchable

Inherited from SCROLLDynamic

Inherited from Dynamic

Inherited from AnyRef

Inherited from Any

Ungrouped