class Game::Building
- Game::Building
- Reference
- Object
Defined in:
game/building.crConstructors
Instance Method Summary
- #construction : Game::Construction
- #has_role(role : Role) : Bool
- #mining : Game::Mining?
- #name : String
- #production : Game::Production?
- #restoration : Game::Mining?
- #roles : Array(Game::Building::Role)
- #shortcut : String
- #storage : Int32?
- #type : Game::Building::Type
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 = "")
#