class Tradify::Level1

Direct Known Subclasses

Defined in:

tradify/level1.cr

Constant Summary

INITIAL_BALANCE = 500
PRICE_DATA = [70, 50, 70, 90, 40, 20, 15, 30, 10, 20, 30, 40, 45, 30, 50, 70, 60, 80, 100, 130, 150, 190, 140, 130, 110, 100, 90, 110, 130, 120, 150, 140, 160, 100, 90, 110, 90, 70, 50, 60, 50, 40, 50, 70, 60]
TARGET_PROFIT = 100

Instance Method Summary

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

[View source]
def buy(price) #

[View source]
def buy_button #

[View source]
def buy_click #

[View source]
def buy_click_proc #

[View source]
def load(balance = INITIAL_BALANCE) #

[View source]
def load_balance(side_panel_components) #

[View source]
def load_buttons(side_panel_components) #

[View source]
def sell(price) #

[View source]
def sell_button #

[View source]
def sell_click #

[View source]
def sell_click_proc #

[View source]
def start #

[View source]
def target_reached? #

[View source]
def target_reached_message #

[View source]
def trades_position #

[View source]
def update #

[View source]
def update_account #

[View source]
def update_buttons #

[View source]