abstract class Game::Shape

Direct Known Subclasses

Defined in:

game/shapes/shape.cr

Constant Summary

FILLED = true

Constructors

Instance Method Summary

Constructor Detail

def self.new(color, filled : Bool = FILLED) #

[View source]

Instance Method Detail

def color : Color #

[View source]
def color=(color : Color) #

[View source]
def draw(image : Image, parent_x = 0, parent_y = 0) #

[View source]
def draw(parent_x = 0, parent_y = 0) #

[View source]
def draw_filled(image : Image, parent_x = 0, parent_y = 0) #

[View source]
def draw_filled(parent_x = 0, parent_y = 0) #

[View source]
def draw_outlined(image : Image, parent_x = 0, parent_y = 0) #

[View source]
def draw_outlined(parent_x = 0, parent_y = 0) #

[View source]
def filled=(filled : Bool) #

[View source]
def filled? : Bool #

[View source]
def height #

[View source]
def height=(_height) #

[View source]
def update(_frame_time) #

[View source]
def width #

[View source]
def width=(_width) #

[View source]
def x #

[View source]
def x=(_x) #

[View source]
def y #

[View source]
def y=(_y) #

[View source]