Interface ITransportTrader
-
- All Superinterfaces:
IPerson,ISideRoomPerson,ITavernPerson
- All Known Implementing Classes:
TransportTraderState
public interface ITransportTrader extends ISideRoomPerson
Defining a trader with missing ships capacities, who has to get to another city with his wares.- Author:
- Andi Hotz, (c) Sahits GmbH, 2013 Created on Jan 27, 2013
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ICitygetDestination()Destination city the trader has to get to.java.lang.StringgetName()Retrieve the name of the trader.intgetNeededCapacity()Retrieve the needed capacity in bales for the transport.intgetPremium()Retrieve the premium.voidsetDestination(ICity destination)Set the destination cityvoidsetName(java.lang.String name)Set the name of the transport trader.voidsetNeededCapacity(int neededCapacity)voidsetPremium(int premium)Set the promised premium-
Methods inherited from interface ch.sahits.game.openpatrician.model.people.ITavernPerson
arrive, getArrivalDate, getMaxDaysAbsent, getMaxDaysPresent, getNumberOfDaysSinceArrival, isPresent, isPresentProperty, leave, setCity
-
-
-
-
Method Detail
-
getName
java.lang.String getName()
Retrieve the name of the trader.- Returns:
- name of the trader.
-
getDestination
ICity getDestination()
Destination city the trader has to get to.- Returns:
- destination city
-
getNeededCapacity
int getNeededCapacity()
Retrieve the needed capacity in bales for the transport.- Returns:
- requred capacity in bales
-
getPremium
int getPremium()
Retrieve the premium.- Returns:
- promised premium upon completion.
-
setName
void setName(java.lang.String name)
Set the name of the transport trader.- Parameters:
name- of the trader
-
setDestination
void setDestination(ICity destination)
Set the destination city- Parameters:
destination- city
-
setPremium
void setPremium(int premium)
Set the promised premium- Parameters:
premium- to be payed upon completion.
-
setNeededCapacity
void setNeededCapacity(int neededCapacity)
-
-