abstract class Cards::Blackjack::SeatPlayer

Direct Known Subclasses

Defined in:

cards/blackjack/seat_player.cr

Constant Summary

CHIP_DELAY = 0.13_f32

Constructors

Instance Method Summary

Instance methods inherited from class Cards::Blackjack::CardPlayer

action_delay action_delay, chip_tray : ChipTray chip_tray, clear_table(discard_stack : CardStack) clear_table, cleared_table? cleared_table?, current_hand current_hand, deal(card_stack : CardStack) deal, deal_delay deal_delay, dealing? dealing?, dealt? dealt?, delay(sec : Int32 | Float32) delay, delay? delay?, done(_dealer : Dealer) done, done? : Bool done?, done_delay done_delay, draw(deck : Deck, screen_x = 0, screen_y = 0) draw, draw_bets? draw_bets?, draw_hands(deck : Deck, screen_x, screen_y) draw_hands, hand_check hand_check, hands : Array(Hand) hands, hitting=(value : Bool) hitting=, hitting? hitting?, log(method, message = "") log, log_name log_name, new_hand new_hand, next_hand next_hand, next_turn next_turn, play play, played? played?, playing? playing?, seat : Seat seat, seat=(seat : Seat) seat=, splitting? splitting?, unseated? unseated?, update(frame_time) update, update_positions update_positions

Constructor methods inherited from class Cards::Blackjack::CardPlayer

new(seat : Cards::Blackjack::Seat = Seat.new, chip_tray : Cards::Blackjack::ChipTray = ChipTray.new, hands : Array(Cards::Blackjack::Hand) = [] of Hand) new

Constructor Detail

def self.new(name : String = "", seat = Seat.new, balance = 0) #

[View source]

Instance Method Detail

def add_chip(chip : Chip) #

[View source]
def balance #

[View source]
def betting_update(frame_time) #

[View source]
def can_double_bet? #

[View source]
def can_split? #

[View source]
def chip_delay #

[View source]
def clear_bet #

[View source]
def clear_chip(chip_stack : ChipStack) #

[View source]
def clear_table(discard_stack : CardStack) #

[View source]
def cleared_chips? #

[View source]
def clearing_bet? : Bool #

[View source]
def confirm_bet #

[View source]
def confirmed_bet? #

[View source]
def deal(card_stack : CardStack) #

[View source]
def done(dealer : Dealer) #

[View source]
def double_bet #

[View source]
def double_down #

[View source]
def doubling_bet? : Bool #

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

[View source]
def draw_balance(screen_x = 0, screen_y = 0) #

[View source]
def draw_bets? #

[View source]
def draw_name(screen_x = 0, screen_y = 0) #

[View source]
def hit #

[View source]
def hitting=(value : Bool) #

[View source]
def leave_table #

[View source]
def leave_table? : Bool #

[View source]
def log_name #

[View source]
def move_chips #

[View source]
def name : String #

[View source]
def new_hand #

[View source]
def paid? #

[View source]
def place_bet(chip : Chip) #

[View source]
def placing_bet? : Bool #

[View source]
def playing_update(_frame_time) #

[View source]
def settle_bet(dealer : Dealer) #

[View source]
def settling_bets? #

[View source]
def split #

[View source]
def split_hand #

[View source]
def splitting? : Bool #

[View source]
def stand #

[View source]
def update(frame_time) #

[View source]