RolePlayingApi

class Object
trait Matchable
class Any

Value members

Abstract methods

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 Params
C

type of core

R

type of role

Value Params
core

the core to add the given role at

role

the role that should added to the given core

def allPlayers: Seq[AnyRef]

Returns a Seq of all players

Returns a Seq of all players

Returns

a Seq of all players

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 Params
player

the player to remove

def removePlaysRelation(core: AnyRef, role: AnyRef): Unit

Removes the play relation between core and role.

Removes the play relation between core and role.

Value Params
core

the core the given role should removed from

role

the role that should removed from the given core

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 Params
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 Params
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