Cards::CardStack
Inherits JSON::Serializable < Reference < Object
Constants
MOVEMENT_FRAMES = 16
Constructors
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceClass methods
height
Sourceheight_depth
Sourcewidth
SourceInstance methods
add(card : Card)
Sourceadd(card_stack : CardStack)
Sourceadd_position(index = @cards.size - 1)
Sourceany?(*args, **options)
Sourceany?(*args, **options, &)
Sourcecards
Sourcecards=(cards : Array(Card))
Sourcedraw(deck : Deck, screen_x = 0, screen_y = 0)
Sourceempty?(*args, **options)
Sourceempty?(*args, **options, &)
Sourceflip!
Sourceheight
Sourceheight_depth
Sourcemouse_in?
Sourcemove(move_to : Game::Vector, frames = MOVEMENT_FRAMES)
Sourcemoved?
Sourcemoving?
Sourceposition
Sourceposition=(position : Game::Vector)
Sourcepressed?
Sourceshuffle!
Sourcesize(*args, **options)
Sourcesize(*args, **options, &)
Sourcetake
Sourcetake_pressed
Sourcetake_sample
Sourceupdate(frame_time)
Sourceupdate_cards_position
Sourcewidth
Sourcex(*args, **options)
Sourcex(*args, **options, &)
Sourcex=(value : Int32 | Float32)
Sourcey(*args, **options)
Sourcey(*args, **options, &)
Sourcey=(value : Int32 | Float32)
Source