Class LoanerState
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.city.impl.LoanerState
-
-
Constructor Summary
Constructors Constructor Description LoanerState(ICity city)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(LoanProposal proposal)Add a loan proposal.voidadd(LoanRequest request)Add a loan request.voidaddDebt(IDebt debt)Add a new debt to the list.voidclearOldRequests()Remove request that are older than a certain time span.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.sahits.game.openpatrician.model.city.ILoaner
getCity, getDebts, getLoanProposals, getRequests
-
-
-
-
Constructor Detail
-
LoanerState
public LoanerState(ICity city)
-
-
Method Detail
-
add
public void add(LoanProposal proposal)
Description copied from interface:ILoanerAdd a loan proposal.
-
add
public void add(LoanRequest request)
Description copied from interface:ILoanerAdd a loan request.
-
clearOldRequests
public void clearOldRequests()
Description copied from interface:ILoanerRemove request that are older than a certain time span.- Specified by:
clearOldRequestsin interfaceILoaner
-
-