| Package | Description |
|---|---|
| ch.sahits.game.openpatrician.model.product | |
| ch.sahits.game.openpatrician.model.weapon |
| Modifier and Type | Interface | Description |
|---|---|---|
interface |
IWare |
Interface defining a ware.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
EWare |
Define the different type of wares that are produced and can be traded.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
ComputablePriceV2.buyPrice(ITradable tradable,
javafx.beans.property.ReadOnlyIntegerProperty availableAmount,
javafx.beans.binding.IntegerBinding amountToBuy) |
Integer binding calculation for the buy price.
|
int |
ComputablePriceV2.calculateAffordableAmount(ITradable tradable,
int availableAmount,
int maxAmount,
long cash) |
Calculate the amount that can be afforded based on available cash.
|
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) |
Calculate the amount that can be sold while maintaining a minimal average price per item.
|
int |
BezierPriceCalculation.computePrice(ITradable tradable,
boolean buy,
int available,
int productionRate,
IPopulationStructure pop,
ECityState state) |
|
int |
IPriceCalculationV2.computePrice(ITradable tradable,
boolean buy,
int available,
int productionRate,
IPopulationStructure pop,
ECityState state) |
Compute the price for one item of the ware.
|
protected int |
BasePriceCalulation.getMaxValue(ITradable tradable,
boolean buy) |
Retreive the maximal value from tradable dependent if we are buying or selling.
|
protected int |
BasePriceCalulation.getMinValue(ITradable tradable,
boolean buy) |
Retreive the minimal value from tradable dependent if we are buying or selling.
|
protected int |
BasePriceCalulation.getSaturation(ITradable tradable,
boolean buy) |
Retreive the saturation value from tradable dependent if we are buying or selling.
|
int |
ComputablePriceV2.sellPrice(ITradable tradable,
javafx.beans.property.ReadOnlyIntegerProperty availableAmount,
javafx.beans.binding.IntegerBinding amountToSell) |
Integer binding calculation of the sell price.
|
| Modifier and Type | Interface | Description |
|---|---|---|
interface |
IWeapon |
This interface defines a weapon.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
EWeapon |
Enumeration defining all weapons
|
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.