class Day15::Unit

Defined in:

day15.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(map : Day15::Map, side : Day15::Side, x : Int32, y : Int32) #

[View source]

Instance Method Detail

def attack #

[View source]
def damage : Int32 #

[View source]
def die #

[View source]
def distance(tox, toy) #

[View source]
def hp : Int32 #

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

[View source]
def id : Char #

[View source]
def inspect(io) #

[View source]
def map : Map #

[View source]
def move(tox : Int32, toy : Int32) #

[View source]
def process #

[View source]
def read_order #

[View source]
def side : Side #

[View source]
def take_hit #

[View source]
def was_read_order : Int32 #

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

[View source]
def x : Int32 #

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

[View source]
def y : Int32 #

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

[View source]