struct

MonsterMaze::Box

Inherits Struct < Value < Object

Constructors

new(size : Int32 = 1)
Source

Class methods

collides?(size, x, y, radius, cx, cy)

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

Source

Instance methods

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

with other Box

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

with circle (cx, cy, radius)

Source
draw(window : SF::RenderWindow, x, y)
Source
size
Source
size=(size : Int32)
Source