class Game::Building

Defined in:

game/building.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : Type, *, name : String = "", roles : Array(Role) | Nil = nil, construction : Construction | Nil = nil, production : Production | Nil = nil, mining : Mining | Nil = nil, restoration : Mining | Nil = nil, storage : Capacity | Nil = nil, shortcut : String = "") #

[View source]

Instance Method Detail

def construction : Game::Construction #

[View source]
def has_role(role : Role) : Bool #

[View source]
def mining : Game::Mining? #

[View source]
def name : String #

[View source]
def production : Game::Production? #

[View source]
def restoration : Game::Mining? #

[View source]
def roles : Array(Game::Building::Role) #

[View source]
def shortcut : String #

[View source]
def storage : Int32? #

[View source]
def type : Game::Building::Type #

[View source]