indigoextras.jobs
Members list
Type members
Classlikes
A trait that when extended represents a job that can be done. Jobs have names and can be local to the worker, or globalablly available
A trait that when extended represents a job that can be done. Jobs have names and can be local to the worker, or globalablly available
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
The JobMarket is a subsystem that manages a global pool of available jobs.
The JobMarket is a subsystem that manages a global pool of available jobs.
Not all jobs are available to all workers however.
All interaction with the job market is done by a series of events.
Value parameters
- availableJobs
-
Jobs currently available for allocation to workers.
Attributes
Events that are used to manage the JobMarket
Events that are used to manage the JobMarket
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait GlobalEventclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
JobMarketEvent.type
The context the work is being done in, similar to frame context, work is not done in a vacuum.
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
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Encapsulates an updated schedule and an updated actor. Work is done by workers, but work can also affect workers, e.g. making them stronger, smarter, or tired.
Encapsulates an updated schedule and an updated actor. Work is done by workers, but work can also affect workers, e.g. making them stronger, smarter, or tired.
Value parameters
- actor
-
The updated actor.
- workSchedule
-
The updated work schedule.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents an Actor's work schedule
Represents an Actor's work schedule
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
WorkSchedule.type
Represents a Worker for a given Actor
Represents a Worker for a given Actor
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Types
A simple type to distingush job names from other strings.
A simple type to distingush job names from other strings.
Value parameters
- value
-
the name of the job