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 ICity
getDestination()
Destination city the trader has to get to.java.lang.String
getName()
Retrieve the name of the trader.int
getNeededCapacity()
Retrieve the needed capacity in bales for the transport.int
getPremium()
Retrieve the premium.void
setDestination(ICity destination)
Set the destination cityvoid
setName(java.lang.String name)
Set the name of the transport trader.void
setNeededCapacity(int neededCapacity)
void
setPremium(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)
-
-