class Cards::CardStack
- Cards::CardStack
- Reference
- Object
Included Modules
- JSON::Serializable
Direct Known Subclasses
Defined in:
cards/card_stack.crConstant Summary
-
MOVEMENT_FRAMES =
16
Constructors
Class Method Summary
Instance Method Summary
- #add(card : Card)
- #add(card_stack : CardStack)
- #add_position(index = @cards.size - 1)
- #any?(*args, **options)
- #any?(*args, **options, &)
- #cards : Array(Card)
- #cards=(cards : Array(Card))
- #draw(deck : Deck, screen_x = 0, screen_y = 0)
- #empty?(*args, **options)
- #empty?(*args, **options, &)
- #flip!
- #height
- #height_depth
- #mouse_in?
- #move(move_to : Game::Vector, frames = MOVEMENT_FRAMES)
- #moved?
- #moving?
- #position : Game::Vector
- #position=(position : Game::Vector)
- #pressed?
- #shuffle!
- #size(*args, **options)
- #size(*args, **options, &)
- #take : Card
- #take_pressed
- #take_sample : Card | Nil
- #update(frame_time)
- #update_cards_position
- #width
- #x(*args, **options)
- #x(*args, **options, &)
- #x=(value : Int32 | Float32)
- #y(*args, **options)
- #y(*args, **options, &)
- #y=(value : Int32 | Float32)