abstract class Works::Tile::Ore::Base
- Works::Tile::Ore::Base
- Works::Tile::Base
- Works::Cell
- Reference
- Object
Direct Known Subclasses
Defined in:
works/tile/ore/base.crConstant Summary
-
Color =
LibAllegro.premul_rgba_f(1, 0, 1, 0.69)
-
Name =
"Ore"
Constructors
Class Method Summary
Instance Method Summary
- #amount : UInt16
- #color
- #draw(dx, dy, color)
- #draw_hover(dx, dy)
- #draw_hover_info
- #item_class
- #mine(amount)
- #mine_amount(amount)
- #print_str
- #sprite
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