class Cards::Solitare::GameMode
- Cards::Solitare::GameMode
- Cards::GameMode
- Reference
- Object
Defined in:
cards/solitare/game_mode.crConstant Summary
-
DEAL_CARDS =
(FAN_STACKS + 1).times.to_a.sum
-
FAN_STACKS =
7
-
MARGIN =
25
-
SAVE_PATH =
"./saves/solitare"
Constructors
Instance Method Summary
- #cards : Array(Card)
- #cards_to_foundation : Array(NamedTuple(card: Card, stack: Foundation))
- #clear_waste(frame_time)
- #clearing_waste? : Bool
- #create_save_dirs
- #deal
- #deal_index : Int32
- #deal_row_index : Int32
- #deal_stack_index(prev_row = false)
- #dealt? : Bool
- #drag_stack(frame_time)
- #draw
- #exit? : Bool
- #flip_up_stack_top_card
- #foundations : Array(Foundation)
- #load(file_name : Path)
- #load_from(game : Solitare::GameMode)
- #menu_handlers
- #move_cards_to_foundation
- #move_cards_to_waste
- #save
- #stack_drag : Stack | Nil
- #stack_drag_delta : Game::Vector
- #stack_drag_released? : Bool
- #stack_drag_to_stack : CardStack
- #stacks : Array(Stack)
- #stock : Stock
- #update(frame_time)
- #update_menus(frame_time)
- #waste : Waste
Instance methods inherited from class Cards::GameMode
draw
draw,
exit?
exit?,
game_over? : Bool
game_over?,
update(frame_time)
update
Constructor methods inherited from class Cards::GameMode
new(pull : JSON::PullParser)new new