class

Cards::CardStack

Inherits JSON::Serializable < Reference < Object

Constants

MOVEMENT_FRAMES = 16

Constructors

new(pull : JSON::PullParser)
Source
new(x = 0, y = 0, cards : Array(Cards::Card) = [] of Card)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

height
Source
height_depth
Source
width
Source

Instance methods

add(card : Card)
Source
add(card_stack : CardStack)
Source
add_position(index = @cards.size - 1)
Source
any?(*args, **options)
Source
any?(*args, **options, &)
Source
cards
Source
cards=(cards : Array(Card))
Source
draw(deck : Deck, screen_x = 0, screen_y = 0)
Source
empty?(*args, **options)
Source
empty?(*args, **options, &)
Source
flip!
Source
height
Source
height_depth
Source
mouse_in?
Source
move(move_to : Game::Vector, frames = MOVEMENT_FRAMES)
Source
moved?
Source
moving?
Source
position
Source
position=(position : Game::Vector)
Source
pressed?
Source
shuffle!
Source
size(*args, **options)
Source
size(*args, **options, &)
Source
take
Source
take_pressed
Source
take_sample
Source
update(frame_time)
Source
update_cards_position
Source
width
Source
x(*args, **options)
Source
x(*args, **options, &)
Source
x=(value : Int32 | Float32)
Source
y(*args, **options)
Source
y(*args, **options, &)
Source
y=(value : Int32 | Float32)
Source