src.dcss.actions.action

Module Contents

Classes

Action

This class represents an action that the agent can take.

class src.dcss.actions.action.Action

This class represents an action that the agent can take.

This file contains messages for key actions and text inputs to be sent to webserver, including: * moving around * accessing the inventory * using items * … etc

These keycodes were identified manually be testing commands using Chrome’s develop tools and observing the communications sent through the websockets.

command_to_msg
dcss_menu_chars
static get_execution_repr(command_or_menu_choice)
static get_execution_repr_command(command: dcss.actions.command.Command)

Given a command, return the data that can be sent directly to the game to execute the command. :return: a message data structure that can be sent directly to the game to execute the command.

static get_execution_repr_menuchoice(choice: dcss.actions.menuchoice.MenuChoice)

Given a menuchoice, return the data that can be sent directly to the game to execute the menu selection. :return: a message data structure that can be sent directly to the game to select the desired menu option.

static get_all_commands()
static get_all_move_commands()