class FogOfWar::Level

Included Modules

Defined in:

fog_of_war/level.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(border : FogOfWar::Line = Line.new, key : String = UUID.random.to_s) #

[View source]

Instance Method Detail

def border : Line #

[View source]
def border_max_x_y #

[View source]
def border_min_x_y #

[View source]
def display_name #

[View source]
def draw(window : SF::RenderWindow, player) #

[View source]
def draw_floor_tiles(window) #

[View source]
def draw_visibility(window) #

[View source]
def explore_tile_check(tile, col, row, player) #

[View source]
def floor_tiles : FloorTiles #

[View source]
def init #

[View source]
def init_floor_tiles #

[View source]
def key : String #

[View source]
def min_x : Int32 #

[View source]
def min_y : Int32 #

[View source]
def player_spawn : Point #

[View source]
def player_spawn=(player_spawn : Point) #

[View source]
def reset_visibility #

[View source]
def tile_at(x, y) #

[View source]
def update(frame_time, keys : Keys, player : Player) #

[View source]
def update_visibility(player : Player) #

[View source]