class

FogOfWar::Level

Inherits JSON::Serializable < Reference < Object

Constructors

new(border : FogOfWar::Line = Line.new, key : String = UUID.random.to_s)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

border
Source
border_max_x_y
Source
border_min_x_y
Source
display_name
Source
draw(window : SF::RenderWindow, player)
Source
draw_floor_tiles(window)
Source
draw_visibility(window)
Source
explore_tile_check(tile, col, row, player)
Source
floor_tiles
Source
init
Source
init_floor_tiles
Source
min_x
Source
min_y
Source
player_spawn
Source
player_spawn=(player_spawn : Point)
Source
reset_visibility
Source
tile_at(x, y)
Source
update(frame_time, keys : Keys, player : Player)
Source
update_visibility(player : Player)
Source

Nested types