class Gsw::Map

Defined in:

gsw/maps/map.cr

Constant Summary

GRID_COLOR = LibRay::Color.new(r: 75, b: 75, g: 255, a: 35)
GRID_SIZE = 16

Constructors

Instance Method Summary

Instance methods inherited from class Gsw::Obj

collision?(other : Vector) collision?, draw(_parent_x, _parent_y) draw, height : Int32 | Float32 height, position : Vector position, rotation : Int32 | Float32 | Float64 rotation, update(_frame_time) update, width : Int32 | Float32 width, x(*args, **options)
x(*args, **options, &)
x
, y(*args, **options)
y(*args, **options, &)
y

Constructor methods inherited from class Gsw::Obj

new(x, y, width : Float32 | Int32, height : Float32 | Int32, rotation : Float32 | Float64 | Int32 = 0) new

Constructor Detail

def self.new(width, height, view : Gsw::View, units : Array(Gsw::Unit) = [] of Unit) #

[View source]

Instance Method Detail

def draw(_parent_x, _parent_y) #

[View source]
def get_cursor #

[View source]
def update(frame_time : Float32) #

[View source]
def update_cursor #

[View source]
def viewable?(obj_x, obj_y, width, height) #

[View source]
def viewable?(obj : Obj) #

[View source]