RoleQueriesApi

scroll.internal.support.RoleQueriesApi

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class RoleQueries

Members list

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 parameters

T

the type of the player instance to query for

Value parameters

matcher

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

Attributes

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 parameters

T

the type of the player instance to query for

Value parameters

matcher

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

Attributes

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 parameters

T

the type of the player instance to query for

Value parameters

matcher

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

Attributes

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 parameters

T

the type of the player instance to query for

Value parameters

matcher

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

Attributes

Returns

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