class GeoWars::MapViewport

Defined in:

geo_wars/map_viewport.cr

Constant Summary

CELL_THRESHOLD = 1

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def cell_size : Int32 #

[View source]
def draw #

[View source]
def height : Int32 #

[View source]
def real_x(cell_x) #

[View source]
def real_y(cell_y) #

[View source]
def update(cursor : Cursor, cells_x : Int32, cells_y : Int32) #

[View source]
def viewable_cell?(x, y, w, h) #

[View source]
def width : Int32 #

[View source]
def x : Int32 #

[View source]
def y : Int32 #

[View source]