| Package | Description |
|---|---|
| ch.sahits.game.openpatrician.model.product | |
| ch.sahits.game.openpatrician.model.weapon |
| Modifier and Type | Interface and Description |
|---|---|
interface |
IWare
Interface defining a ware.
|
| Modifier and Type | Class and Description |
|---|---|
class |
EWare
Define the different type of wares that are produced and can be traded.
|
| Modifier and Type | Method and Description |
|---|---|
int |
ComputablePriceV2.buyPrice(ITradable tradable,
javafx.beans.property.IntegerProperty availableAmount,
javafx.beans.binding.IntegerBinding amountToBuy)
Integer binding calculation for the buy price.
|
private int |
ComputablePriceV2.calculateBuyAmount(ITradable tradable,
int availableAmount,
int maxPrice,
int bottom,
int top,
int firstItemPrice,
long maxCash)
Calculate the maximum amount that is afordable by recustion.
|
int |
ComputablePriceV2.calculateBuyAmount(ITradable tradable,
int availableAmount,
int maxPrice,
int maxAmount,
long maxCash)
Calculate the amount between 0 and
maxAmount that can be bought for at max maxPrice |
int |
ComputablePriceV2.calculateSellAmount(ITradable tradable,
int availableAmount,
int minPrice,
int maxSellAmount) |
private int |
ComputablePriceV2.calculateSellAmount(ITradable tradable,
int availableAmount,
int minPrice,
int bottom,
int top) |
private int |
ComputablePriceV2.calculateSellAmountInHalf(ITradable tradable,
int availableAmount,
int minPrice,
int maxSellAmount,
int sellPriceHalfAmount,
int halfAmount,
int bottom) |
(package private) int |
ComputablePriceV2.internalBuyPriceCalculation(ITradable tradable,
int availableAmount,
int amountToBuy)
Internal method to calculate the buy price.
|
(package private) int |
ComputablePriceV2.internalSellPriceCalculation(ITradable tradable,
int availableAmount,
int amountToSell)
Internal calculation of the sell price.
|
int |
ComputablePriceV2.sellPrice(ITradable tradable,
javafx.beans.property.IntegerProperty availableAmount,
javafx.beans.binding.IntegerBinding amountToSell)
Integer binding calculation of the sell price.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
IWeapon
This interface defines a weapon.
|
| Modifier and Type | Class and Description |
|---|---|
class |
EWeapon
Enumeration defining all weapons
|
Copyright © 2011-2016 Sahits GmbH. All Rights Reserved.