IPatrol, IPerson, ISideRoomPerson, ITavernPersonpublic class PatrolState extends BasePatrolState implements IPatrol
currentDestIndex, destinations| Constructor | Description |
|---|---|
PatrolState() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getCurrentDestIndex() |
Retrieve the current index in the destination list.
|
ICity[] |
getDestinations() |
Retrieve the destinations
|
java.lang.String |
getName() |
Get the name of the client.
|
int |
getPremium() |
Retrieve the premium for successful finishing the patrol.
|
void |
setCurrentDestIndex(int index) |
Set the current index in the destination list.
|
void |
setDestinations(ICity[] cities) |
Set the destination city of the patrol.
|
void |
setName(java.lang.String name) |
Set the name of the client.
|
void |
setPremium(int premium) |
Set the premium for task completion.
|
arrive, getNumberOfDaysSinceArrival, isPresent, isPresentProperty, leavegetBonus, setBonusarrive, getArrivalDate, getMaxDaysAbsent, getMaxDaysPresent, getNumberOfDaysSinceArrival, isPresent, isPresentProperty, leave, setCitypublic abstract java.lang.String getName()
public abstract void setName(java.lang.String name)
name - of the clientpublic abstract ICity[] getDestinations()
public abstract void setDestinations(ICity[] cities)
cities - array of destination cities.public abstract int getPremium()
public abstract void setPremium(int premium)
premium - for completing the patrolpublic abstract void setCurrentDestIndex(int index)
index - current index of the destinationpublic abstract int getCurrentDestIndex()
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.