class Tradify::Level3

Direct Known Subclasses

Defined in:

tradify/level3.cr

Constant Summary

INITIAL_BALANCE = 500
PRICE_DATA = [70, 80, 50, 50, 80, 90, 80, 40, 20, 90, 90, 90, 90, 80, 10]
TARGET_PROFIT = 300

Instance Method Summary

Instance methods inherited from class Tradify::Level2

load(balance = INITIAL_BALANCE) load, load_buttons(side_panel_components) load_buttons, start start, target_reached? target_reached?, target_reached_message target_reached_message, update_buttons update_buttons

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 sell_click_level_3 #

[View source]
def sell_click_proc #

[View source]
def short(price) #

[View source]
def start #

[View source]
def target_reached? #

[View source]
def target_reached_message #

[View source]
def update_buttons #

[View source]