struct

MonsterMaze::Rect

Inherits Struct < Value < Object

Constructors

new(width : Int32 = 1, height : Int32 = 1)
Source

Class methods

collides?(width, height, x, y, radius, cx, cy)

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

Source

Instance methods

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

with circle (cx, cy, radius)

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