abstract class Works::Item::Base
Direct Known Subclasses
Defined in:
works/item/base.cr
Constant Summary
-
Color =
LibAllegro.map_rgb_f(1, 0, 1)
-
IconMargin =
4 * Screen.scale_factor
-
IconTextColor =
LibAllegro.premul_rgba_f(1, 1, 1, 0.5)
-
ItemSize =
Cell.size / 2
-
Key =
:base
-
MaxAmount =
100
-
Name =
"Item"
-
ShortCode =
"IB"
Constructors
Class Method Summary
Instance Method Summary
-
#add(amount)
-
#amount : Int32
-
#clone
-
#draw_icon(x, y, size)
-
#draw_icon_amount_text(x, y, size)
-
#draw_icon_background(x, y, size)
-
#draw_icon_text(x, y, size)
-
#draw_item(cx, cy, center = true)
-
#draw_shortcode_text(x, y, size)
-
#full?
-
#icon_color
-
#key
-
#max_amount
-
#name
-
#none?
-
#print_str
-
#remove(amount)
-
#remove_as_new(amount)
-
#short_code
-
#sprite
Constructor Detail
Class Method Detail
Instance Method Detail
def
draw_icon(x, y, size)
#
def
draw_icon_amount_text(x, y, size)
#
def
draw_icon_background(x, y, size)
#
def
draw_icon_text(x, y, size)
#
def
draw_item(cx, cy, center =
true)
#
def
draw_shortcode_text(x, y, size)
#
def
remove_as_new(amount)
#