Interface IPirate
-
- All Superinterfaces:
IPerson
,ITavernPerson
- All Known Implementing Classes:
TavernPirateState
public interface IPirate extends ITavernPerson
Interface defining a pirate sitting in the tavern. This pirate is a constant guest. A pirate is not a person as an entity but the institution sitting in the tavern. The same instance can change over time.- Author:
- Andi Hotz, (c) Sahits GmbH, 2013 Created on Jan 21, 2013
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getFollowers()
Retrieve the number of followers of this pirate.java.lang.String
getLastName()
Get the last name of the pirate.java.lang.String
getName()
Get the name of the pirate.double
getProfitShare()
Get the offered share on the profit.void
setFollowers(int followers)
Set the number of followersvoid
setLastName(java.lang.String lastname)
Set the last name of the piratevoid
setName(java.lang.String name)
Set the name of the piratevoid
setProfitShare(double profitShare)
Set the profite share-
Methods inherited from interface ch.sahits.game.openpatrician.model.people.ITavernPerson
arrive, getArrivalDate, getMaxDaysAbsent, getMaxDaysPresent, getNumberOfDaysSinceArrival, isPresent, isPresentProperty, leave, setCity
-
-
-
-
Method Detail
-
getFollowers
int getFollowers()
Retrieve the number of followers of this pirate.- Returns:
- number of followers.
-
getProfitShare
double getProfitShare()
Get the offered share on the profit.- Returns:
- value between [0.35..0.65]
-
getName
java.lang.String getName()
Get the name of the pirate.- Returns:
- name of the pirate
-
getLastName
java.lang.String getLastName()
Get the last name of the pirate.- Returns:
-
setFollowers
void setFollowers(int followers)
Set the number of followers- Parameters:
followers
- number following the pirate
-
setName
void setName(java.lang.String name)
Set the name of the pirate- Parameters:
name
- of the pirate
-
setLastName
void setLastName(java.lang.String lastname)
Set the last name of the pirate- Parameters:
lastname
- of the pirate
-
setProfitShare
void setProfitShare(double profitShare)
Set the profite share- Parameters:
profitShare
- share of the profit to be transferred to the player.
-
-