struct LifeConfig

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 : Float64, start_gen : Float64, degradation : Float64, ppm_scale : Float64, max_ppm : Float64) #

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

Class Method Detail

def self.component_index #

Instance Method Detail

def clone #

[View source]
def copy_with(produced _produced = @produced, start_gen _start_gen = @start_gen, degradation _degradation = @degradation, ppm_scale _ppm_scale = @ppm_scale, max_ppm _max_ppm = @max_ppm) #

[View source]
def degradation : Float64 #

def max_ppm : Float64 #

def ppm_scale : Float64 #

def produced : Float64 #

def start_gen : Float64 #