class Tradify::Level2

Direct Known Subclasses

Defined in:

tradify/level2.cr

Constant Summary

INITIAL_BALANCE = 1000
PRICE_DATA = [300, 330, 350, 200, 220, 590, 680, 720, 200, 190, 200, 200, 200, 190, 130, 110, 110, 115, 115, 105, 100, 105, 100, 100, 135, 140, 140, 130, 120, 150, 155, 160, 180, 200, 220, 200]
TARGET_PROFIT = 500

Instance Method Summary

Instance methods inherited from class Tradify::Level1

balance_label balance_label, buy(price) buy, buy_button buy_button, buy_click buy_click, buy_click_proc buy_click_proc, load(balance = INITIAL_BALANCE) load, load_balance(side_panel_components) load_balance, load_buttons(side_panel_components) load_buttons, sell(price) sell, sell_button sell_button, sell_click sell_click, sell_click_proc sell_click_proc, start start, target_reached? target_reached?, target_reached_message target_reached_message, trades_position trades_position, update update, update_account update_account, update_buttons update_buttons

Instance methods inherited from class Tradify::Level

completed? : Bool completed?, draw draw, load load, loaded? : Bool loaded?, price(*args, **options)
price(*args, **options, &)
price
, screen screen, start start, target_reached? target_reached?, target_reached_message target_reached_message, update update

Constructor methods inherited from class Tradify::Level

new(game : Game) new

Instance Method Detail

def load(balance = INITIAL_BALANCE) #

[View source]
def load_buttons(side_panel_components) #

[View source]
def start #

[View source]
def target_reached? #

[View source]
def target_reached_message #

[View source]
def update_buttons #

[View source]