Class Treasury
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.city.cityhall.impl.Treasury
-
-
Constructor Summary
Constructors Constructor Description Treasury()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDonations(int donations)voidaddOtherIncome(int otherIncome)voidaddPaidSpecialTaxes(long paidSpecialTaxes)voidaddPaidTaxes(long paidTaxes)javafx.beans.property.IntegerPropertybuildingCostsProperty()javafx.beans.property.LongPropertycashProperty()javafx.beans.property.IntegerPropertycityGuardCostsProperty()javafx.beans.property.DoublePropertycurrentHeadTaxValueProperty()Double property for the current head tax value.javafx.beans.property.DoublePropertycurrentPropertyTaxProperty()javafx.beans.property.IntegerPropertydonationsProperty()intgetBuildingCosts()Costs for the building of city walls and towers up to date.longgetCash()Retrieve the whole amount in the treasury.intgetCityGuardCosts()Monthly costs of the city guard.doublegetCurrentHeadTaxValue()Retrieve the current height of the taxes.doublegetCurrentPropertyTax()Retrieve the current property tax.intgetDonations()All the donated amount.intgetOtherCosts()Costs and fees that the city has to have payed up to this date in the current year.intgetOtherIncome()All other income like donations.intgetOutriggerCosts()Costs for paying the outrigger.longgetPaidSpecialTaxes()Amount of the paid special taxes.longgetPaidTaxes()Amount of the property and head taxes up to date this year.intgetSiegeCosts()Paid ransom to prevent/abort siege.javafx.beans.property.IntegerPropertyotherCostsProperty()javafx.beans.property.IntegerPropertyotherIncomeProperty()javafx.beans.property.IntegerPropertyoutriggerCostsProperty()javafx.beans.property.LongPropertypaidSpecialTaxesProperty()javafx.beans.property.LongPropertypaidTaxesProperty()voidreset()Reset all the moneytary values save cash back to 0.voidsetCash(long cash)voidsetCurrentHeadTaxValue(double currentHeadTaxValue)javafx.beans.property.IntegerPropertysiegeCostsProperty()voidsubtractBuildingCosts(int buildingCosts)voidsubtractCityGuardCosts(int cityGuardCosts)voidsubtractOtherCosts(int otherCosts)voidsubtractOutriggerCosts(int outriggerCosts)voidsubtractSiegeCosts(int siegeCosts)
-
-
-
Method Detail
-
reset
public void reset()
Reset all the moneytary values save cash back to 0.
-
setCurrentHeadTaxValue
public void setCurrentHeadTaxValue(double currentHeadTaxValue)
-
addPaidTaxes
public void addPaidTaxes(long paidTaxes)
-
addPaidSpecialTaxes
public void addPaidSpecialTaxes(long paidSpecialTaxes)
-
subtractCityGuardCosts
public void subtractCityGuardCosts(int cityGuardCosts)
-
subtractBuildingCosts
public void subtractBuildingCosts(int buildingCosts)
-
subtractOutriggerCosts
public void subtractOutriggerCosts(int outriggerCosts)
-
subtractSiegeCosts
public void subtractSiegeCosts(int siegeCosts)
-
subtractOtherCosts
public void subtractOtherCosts(int otherCosts)
-
addOtherIncome
public void addOtherIncome(int otherIncome)
-
addDonations
public void addDonations(int donations)
-
getCash
public long getCash()
Description copied from interface:ITreasuryRetrieve the whole amount in the treasury.
-
cashProperty
public javafx.beans.property.LongProperty cashProperty()
- Specified by:
cashPropertyin interfaceITreasury
-
setCash
public void setCash(long cash)
-
currentHeadTaxValueProperty
public javafx.beans.property.DoubleProperty currentHeadTaxValueProperty()
Description copied from interface:ITreasuryDouble property for the current head tax value.- Specified by:
currentHeadTaxValuePropertyin interfaceITreasury- Returns:
- current head tax value
-
currentPropertyTaxProperty
public javafx.beans.property.DoubleProperty currentPropertyTaxProperty()
- Specified by:
currentPropertyTaxPropertyin interfaceITreasury
-
paidTaxesProperty
public javafx.beans.property.LongProperty paidTaxesProperty()
- Specified by:
paidTaxesPropertyin interfaceITreasury
-
paidSpecialTaxesProperty
public javafx.beans.property.LongProperty paidSpecialTaxesProperty()
- Specified by:
paidSpecialTaxesPropertyin interfaceITreasury
-
cityGuardCostsProperty
public javafx.beans.property.IntegerProperty cityGuardCostsProperty()
- Specified by:
cityGuardCostsPropertyin interfaceITreasury
-
buildingCostsProperty
public javafx.beans.property.IntegerProperty buildingCostsProperty()
- Specified by:
buildingCostsPropertyin interfaceITreasury
-
outriggerCostsProperty
public javafx.beans.property.IntegerProperty outriggerCostsProperty()
- Specified by:
outriggerCostsPropertyin interfaceITreasury
-
siegeCostsProperty
public javafx.beans.property.IntegerProperty siegeCostsProperty()
- Specified by:
siegeCostsPropertyin interfaceITreasury
-
otherCostsProperty
public javafx.beans.property.IntegerProperty otherCostsProperty()
- Specified by:
otherCostsPropertyin interfaceITreasury
-
otherIncomeProperty
public javafx.beans.property.IntegerProperty otherIncomeProperty()
- Specified by:
otherIncomePropertyin interfaceITreasury
-
donationsProperty
public javafx.beans.property.IntegerProperty donationsProperty()
- Specified by:
donationsPropertyin interfaceITreasury
-
getCurrentHeadTaxValue
public double getCurrentHeadTaxValue()
Description copied from interface:ITreasuryRetrieve the current height of the taxes.- Specified by:
getCurrentHeadTaxValuein interfaceITreasury- Returns:
- current head tax
-
getCurrentPropertyTax
public double getCurrentPropertyTax()
Description copied from interface:ITreasuryRetrieve the current property tax.- Specified by:
getCurrentPropertyTaxin interfaceITreasury- Returns:
- current proerty tax
-
getPaidTaxes
public long getPaidTaxes()
Description copied from interface:ITreasuryAmount of the property and head taxes up to date this year.- Specified by:
getPaidTaxesin interfaceITreasury- Returns:
- paid taxes for the current year
-
getPaidSpecialTaxes
public long getPaidSpecialTaxes()
Description copied from interface:ITreasuryAmount of the paid special taxes.- Specified by:
getPaidSpecialTaxesin interfaceITreasury- Returns:
- paid special taxes for the current year
-
getCityGuardCosts
public int getCityGuardCosts()
Description copied from interface:ITreasuryMonthly costs of the city guard.- Specified by:
getCityGuardCostsin interfaceITreasury- Returns:
- monthly costs for the city guards
-
getBuildingCosts
public int getBuildingCosts()
Description copied from interface:ITreasuryCosts for the building of city walls and towers up to date. This value is only positive if there is a building being built.- Specified by:
getBuildingCostsin interfaceITreasury- Returns:
- building costs for the city walls.
-
getOutriggerCosts
public int getOutriggerCosts()
Description copied from interface:ITreasuryCosts for paying the outrigger.- Specified by:
getOutriggerCostsin interfaceITreasury- Returns:
- costs for the outrigger
-
getSiegeCosts
public int getSiegeCosts()
Description copied from interface:ITreasuryPaid ransom to prevent/abort siege.- Specified by:
getSiegeCostsin interfaceITreasury- Returns:
- costs to prevent a siege.
-
getOtherCosts
public int getOtherCosts()
Description copied from interface:ITreasuryCosts and fees that the city has to have payed up to this date in the current year. Included here are also stolen amounts.- Specified by:
getOtherCostsin interfaceITreasury- Returns:
- other costs.
-
getOtherIncome
public int getOtherIncome()
Description copied from interface:ITreasuryAll other income like donations.- Specified by:
getOtherIncomein interfaceITreasury- Returns:
- other income
-
getDonations
public int getDonations()
Description copied from interface:ITreasuryAll the donated amount.- Specified by:
getDonationsin interfaceITreasury- Returns:
- donations
-
-