struct LifeSupport

Defined in:

wif/game/life.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from struct GameComponent

after_initialize after_initialize

Constructor methods inherited from struct GameComponent

new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) new

Class methods inherited from struct GameComponent

component_index component_index

Constructor Detail

def self.new(produced : Int32, adsorbed : Int32, ppm : Int32, days : Int32) #

[View source]
def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

Class Method Detail

def self.component_index #

Instance Method Detail

def adsorbed : Int32 #

def clone #

[View source]
def copy_with(produced _produced = @produced, adsorbed _adsorbed = @adsorbed, ppm _ppm = @ppm, days _days = @days) #

[View source]
def days : Int32 #

def ppm : Int32 #

def produced : Int32 #