class

Escapist::Room

Inherits JSON::Serializable < Reference < Object

Constants

BorderColor = SF::Color.new(102, 102, 102)
BorderOutlineThickness = 8
SectionTiles = 15
TileFloorColor = SF::Color.new(6, 6, 6)
TileGridColor = SF::Color.new(13, 13, 13)
TileGridOutlineThickness = 2
TileSize = 128

Constructors

new(s_rows : Int32 = 1, s_cols : Int32 = 1, key : String = UUID.random.to_s)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

tile_size
Source

Instance methods

add_door(door : Symbol, room_key, section_index)
Source
add_tile_obj(place_type : Symbol, col, row)
Source
clear_entered(*args, **options)
Source
clear_entered(*args, **options, &)
Source
cols
Source
display_name
Source
doors
Source
draw(window : SF::RenderWindow, p : Player | Nil)
Source
draw_border(window)
Source
draw_floor(window)
Source
draw_tile_cell(window, col, row)
Source
draw_tile_grid(window)
Source
entered(*args, **options)
Source
entered(*args, **options, &)
Source
height
Source
move_tile_obj(col, row, new_col, new_row)
Source
remove_tile_obj(col, row)
Source
rows
Source
s_cols
Source
s_rows
Source
spawn_player(player, room_key)
Source
tile_obj?(col, row)
Source
tile_size
Source
tiles
Source
tiles_near(x, y)
Source
update(frame_time, keys : Keys, p : Player | Nil)
Source
update_laser_blocks(frame_time)
Source
update_laser_switches
Source
update_tiles
Source
width
Source

Nested types