Uses of Interface
ch.sahits.game.openpatrician.model.IPlayer

Packages that use IPlayer
ch.sahits.game.openpatrician.model   
ch.sahits.game.openpatrician.model.building   
ch.sahits.game.openpatrician.model.building.impl   
ch.sahits.game.openpatrician.model.city   
ch.sahits.game.openpatrician.model.city.impl   
ch.sahits.game.openpatrician.model.impl   
ch.sahits.game.openpatrician.model.people   
ch.sahits.game.openpatrician.model.personal.impl   
 

Uses of IPlayer in ch.sahits.game.openpatrician.model
 

Subinterfaces of IPlayer in ch.sahits.game.openpatrician.model
 interface IAIPlayer
          Player interface defining an artificial player.
 

Classes in ch.sahits.game.openpatrician.model that implement IPlayer
(package private)  class AIPlayer
          Implementation of an artificial intelligence player.
(package private)  class Player
           
 

Methods in ch.sahits.game.openpatrician.model that return IPlayer
static IPlayer GameFactory.createAIPlayer(ICity homeTown, long cash)
          Create an artifiacial player instance.
static IPlayer GameFactory.createPlayer(String name, String lastName, ICity homeTown, boolean male, int cash)
          Create a human player instance.
 

Methods in ch.sahits.game.openpatrician.model with parameters of type IPlayer
private static void GameFactory.initPlayerInCities(IPlayer player)
          Init the player data in all cities
 

Uses of IPlayer in ch.sahits.game.openpatrician.model.building
 

Fields in ch.sahits.game.openpatrician.model.building declared as IPlayer
private  IPlayer TradingOffice.player
          Reference to the player
 

Methods in ch.sahits.game.openpatrician.model.building that return IPlayer
 IPlayer IBuilding.getOwner()
          Retrieve the owner of the trading office
 IPlayer TradingOffice.getOwner()
           
 

Methods in ch.sahits.game.openpatrician.model.building with parameters of type IPlayer
static ITradingOffice BuildingFactory.createTridingOffice(IPlayer player, ICity city, int value)
          Create a new trading office in the city.
 

Constructors in ch.sahits.game.openpatrician.model.building with parameters of type IPlayer
TradingOffice(IPlayer player, ICity city, int value)
           
 

Uses of IPlayer in ch.sahits.game.openpatrician.model.building.impl
 

Fields in ch.sahits.game.openpatrician.model.building.impl declared as IPlayer
private  IPlayer Storage.owner
           
 

Constructors in ch.sahits.game.openpatrician.model.building.impl with parameters of type IPlayer
Storage(IPlayer owner, ICity city)
           
 

Uses of IPlayer in ch.sahits.game.openpatrician.model.city
 

Methods in ch.sahits.game.openpatrician.model.city with parameters of type IPlayer
 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
 

Uses of IPlayer in ch.sahits.game.openpatrician.model.city.impl
 

Fields in ch.sahits.game.openpatrician.model.city.impl with type parameters of type IPlayer
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
 

Methods in ch.sahits.game.openpatrician.model.city.impl with parameters of type IPlayer
 int City.getContribution(IPlayer player, IWare ware)
           
 IReputation City.getReputation(IPlayer player)
           
 int City.move(IWare ware, int amount, IPlayer player)
          Move ware into this holding.
 void City.moveIn(IPlayer player)
           
 

Uses of IPlayer in ch.sahits.game.openpatrician.model.impl
 

Fields in ch.sahits.game.openpatrician.model.impl declared as IPlayer
private  IPlayer Company.owner
           
private  IPlayer BalanceSheet.player
           
 

Methods in ch.sahits.game.openpatrician.model.impl with parameters of type IPlayer
 int WareHolding.move(IWare ware, int amount, IPlayer player)
          Move ware into this holding.
 

Constructors in ch.sahits.game.openpatrician.model.impl with parameters of type IPlayer
BalanceSheet(ICity city, IPlayer player)
          Initialize a blank sheet
Company(IPlayer owner, ICity homeTown, long cash)
           
 

Uses of IPlayer in ch.sahits.game.openpatrician.model.people
 

Methods in ch.sahits.game.openpatrician.model.people with parameters of type IPlayer
 int ReputationCalculator.calculateWareRepputation(ICity city, IPlayer player)
          Check each ware if the player contributes and what amount.
 

Uses of IPlayer in ch.sahits.game.openpatrician.model.personal.impl
 

Fields in ch.sahits.game.openpatrician.model.personal.impl declared as IPlayer
private  IPlayer Reputation.player
           
 

Constructors in ch.sahits.game.openpatrician.model.personal.impl with parameters of type IPlayer
Reputation(ICity city, IPlayer player)
           
 



Copyright © 2011-2012 Sahits GmbH. All Rights Reserved.