| 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 | Field and Description |
|---|---|
private com.google.common.collect.Multimap<ITradable,javafx.geometry.Point2D> |
BezierPriceCalculation.cacheBuy |
private com.google.common.collect.Multimap<ITradable,javafx.geometry.Point2D> |
BezierPriceCalculation.cacheSell |
| Modifier and Type | Method and Description |
|---|---|
int |
ComputablePriceV2.buyPrice(ITradable tradable,
javafx.beans.property.ReadOnlyIntegerProperty 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) |
int |
IPriceCalculationV2.computePrice(ITradable tradable,
boolean buy,
int available,
int productionRate,
IPopulationStructure pop,
ECityState state)
Compute the price for one item of the ware.
|
int |
SimplePriceCalculation.computePrice(ITradable tradable,
boolean buy,
int available,
int productionRate,
IPopulationStructure pop,
ECityState state) |
int |
BezierPriceCalculation.computePrice(ITradable tradable,
boolean buy,
int available,
int productionRate,
IPopulationStructure pop,
ECityState state) |
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.
|
private int |
BezierPriceCalculation.getPrice(boolean buy,
ITradable tradable,
int available) |
protected int |
BasePriceCalulation.getSaturation(ITradable tradable,
boolean buy)
Retreive the saturation value from tradable dependent if we are buying or selling.
|
(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.ReadOnlyIntegerProperty 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-2017 Sahits GmbH. All Rights Reserved.