Cards::Solitare::GameMode
Inherits Cards::GameMode < JSON::Serializable < Reference < Object
Constants
DEAL_CARDS = (FAN_STACKS + 1).times.to_a.sum
FAN_STACKS = 7
MARGIN = 25
SAVE_PATH = "./saves/solitare"
Constructors
new(pull : JSON::PullParser)
Sourcenew
SourceInstance methods
cards
Sourcecards_to_foundation
Sourceclear_waste(frame_time)
Sourceclearing_waste?
Sourcecreate_save_dirs
Sourcedeal
Sourcedeal_index
Sourcedeal_row_index
Sourcedeal_stack_index(prev_row = false)
Sourcedealt?
Sourcedrag_stack(frame_time)
Sourcedraw
Sourceexit?
Sourceflip_up_stack_top_card
Sourcefoundations
Sourceload(file_name : Path)
Sourceload_from(game : Solitare::GameMode)
Sourcemove_cards_to_foundation
Sourcemove_cards_to_waste
Sourcesave
Sourcestack_drag
Sourcestack_drag_delta
Sourcestack_drag_released?
Sourcestack_drag_to_stack
Sourcestacks
Sourcestock
Sourceupdate(frame_time)
Sourcewaste
Source