class Item

Defined in:

stationeers.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, itype : ItemType, slot : Slot | Nil, id : String | Nil) #

[View source]
def self.new(name : String, itype : ItemType, slot : String | Nil, id : String | Nil) #

[View source]

Instance Method Detail

def basic_tool : Item | Nil #

[View source]
def basic_tool=(basic_tool : Item | Nil) #

[View source]
def crafts #

[View source]
def crafts=(crafts : Hash(Recipe, Nil)) #

[View source]
def created_by : Hash(Recipe, Float64) #

[View source]
def created_by=(created_by : Hash(Recipe, Float64)) #

[View source]
def energy : Float64 #

[View source]
def energy=(energy : Float64) #

[View source]
def id : String? #

[View source]
def ingredient_for : Hash(Recipe, Float64) #

[View source]
def ingredient_for=(ingredient_for : Hash(Recipe, Float64)) #

[View source]
def itype : ItemType #

[View source]
def name : String #

[View source]
def slot : Slot? #

[View source]
def speed : Float64 #

[View source]
def speed=(speed : Float64) #

[View source]
def summary #

[View source]
def to_s #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]