KotlinTrader / com.doubleu.kotlintrader.controller / TradeController

TradeController

class TradeController : Controller

Constructors

<init> TradeController()

Functions

buy fun buy(selectedItem: Ort_has_Ware, menge: Int): Unit

Attempts to buy the selected item in the given quantity

sell fun sell(selectedItem: Schiff_has_Ware, menge: Int): Unit

Attempts to sell the selected item in the given quantity

travel fun travel(nach: Ort): Unit

Changing of the Ort requires the current User to pay. If he doesn't want to or can't the change is reverted.

Extension Functions

valueOf fun Any?.valueOf(): String