class Day15::Map

Defined in:

day15.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(width : Int32, height : Int32, acells) #

[View source]
def self.new(list) #

[View source]

Instance Method Detail

def build_wave(aside) #

[View source]
def cells : Array(Day15::CellType | Day15::Unit) #

[View source]
def clone #

[View source]
def draw #

[View source]
def elf_damage : Int32 #

[View source]
def elf_damage=(elf_damage : Int32) #

[View source]
def game_over : Bool #

[View source]
def game_over=(game_over : Bool) #

[View source]
def height : Int32 #

[View source]
def neighbours(x, y, &) #

[View source]
def rate #

[View source]
def read_order(x, y) #

[View source]
def tick : Int32 #

[View source]
def turn #

[View source]
def units : Hash(Day15::Side, Array(Day15::Unit)) #

[View source]
def wave #

[View source]
def wave? : Array({d: Int32, sources: Int32})? #

[View source]
def wave_targets #

[View source]
def wave_targets? : Array({Int32, Int32})? #

[View source]
def width : Int32 #

[View source]
def winner : Side | Nil #

[View source]
def winner=(winner : Side | Nil) #

[View source]