Class ContractBrookerState
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.people.impl.BaseTradePerson
-
- ch.sahits.game.openpatrician.model.people.impl.ContractBrookerState
-
- All Implemented Interfaces:
IContractBroker,IPerson,ITradePerson
public class ContractBrookerState extends BaseTradePerson implements IContractBroker
Implementation of a contract brooker. Every city can have a contract brooker and is referenced through it's TavernEngine.- Author:
- Andi Hotz, (c) Sahits GmbH, 2013 Created on Jan 20, 2013
-
-
Constructor Summary
Constructors Constructor Description ContractBrookerState(AmountablePrice<IWare> amountAndPrice, IWare ware)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeliver(int amount)Deliver a specified amount.-
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.people.IContractBroker
getAmountAndPrice, getDeliveredAmount, getName, getWare, setName
-
Methods inherited from interface ch.sahits.game.openpatrician.model.people.ITradePerson
getAmount, getAvgPricePerItem, setAmount, setAvgPricePerItem, setWare
-
-
-
-
Constructor Detail
-
ContractBrookerState
public ContractBrookerState(AmountablePrice<IWare> amountAndPrice, IWare ware)
-
-
Method Detail
-
deliver
public void deliver(int amount)
Description copied from interface:IContractBrokerDeliver a specified amount.- Specified by:
deliverin interfaceIContractBroker- Parameters:
amount- deliver the amount of ware.
-
-