RoleQueriesApi

class Object
trait Matchable
class Any

Value members

Abstract methods

def all[T <: AnyRef : ClassTag](matcher: RoleQueryStrategy): Seq[T]

Query the role playing graph for all player instances that do conform to the given matcher.

Query the role playing graph for all player instances that do conform to the given matcher.

Type Params
T

the type of the player instance to query for

Value Params
matcher

the matcher that should match the queried player instance in the role playing graph

Returns

all player instances as Seq, that do conform to the given matcher

def all[T <: AnyRef : ClassTag](matcher: T => Boolean): Seq[T]

Query the role playing graph for all player instances that do conform to the given function.

Query the role playing graph for all player instances that do conform to the given function.

Type Params
T

the type of the player instance to query for

Value Params
matcher

the matching function that should match the queried player instance in the role playing graph

Returns

all player instances as Seq, that do conform to the given matcher

def one[T <: AnyRef : ClassTag](matcher: RoleQueryStrategy): Either[TypeError, T]

Query the role playing graph for all player instances that do conform to the given matcher and return the first found.

Query the role playing graph for all player instances that do conform to the given matcher and return the first found.

Type Params
T

the type of the player instance to query for

Value Params
matcher

the matcher that should match the queried player instance in the role playing graph

Returns

the first player instance, that does conform to the given matcher or an appropriate error

def one[T <: AnyRef : ClassTag](matcher: T => Boolean): Either[TypeError, T]

Query the role playing graph for all player instances that do conform to the given function and return the first found.

Query the role playing graph for all player instances that do conform to the given function and return the first found.

Type Params
T

the type of the player instance to query for

Value Params
matcher

the matching function that should match the queried player instance in the role playing graph

Returns

the first player instances, that do conform to the given matcher or an appropriate error