class

Cards::Solitare::Foundation

Inherits Cards::Solitare::Waste < Cards::Solitare::Stack < Cards::Solitare::Stock < Cards::CardStack < JSON::Serializable < Reference < Object

Constants

MARGIN_X = 0
MARGIN_Y = 0

Constructors

new(pull : JSON::PullParser)
Source
new(suit : Cards::Suit, x = 0, y = 0, cards = [] of Card)
Source

Class methods

margin_x
Source
margin_y
Source

Instance methods

add?(stack : Stack)
Source
add?(card : Card)
Source
add_position(index = @cards.size - 1)
Source
draw(deck : Deck, screen_x = 0, screen_y = 0)
Source
mouse_in?
Source
suit
Source