struct MonsterMaze::Box

Defined in:

monster_maze/box.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(size : Int32 = 1) #

[View source]

Class Method Detail

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

Box (size, x, y) with Circle (radius, cx, cy)


[View source]

Instance Method Detail

def collides?(x, y, other : Box, other_x, other_y) #

with other Box


[View source]
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 size : Int32 #

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

[View source]