WorkContext

indigoextras.jobs.WorkContext
final case class WorkContext[Actor, Context](gameTime: GameTime, dice: Dice, actor: Actor, context: Context)

The context the work is being done in, similar to frame context, work is not done in a vacuum.

Value parameters

actor

An instance of the actor, for asking question like "Can the actor do the work?"

context

A free form type, e.g.: A list of other characters the worker can see.

dice

A dice for random number generation.

gameTime

The supplied game time.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product