class Cards::Chip

Defined in:

cards/chip.cr

Constant Summary

HEIGHT = 16
HEIGHT_DEPTH = 3
MOVEMENT_FRAMES = 16
WIDTH = 32

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(x = 0, y = 0, amount : Cards::Chip::Amount = Amount::Five) #

[View source]

Class Method Detail

def self.amounts : Array(Chip) #

[View source]
def self.height #

[View source]
def self.height_depth #

[View source]
def self.largest(total : Int32 | Float32) : Chip | Nil #

[View source]
def self.width #

[View source]

Instance Method Detail

def amount : Amount #

[View source]
def copy #

[View source]
def draw(screen_x = 0, screen_y = 0, alpha = 255_u8) #

[View source]
def frame(*args, **options) #

[View source]
def frame(*args, **options, &) #

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

[View source]
def frames(*args, **options) #

[View source]
def frames(*args, **options, &) #

[View source]
def height #

[View source]
def height_depth #

[View source]
def move(move_to : Game::Vector) #

[View source]
def moved? #

[View source]
def moving? #

[View source]
def position : Game::Vector #

[View source]
def position=(position : Game::Vector) #

[View source]
def update(frame_time) #

[View source]
def value #

[View source]
def width #

methods for width/height in case of changing to instance vars later


[View source]
def x(*args, **options) #

[View source]
def x(*args, **options, &) #

[View source]
def x=(arg) #

[View source]
def y(*args, **options) #

[View source]
def y(*args, **options, &) #

[View source]
def y=(arg) #

[View source]