abstract class Cards::Blackjack::CardPlayer

Direct Known Subclasses

Defined in:

cards/blackjack/card_player.cr

Constant Summary

ACTION_DELAY = 0.33_f32
DEAL_DELAY = 0.13_f32
DONE_DELAY = 1.69_f32

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def action_delay #

[View source]
def chip_tray : ChipTray #

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

[View source]
def cleared_table? #

[View source]
def current_hand #

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

[View source]
def deal_delay #

[View source]
def dealing? #

[View source]
def dealt? #

[View source]
def delay(sec : Int32 | Float32) #

[View source]
def delay? #

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

[View source]
def done? : Bool #

[View source]
def done_delay #

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

[View source]
def draw_bets? #

[View source]
def draw_hands(deck : Deck, screen_x, screen_y) #

[View source]
def hand_check #

[View source]
def hands : Array(Hand) #

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

[View source]
def hitting? #

[View source]
def log(method, message = "") #

[View source]
def log_name #

[View source]
def new_hand #

[View source]
def next_hand #

[View source]
def next_turn #

[View source]
def play #

[View source]
def played? #

[View source]
def playing? #

[View source]
def seat : Seat #

[View source]
def seat=(seat : Seat) #

[View source]
def splitting? #

[View source]
def unseated? #

[View source]
def update(frame_time) #

[View source]
def update_positions #

[View source]