class Escapist::MiniMap

Defined in:

escapist/mini_map.cr

Constant Summary

BorderOutlineColor = SF::Color.new(153, 153, 153)
BorderOutlineThickness = 2
CellColor = SF::Color.new(51, 51, 51, 51)
CellInColor = SF::Color.new(51, 51, 51, 153)
CellOutlineColor = SF::Color.new(153, 153, 153, 51)
CellOutlineThickness = 2
CellSize = 48
Margin = 32

Constructors

Instance Method Summary

Constructor Detail

def self.new(tr_x : Int32, tr_y : Int32, floor_data : Escapist::FloorData, floor : Escapist::Floor) #

[View source]

Instance Method Detail

def draw(window : SF::RenderWindow) #

[View source]
def draw_border(window) #

[View source]
def draw_grid(window) #

[View source]
def draw_room(window, row_index, col_index, room, is_player_in = false) #

[View source]
def grid(*args, **options) #

[View source]
def grid(*args, **options, &) #

[View source]
def height #

[View source]
def rooms(*args, **options) #

[View source]
def rooms(*args, **options, &) #

[View source]
def width #

[View source]
def x #

[View source]
def y #

[View source]