class Escapist::Room
- Escapist::Room
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
escapist/room.crConstant Summary
-
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(pull : JSON::PullParser)
- .new(s_rows : Int32 = 1, s_cols : Int32 = 1, key : String = UUID.random.to_s)
Class Method Summary
Instance Method Summary
- #add_door(door : Symbol, room_key, section_index)
- #add_tile_obj(place_type : Symbol, col, row)
- #clear_entered(*args, **options)
- #clear_entered(*args, **options, &)
- #cols
- #display_name
- #doors : RoomDoors
- #draw(window : SF::RenderWindow, p : Player | Nil)
- #draw_border(window)
- #draw_floor(window)
- #draw_tile_cell(window, col, row)
- #draw_tile_grid(window)
- #entered(*args, **options)
- #entered(*args, **options, &)
- #height
- #key : String
- #move_tile_obj(col, row, new_col, new_row)
- #remove_tile_obj(col, row)
- #rows
- #s_cols : Int32
- #s_rows : Int32
- #spawn_player(player, room_key)
- #tile_obj?(col, row)
- #tile_size
- #tiles : TileGrid
- #tiles_near(x, y)
- #update(frame_time, keys : Keys, p : Player | Nil)
- #update_laser_blocks(frame_time)
- #update_laser_switches
- #update_tiles
- #width