struct MonsterMaze::Rect

Defined in:

monster_maze/rect.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

[View source]

Class Method Detail

def self.collides?(width, height, x, y, radius, cx, cy) #

Rect (width, height, x, y) with Circle (radius, cx, cy)


[View source]

Instance Method Detail

def collides?(x, y, circle : Circle, cx, cy) #

with circle (cx, cy, radius)


[View source]
def draw(window : SF::RenderWindow, x, y) #

[View source]
def height : Int32 #

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

[View source]
def width : Int32 #

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

[View source]