class Cards::Solitare::Foundation

Defined in:

cards/solitare/foundation.cr

Constant Summary

MARGIN_X = 0
MARGIN_Y = 0

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Cards::Solitare::Waste

add_position(index = @cards.size - 1) add_position, mouse_in? mouse_in?, take_pressed_stack : Stack | Nil take_pressed_stack

Constructor methods inherited from class Cards::Solitare::Waste

new(pull : JSON::PullParser) new

Class methods inherited from class Cards::Solitare::Waste

margin_x margin_x, margin_y margin_y

Instance methods inherited from class Cards::Solitare::Stack

add?(stack : Stack, _auto = false) add?, add_position(index = @cards.size - 1) add_position, double_clicked? double_clicked?, flip_up_top_card flip_up_top_card, flip_up_top_card? flip_up_top_card?, height height, height_depth height_depth, margin_x margin_x, margin_y margin_y, take_pressed_stack : Stack | Nil take_pressed_stack, update(frame_time) update, update_cards_position update_cards_position, width width

Constructor methods inherited from class Cards::Solitare::Stack

new(pull : JSON::PullParser) new

Class methods inherited from class Cards::Solitare::Stack

margin_x margin_x, margin_y margin_y

Instance methods inherited from class Cards::Solitare::Stock

draw(deck : Deck, screen_x = 0, screen_y = 0) draw

Constructor methods inherited from class Cards::Solitare::Stock

new(pull : JSON::PullParser) new

Instance methods inherited from class Cards::CardStack

add(card : Card)
add(card_stack : CardStack)
add
, add_position(index = @cards.size - 1) add_position, any?(*args, **options)
any?(*args, **options, &)
any?
, cards : Array(Card) cards, cards=(cards : Array(Card)) cards=, draw(deck : Deck, screen_x = 0, screen_y = 0) draw, empty?(*args, **options)
empty?(*args, **options, &)
empty?
, flip! flip!, height height, height_depth height_depth, mouse_in? mouse_in?, move(move_to : Game::Vector, frames = MOVEMENT_FRAMES) move, moved? moved?, moving? moving?, position : Game::Vector position, position=(position : Game::Vector) position=, pressed? pressed?, shuffle! shuffle!, size(*args, **options)
size(*args, **options, &)
size
, take : Card take, take_pressed take_pressed, take_sample : Card | Nil take_sample, update(frame_time) update, update_cards_position update_cards_position, width width, x(*args, **options)
x(*args, **options, &)
x
, x=(value : Int32 | Float32) x=, y(*args, **options)
y(*args, **options, &)
y
, y=(value : Int32 | Float32) y=

Constructor methods inherited from class Cards::CardStack

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

Class methods inherited from class Cards::CardStack

height height, height_depth height_depth, width width

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(suit : Cards::Suit, x = 0, y = 0, cards = [] of Card) #

[View source]

Class Method Detail

def self.margin_x #

[View source]
def self.margin_y #

[View source]

Instance Method Detail

def add?(stack : Stack) #

[View source]
def add?(card : Card) #

[View source]
def add_position(index = @cards.size - 1) #

[View source]
def draw(deck : Deck, screen_x = 0, screen_y = 0) #

[View source]
def mouse_in? #

[View source]
def suit : Suit #

[View source]