class Escapist::Box

Defined in:

escapist/box.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : Float32 | Int32, y : Float32 | Int32, width : Float32 | Int32, height = nil) #

[View source]

Instance Method Detail

def collision?(other : Box) #

[View source]
def height : Int32 | Float32 #

[View source]
def height=(height : Int32 | Float32) #

[View source]
def width : Int32 | Float32 #

[View source]
def width=(width : Int32 | Float32) #

[View source]
def x : Int32 | Float32 #

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

[View source]
def y : Int32 | Float32 #

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

[View source]