RolePlaying

scroll.internal.support.impl.RolePlaying
class RolePlaying(roleGraph: RoleGraphProxyApi, roleRestrictions: RoleRestrictionsApi) extends RolePlayingApi

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def addPlaysRelation[C <: AnyRef : ClassTag, R <: AnyRef : ClassTag](core: C, role: R): Unit

Adds a play relation between core and role.

Adds a play relation between core and role.

Type parameters

C

type of core

R

type of role

Value parameters

core

the core to add the given role at

role

the role that should added to the given core

Attributes

Definition Classes
override def allPlayers: Seq[AnyRef]

Returns a Seq of all players

Returns a Seq of all players

Attributes

Returns

a Seq of all players

Definition Classes
override def removePlayer(player: AnyRef): Unit

Removes the given player from the graph. This should remove its binding too!

Removes the given player from the graph. This should remove its binding too!

Value parameters

player

the player to remove

Attributes

Definition Classes
override def removePlaysRelation(core: AnyRef, role: AnyRef): Unit

Removes the play relation between core and role.

Removes the play relation between core and role.

Value parameters

core

the core the given role should removed from

role

the role that should removed from the given core

Attributes

Definition Classes
override def transferRole[F <: AnyRef : ClassTag, T <: AnyRef : ClassTag, R <: AnyRef : ClassTag](coreFrom: F, coreTo: T, role: R): Unit

Transfers a role from one core to another.

Transfers a role from one core to another.

Type parameters

F

type of core the given role should be removed from

R

type of role

T

type of core the given role should be attached to

Value parameters

coreFrom

the core the given role should be removed from

coreTo

the core the given role should be attached to

role

the role that should be transferred

Attributes

Definition Classes