PlayerManagers

model.managers.movements.PlayerManagers

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class Context[P <: Player[P]](player: P, games: Seq[Game])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class GamesAttractivenessManager[C <: Player[C] & BoredomFrustration[C]](frustrationIncrease: Double, weight: Double) extends WeightedManager[Context[C]]

This manager will make the player go towards its favourite type of game. If the game is not present, its direction is unaltered and its frustration is increased by frustration

This manager will make the player go towards its favourite type of game. If the game is not present, its direction is unaltered and its frustration is increased by frustration

Type parameters

C

the customer concrete type

Value parameters

frustrationIncrease

the increase in frustration when the favourite game is not found

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait BaseManager[Context[C]]
class Object
trait Matchable
class Any
Show all
case class PlayerSitterManager[C <: Player[C]](sittingRadius: Double) extends BaseManager[Context[C]]

This manager make the player sits to its favourite game is it is within the sittingRadius

This manager make the player sits to its favourite game is it is within the sittingRadius

Type parameters

C

the concrete type the player

Value parameters

sittingRadius

the radius within the player will sit to a game

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait BaseManager[Context[C]]
class Object
trait Matchable
class Any
Show all