class

Cards::Chip

Inherits Reference < Object

Constants

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

Constructors

new(x = 0, y = 0, amount : Cards::Chip::Amount = Amount::Five)
Source

Class methods

amounts
Source
height
Source
height_depth
Source
largest(total : Int32 | Float32) : Chip | Nil
Source
width
Source

Instance methods

amount
Source
copy
Source
draw(screen_x = 0, screen_y = 0, alpha = 255_u8)
Source
frame(*args, **options)
Source
frame(*args, **options, &)
Source
frame=(frame : Int32)
Source
frames(*args, **options)
Source
frames(*args, **options, &)
Source
height
Source
height_depth
Source
move(move_to : Game::Vector)
Source
moved?
Source
moving?
Source
position
Source
position=(position : Game::Vector)
Source
update(frame_time)
Source
value
Source
width

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

Source
x(*args, **options)
Source
x(*args, **options, &)
Source
x=(arg)
Source
y(*args, **options)
Source
y(*args, **options, &)
Source
y=(arg)
Source

Nested types