RoleQueries

scroll.internal.support.impl.RoleQueries
class RoleQueries(roleGraph: RoleGraphProxyApi) extends RoleQueriesApi

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override 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

Definition Classes
override 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

Definition Classes
override 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

Definition Classes
override 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

Definition Classes