updateDelta(matrix,
key,
exp,
turns,
action=None,
dynamics=None,
vector=None,
delta=None)
| source code
|
Updates the given delta by instantiating the given dynamics
- Parameters:
action (Action) - the action performed
dynamics (PWLDynamics) - the dynamics object to instantiate
vector (KeyedVector) - the current state vector
matrix (dict) - the delta matrix so far
key (StateKey) - the key of the delta entry being generated
exp (Document) - the explanation so far
turns (Action→Document) - the dictionary of turn effects
- Returns: KeyedMatrix
- the delta (untouched if passed in, computed if not)
|