| Modifier and Type | Interface and Description |
|---|---|
interface |
IAIPlayer
Player interface defining an artificial player.
|
| Modifier and Type | Method and Description |
|---|---|
IPlayer |
GameFactory.createPlayer(String name,
String lastName,
ICity homeTown,
boolean male,
int cash)
Create a human player instance.
|
| Modifier and Type | Method and Description |
|---|---|
ICompany |
GameFactory.createCompany(IPlayer owner,
ICity homeTown,
long cash) |
private void |
GameFactory.initPlayerInCities(IPlayer player)
Init the player data in all cities
|
| Modifier and Type | Method and Description |
|---|---|
IPlayer |
IBuilding.getOwner()
Retrieve the owner of the trading office
|
| Modifier and Type | Field and Description |
|---|---|
private IPlayer |
TradingOffice.owner
Reference to the player
|
private IPlayer |
Storage.owner |
| Constructor and Description |
|---|
Storage(IPlayer owner,
ICity city) |
TradingOffice(IPlayer player,
ICity city,
int value) |
| Modifier and Type | Method and Description |
|---|---|
List<IPlayer> |
ICity.getResidentPlayers()
Retrieve all the players that have a office in this city.
|
| Modifier and Type | Method and Description |
|---|---|
int |
BuildingProduction.getConsumption(IWare ware,
ICity city,
IPlayer player)
Retrieve the amount of ware that all the workshops of a player consume within a week
|
int |
ICity.getContribution(IPlayer player,
IWare ware)
Check out what the player contributed to the ware
|
int |
BuildingProduction.getProduction(IWare ware,
ICity city,
IPlayer player)
Compute the total amount of ware the player produces in the city within a week
|
IReputation |
ICity.getReputation(IPlayer player)
Retrieve the reputation of the player in the city
|
int |
ICity.move(IWare ware,
int amount,
IPlayer player)
Add or remove ware from the city.
|
void |
ICity.moveIn(IPlayer player)
Add a player to the city
|
| Modifier and Type | Field and Description |
|---|---|
private Map<IPlayer,Contributions> |
City.playersContributions
Store the contibutions of the players
|
private Map<IPlayer,IReputation> |
City.reputation
Map holding the reputation of the different players
|
private javafx.beans.property.MapProperty<IPerson,IPlayer> |
TavernState.talkingTo |
| Modifier and Type | Method and Description |
|---|---|
List<IPlayer> |
City.getResidentPlayers() |
javafx.beans.property.MapProperty<IPerson,IPlayer> |
TavernState.talkingToProperty() |
| Modifier and Type | Method and Description |
|---|---|
int |
City.getContribution(IPlayer player,
IWare ware) |
IReputation |
City.getReputation(IPlayer player) |
boolean |
TavernState.isTalkingToOtherPlayer(ITavernPerson person,
IPlayer player) |
int |
City.move(IWare ware,
int amount,
IPlayer player)
Move ware into this holding.
|
void |
City.moveIn(IPlayer player) |
| Modifier and Type | Field and Description |
|---|---|
private IPlayer |
BuildingFinished.owner |
private IPlayer |
DisplayMessagePackage.source |
private IPlayer |
DisplayMessagePackage.target |
| Constructor and Description |
|---|
DisplayMessagePackage(IPlayer source,
IPlayer target,
DisplayMessage message) |
| Modifier and Type | Method and Description |
|---|---|
BalanceSheet |
PlayerInteractionFactory.createInitialBalanceSheet(ICity city,
IPlayer player)
Create an initial balance sheet for player in city.
|
Reputation |
PlayerInteractionFactory.createReputation(ICity city,
IPlayer player) |
IStorage |
BuildingFactory.createStorage(IPlayer owner,
ICity city) |
ITradingOffice |
BuildingFactory.createTradingOffice(IPlayer owner,
ICity city,
int value) |
| Modifier and Type | Class and Description |
|---|---|
class |
AIPlayer
Implementation of an artificial intelligence player.
|
class |
Player |
| Modifier and Type | Field and Description |
|---|---|
private IPlayer |
Company.owner |
private IPlayer |
BalanceSheet.player |
| Modifier and Type | Method and Description |
|---|---|
int |
WareHolding.move(IWare ware,
int amount,
IPlayer player)
Move ware into this holding.
|
| Constructor and Description |
|---|
BalanceSheet(ICity city,
IPlayer player)
Initialize a blank sheet
|
Company(IPlayer owner,
ICity homeTown,
long cash) |
| Modifier and Type | Method and Description |
|---|---|
IPlayer |
IConcurrent.getClientPlayer()
Get the player that is the client
|
IPlayer |
IConcurrent.getConcurrentPlayer()
Retrieve the concurrent player
|
| Modifier and Type | Method and Description |
|---|---|
int |
ReputationCalculator.calculateWareRepputation(ICity city,
IPlayer player)
Check each ware if the player contributes and what amount.
|
com.google.common.base.Optional<MapSegmentedImage> |
IInformant.getMapSectionPart(IPlayer player)
The informant may also hold a map part for the player.
|
int |
IInformant.getPrice(IPlayer player)
Get the price of the information.
|
| Modifier and Type | Field and Description |
|---|---|
private IPlayer |
ConcurrentState.clientPlayer |
private IPlayer |
ConcurrentState.concurrentPlayer |
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.collect.Multimap<IPlayer,ISeaPirate> |
SeaPiratesState.nonFreePirates
List of the non free pirates
|
| Modifier and Type | Method and Description |
|---|---|
void |
SeaPiratesState.free(IPlayer player,
ISeaPirate pirate)
A non free pirate becomes free.
|
com.google.common.base.Optional<MapSegmentedImage> |
InformantState.getMapSectionPart(IPlayer player) |
List<ISeaPirate> |
SeaPiratesState.getNonFreePirates(IPlayer player)
Retrieve immutable list of non free pirates for the player
|
int |
InformantState.getPrice(IPlayer player) |
| Modifier and Type | Method and Description |
|---|---|
void |
SeaPiratesState.add(ISeaPirate pirate,
com.google.common.base.Optional<IPlayer> player)
Add a pirate.
|
| Modifier and Type | Field and Description |
|---|---|
private IPlayer |
Reputation.player |
| Constructor and Description |
|---|
Reputation(ICity city,
IPlayer player) |
| Modifier and Type | Method and Description |
|---|---|
IPlayer |
IShip.getOwner()
Retrieve the owner of the ship.
|
| Modifier and Type | Method and Description |
|---|---|
void |
IShip.setOwner(IPlayer player)
Define the owner of the ship
|
| Modifier and Type | Field and Description |
|---|---|
private IPlayer |
Ship.owner |
| Modifier and Type | Method and Description |
|---|---|
IPlayer |
Ship.getOwner() |
Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.