class Works::Map

Defined in:

works/map.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def destroy #

[View source]
def draw #

[View source]
def get_ore(col, row) #

[View source]
def get_struct(mouse) #

[View source]
def ground : Array(Array(Works::Tile::Base)) #

[View source]
def inbounds?(col, row) #

[View source]
def inbounds?(strct : Struct::Base) #

[View source]
def ore : Array(Array(Works::Tile::Ore::Base?)) #

[View source]
def sheight #

[View source]
def structs : Array(Works::Struct::Base) #

[View source]
def swidth #

[View source]
def sx #

[View source]
def sy #

[View source]
def update #

[View source]
def update_viewport(player_x, player_y) #

[View source]
def viewable?(cell : Cell) #

[View source]
def viewables(cells : Array(Cell)) #

[View source]
def viewables : Array(Works::Cell) #

[View source]
def viewables_grid(cells : Array(Array(Cell | Nil))) #

[View source]
def viewport_col_max #

[View source]
def viewport_col_min #

[View source]
def viewport_row_max #

[View source]
def viewport_row_min #

[View source]
def x : Int32 #

[View source]
def y : Int32 #

[View source]