class Works::Item::Held

Defined in:

works/item/held.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : Int32, y : Int32, item : Works::Item::Base, size : Int32) #

[View source]

Instance Method Detail

def buildable? #

[View source]
def draw_color_tint(x, y, width, height, tint) #

[View source]
def draw_icon #

[View source]
def draw_on_map(x, y, color_tint) #

[View source]
def item : Item::Base #

[View source]
def item=(item : Item::Base) #

[View source]
def player_buildable? : Bool #

[View source]
def player_overlaps? : Bool #

[View source]
def rotate #

[View source]
def size : Int32 #

[View source]
def strct : Works::Struct::Base | Nil #

[View source]
def strct=(strct : Works::Struct::Base | Nil) #

[View source]
def struct_inbounds? : Bool #

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

[View source]
def struct_overwrite : Works::Struct::Base | Nil #

[View source]
def update(mouse : Mouse, map : Map, player : Player) #

[View source]
def x : Int32 #

[View source]
def y : Int32 #

[View source]