GamesAttractivenessManager

model.managers.movements.PlayerManagers.GamesAttractivenessManager
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

Type parameters

C

the customer concrete type

Value parameters

frustrationIncrease

the increase in frustration when the favourite game is not found

Attributes

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

Members list

Value members

Concrete methods

override def update(slice: Context[C]): Context[C]

Updates a given slice of the simulation state.

Updates a given slice of the simulation state.

This method encapsulates the core logic of the manager, transforming an input state into an updated state.

Value parameters

slice

The input state slice to be updated.

Attributes

Returns

The updated state slice.

Definition Classes
override def updatedWeight(weight: Double): WeightedManager[Context[C]]

Value parameters

weight

the new value for weight

Attributes

Returns

a new manager with the given weight

Definition Classes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product