API Docs for:
Show:

TUDelft.Gamygdala.Relation Class

Defined in: Gamygdala.js:832

This is the class that represents a relation one agent has with other agents. It's main role is to store and manage the emotions felt for a target agent (e.g angry at, or pity for). Each agent maintains a list of relations, one relation for each target agent.

Constructor

TUDelft.Gamygdala.Relation

(
  • targetName
  • relation
)

Defined in Gamygdala.js:832

Parameters:

  • targetName String

    The agent who is the target of the relation.

  • relation Double

    The relation [-1 and 1].

Item Index