Actions

Agents can change (or mutate) the world through performing actions. When an agent decides on an action it will communicate the action name and potential arguments to the world. The world then checks if the action is indeed possible, and performs that action if so.

matrx.actions.action.Action

Contains the effects of an action on the world.

Object Actions

These are all the actions mutating objects in the world.

matrx.actions.object_actions.RemoveObject

Removes an object from the world.

matrx.actions.object_actions.GrabObject

Grab and hold objects.

matrx.actions.object_actions.DropObject

Drops a carried object.

matrx.actions.door_actions.OpenDoorAction

Action that opens doors.

matrx.actions.door_actions.CloseDoorAction

Action that closes doors.

Move Actions

These are all the actions for moving the agent from one location to another.

matrx.actions.move_actions.Move

The class wrapping all Move actions.

matrx.actions.move_actions.MoveNorth

Moves the agent North.

matrx.actions.move_actions.MoveNorthEast

Moves the agent North-East.

matrx.actions.move_actions.MoveEast

Moves the agent East.

matrx.actions.move_actions.MoveSouthEast

Moves the agent South-East.

matrx.actions.move_actions.MoveSouth

Moves the agent South.

matrx.actions.move_actions.MoveSouthWest

Moves the agent South-West.

matrx.actions.move_actions.MoveWest

Moves the agent West.

matrx.actions.move_actions.MoveNorthWest

Moves the agent North-West.

Action results

The world communicates back to agents how their actions went. This information is wrapped in so-called ‘action results’. Simple wrappers around some data denoting if an action succeeded or not, and the potential reasons for it.

matrx.actions.action.ActionResult

Represents the generic (expected) result of an action.

matrx.actions.object_actions.RemoveObjectResult

ActionResult for a RemoveObjectAction

matrx.actions.object_actions.GrabObjectResult

ActionResult for a GrabObjectAction

matrx.actions.object_actions.DropObjectResult

ActionResult for a DropObjectAction.

matrx.actions.door_actions.OpenDoorActionResult

ActionResult for the OpenDoorAction.

matrx.actions.door_actions.CloseDoorActionResult

ActionResult for the CloseDoorAction.

matrx.actions.move_actions.MoveActionResult

ActionResult for a Move action