class Game::Map

Defined in:

game/map.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(rows : Int32, cols : Int32, tile_type = PlateauTile) #

[View source]

Instance Method Detail

def cols : Int32 #

[View source]
def data : DataArray #

[View source]
def data=(data : DataArray) #

[View source]
def get(x : Int32, y : Int32) : Tile #

[View source]
def get(point : Point) : Tile #

[View source]
def nearest_tile(point : Point, &block : Tile -> Bool) : Tile | Nil #

[View source]
def rows : Int32 #

[View source]
def set(point : Point, tile : Tile) #

[View source]
def set(tile : Tile) #

[View source]
def tiles(&block : Point, Tile -> _) #

[View source]