class Works::Tile::Dirt

Defined in:

works/tile/dirt.cr

Constant Summary

Name = "Dirt"

Class Method Summary

Instance Method Summary

Instance methods inherited from class Works::Tile::Base

color color, destroy destroy, draw(dx, dy, color)
draw(x, y)
draw

Class methods inherited from class Works::Tile::Base

color color, name name

Instance methods inherited from class Works::Cell

clone clone, col : UInt16 col, col=(col : UInt16) col=, cols : UInt8 cols, dimensions : NamedTuple(x: UInt8, y: UInt8) dimensions, draw(x, y) draw, draw_selection(dx, dy, color = nil) draw_selection, height height, hover?(mouse_col, mouse_row) hover?, name name, overlaps?(o_col, o_row)
overlaps?(cell : Cell)
overlaps?
, print_str print_str, row : UInt16 row, row=(row : UInt16) row=, rows : UInt8 rows, size : UInt16 size, width width, x x, y y

Constructor methods inherited from class Works::Cell

new(col : UInt16 = 0_u16, row : UInt16 = 0_u16) new

Class methods inherited from class Works::Cell

dimensions : NamedTuple(x: UInt8, y: UInt8) dimensions, draw_selection(x, y, width, height, selection_color = nil) draw_selection, size : UInt16 size

Class Method Detail

def self.color #

[View source]
def self.name #

[View source]
def self.sprite #

[View source]

Instance Method Detail

def draw(dx, dy) #

[View source]
def sprite #

[View source]