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.
Contains the effects of an action on the world. |
Object Actions¶
These are all the actions mutating objects in the world.
Removes an object from the world. |
|
Grab and hold objects. |
|
Drops a carried object. |
|
Action that opens doors. |
|
Action that closes doors. |
Move Actions¶
These are all the actions for moving the agent from one location to another.
The class wrapping all Move actions. |
|
Moves the agent North. |
|
Moves the agent North-East. |
|
Moves the agent East. |
|
Moves the agent South-East. |
|
Moves the agent South. |
|
Moves the agent South-West. |
|
Moves the agent West. |
|
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.
Represents the generic (expected) result of an action. |
|
ActionResult for a RemoveObjectAction |
|
ActionResult for a GrabObjectAction |
|
ActionResult for a DropObjectAction. |
|
ActionResult for the OpenDoorAction. |
|
ActionResult for the CloseDoorAction. |
|
ActionResult for a Move action |