src.dcss.state.cellmap
Module Contents
Classes
Data structure that maintains the set of all cells currently seen in the game. |
- class src.dcss.state.cellmap.CellMap
Data structure that maintains the set of all cells currently seen in the game.
- add_or_update_cell(x, y, vals)
- set_agent_x(x)
- set_agent_y(y)
- draw_cell_map()
- set_current_depth(depth: int)
- set_current_place(place: str)
- get_radius_around_agent_vector(r=2, tile_vector_repr='simple')
Returns a vector of tiles around the agent. The length of the vector is (2r+1)^2
- get_radius_around_agent_cells(r=2)
Returns a list of Cell objects around the agent, given a radius.
- get_radius_around_agent_str(r=8)
- get_cell_map_pddl_global()
Returns PDDL object and fact statements for the entire game so far, including multiple levels
- get_cell_map_pddl_radius(radius=8)
Returns PDDL objects and facts for the current level with the given radius (default=8)
- get_xy_to_cells_dict()
- get_player_cell()