Interface ICourier
-
- All Superinterfaces:
IPerson,ISideRoomPerson,ITavernPerson
- All Known Implementing Classes:
CourierState
public interface ICourier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetCurrentDestIndex()Retrieve the current index in the destination list.ICity[]getDestinations()Retrieve the destinationsjava.lang.StringgetName()Get the name of the client.intgetPremium()Retrieve the premium for successful finishing the patrol.voidsetCurrentDestIndex(int index)Set the current index in the destination list.voidsetDestinations(ICity[] cities)Set the destination city of the patrol.voidsetName(java.lang.String name)Set the name of the client.voidsetPremium(int premium)Set the premium for task completion.-
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()
Get the name of the client.- Returns:
- name of the person
-
setName
void setName(java.lang.String name)
Set the name of the client.- Parameters:
name- of the client
-
getDestinations
ICity[] getDestinations()
Retrieve the destinations- Returns:
- array of destination cities.
-
setDestinations
void setDestinations(ICity[] cities)
Set the destination city of the patrol.- Parameters:
cities- array of destination cities.
-
getPremium
int getPremium()
Retrieve the premium for successful finishing the patrol.- Returns:
- premium for completing the patrol
-
setPremium
void setPremium(int premium)
Set the premium for task completion.- Parameters:
premium- for completing the patrol
-
setCurrentDestIndex
void setCurrentDestIndex(int index)
Set the current index in the destination list.- Parameters:
index- current index of the destination
-
getCurrentDestIndex
int getCurrentDestIndex()
Retrieve the current index in the destination list.- Returns:
- current index of the destination.
-
-