Class BuyerState
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.people.impl.BaseTavernPerson
-
- ch.sahits.game.openpatrician.model.people.impl.BuyerState
-
- All Implemented Interfaces:
IBuyer
,IPerson
,ISideRoomPerson
,ITavernPerson
public class BuyerState extends BaseTavernPerson implements IBuyer
Implementation of a buyer. Every city can have a buyer and is referenced through it's TavernEngine.- Author:
- Andi Hotz, (c) Sahits GmbH, 2013 Created on Jan 20, 2013
-
-
Field Summary
Fields Modifier and Type Field Description private AmountablePrice<IWare>
amountablePrice
private java.time.LocalDateTime
deadline
private java.lang.String
name
private IWare
ware
-
Fields inherited from class ch.sahits.game.openpatrician.model.people.impl.BaseTavernPerson
date
-
-
Constructor Summary
Constructors Constructor Description BuyerState()
BuyerState(IBuyer buyer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.LocalDateTime
getTimeFrame()
Date until which the wares have to be delivered.-
Methods inherited from class ch.sahits.game.openpatrician.model.people.impl.BaseTavernPerson
arrive, getMaxDaysAbsent, getMaxDaysPresent, getNumberOfDaysSinceArrival, isPresent, isPresentProperty, leave
-
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.IBuyer
getAmountablePrice, getName, getWare, setAmountablePrice, setDeadline, setName, setWare
-
Methods inherited from interface ch.sahits.game.openpatrician.model.people.ITavernPerson
arrive, getArrivalDate, getMaxDaysAbsent, getMaxDaysPresent, getNumberOfDaysSinceArrival, isPresent, isPresentProperty, leave, setCity
-
-
-
-
Field Detail
-
name
private java.lang.String name
-
deadline
private java.time.LocalDateTime deadline
-
ware
private IWare ware
-
amountablePrice
private AmountablePrice<IWare> amountablePrice
-
-
Constructor Detail
-
BuyerState
public BuyerState()
-
BuyerState
public BuyerState(IBuyer buyer)
-
-
Method Detail
-
getTimeFrame
public java.time.LocalDateTime getTimeFrame()
Description copied from interface:IBuyer
Date until which the wares have to be delivered.- Specified by:
getTimeFrame
in interfaceIBuyer
- Returns:
- deadline until when the wares need to be delivered.
-
-