Action

Source:

Local role: Represents one actor-driven state transition in one world and one space.

Big-picture role: Operational unit tying Actor, World, ResourceEffect, and ActionPrerequisite.

Inheritance:

Parameters and fields:

  • object_type: str = "action"
  • actor_id: ObjectId
  • world_id: ObjectId
  • space_id: ObjectId
  • action_type: str
  • resource_effects: List[ResourceEffect]
  • prerequisites: List[ActionPrerequisite]
  • outcome_description: str
  • state_changes: JsonMap

Methods:

  • add_resource_effect(...)
  • add_prerequisite(...)
  • set_state_change(...)
  • to_dict(...), from_dict(...)

See also:

Ometeotl

A Python library to build complex multi-agent simulations, wargames, and AI-driven strategies