class Bench::BenchObj

Defined in:

bench/bench_obj.cr

Constant Summary

Size = 16
SpeedMax = 5
SpeedMin = 1

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : Int32, y : Int32) #

[View source]
def self.new #

[View source]

Instance Method Detail

def color : LibAllegro::Color #

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

[View source]
def destroy #

[View source]
def draw(x, y, color) #

[View source]
def draw(x, y) #

[View source]
def dx : Int32 #

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

[View source]
def dy : Int32 #

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

[View source]
def print #

[View source]
def rand_speed #

[View source]
def update(screen_width, screen_height) #

[View source]
def x : Int32 #

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

[View source]
def y : Int32 #

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

[View source]