Uses of Interface
ch.sahits.game.openpatrician.model.IPlayer
-
-
Uses of IPlayer in ch.sahits.game.openpatrician.model
Subinterfaces of IPlayer in ch.sahits.game.openpatrician.model Modifier and Type Interface Description interfaceIAIPlayerPlayer interface defining an artificial player.interfaceIHumanPlayerThis player represents a human player.Methods in ch.sahits.game.openpatrician.model that return IPlayer Modifier and Type Method Description IPlayerPlayerList. get(int index)Methods in ch.sahits.game.openpatrician.model that return types with arguments of type IPlayer Modifier and Type Method Description java.util.Iterator<IPlayer>PlayerList. iterator()java.util.stream.Stream<IPlayer>PlayerList. stream()Methods in ch.sahits.game.openpatrician.model with parameters of type IPlayer Modifier and Type Method Description booleanPlayerList. add(IPlayer player)IBuildingAuctionModelFactory. createBuildingAuction(java.time.LocalDateTime auctionDate, int startingBid, IPlayer owner, IBuilding building)Retrieve an auction instance for thebuildingowned byowner, which will be auctioned onauctionDatestarting withstartingBidIShipAuctionModelFactory. createShipAuction(java.time.LocalDateTime auctionDate, int startingBid, IPlayer owner, IShip ship)Retrieve an auction instance for theshipowned byowner, which will be auctioned onauctionDatestarting withstartingBid -
Uses of IPlayer in ch.sahits.game.openpatrician.model.building
Methods in ch.sahits.game.openpatrician.model.building that return IPlayer Modifier and Type Method Description IPlayerIBuilding. getOwner()Retrieve the owner of the trading officeMethods in ch.sahits.game.openpatrician.model.building with parameters of type IPlayer Modifier and Type Method Description java.util.List<ITradingOffice>TradingOfficeList. findOwnedBy(IPlayer player)Find all trading offices of a player.voidIBuilding. setOwner(IPlayer newOwner)Some buildings may be sold to other players. -
Uses of IPlayer in ch.sahits.game.openpatrician.model.building.impl
Methods in ch.sahits.game.openpatrician.model.building.impl with parameters of type IPlayer Modifier and Type Method Description voidTradingOffice. setOwner(IPlayer newOwner)Constructors in ch.sahits.game.openpatrician.model.building.impl with parameters of type IPlayer Constructor Description Storage(IPlayer owner, ICity city)TradingOffice(IPlayer player, ICity city, int value, IStorage storage, IBalanceSheet lastWeek, IBalanceSheet thisWeek) -
Uses of IPlayer in ch.sahits.game.openpatrician.model.city
Methods in ch.sahits.game.openpatrician.model.city that return types with arguments of type IPlayer Modifier and Type Method Description java.util.List<IPlayer>ICity. getResidentPlayers()Retrieve all the players that have a office in this city.Methods in ch.sahits.game.openpatrician.model.city with parameters of type IPlayer Modifier and Type Method Description voidICity. addBuildingPermission(IPlayer player)Add the bulidng permission for that player in the city.intICity. getContribution(IPlayer player, IWare ware)Check out what the player contributed to the wareintIBuildingProduction. getProduction(IWare ware, ICity city, IPlayer player)Compute the total amount of ware the player produces in the city within a weekIReputationICity. getReputation(IPlayer player)Retrieve the reputation of the player in the citybooleanICity. hasBuildingPermission(IPlayer player)The player has building permission in this city.voidICity. moveIn(IPlayer player, IReputation reputaion, Contributions contributions)Add a player to the cityMethod parameters in ch.sahits.game.openpatrician.model.city with type arguments of type IPlayer Modifier and Type Method Description <T extends IBuilding>
java.util.List<T>ICity. findBuilding(java.lang.Class<T> buildingClass, java.util.Optional<IPlayer> owner)Find all matching buildings in a city. -
Uses of IPlayer in ch.sahits.game.openpatrician.model.city.cityhall
Methods in ch.sahits.game.openpatrician.model.city.cityhall that return IPlayer Modifier and Type Method Description IPlayerIAcceptedAldermanTask. getPlayer()Methods in ch.sahits.game.openpatrician.model.city.cityhall with parameters of type IPlayer Modifier and Type Method Description voidIAldermanOffice. addTask(IAldermanTask task, java.time.LocalDateTime limit, IPlayer player)Add a new task that is currently worked on.voidAldermanTaskPlayerMap. assignTask(IPlayer player, IAldermanTask task) -
Uses of IPlayer in ch.sahits.game.openpatrician.model.city.cityhall.impl
Methods in ch.sahits.game.openpatrician.model.city.cityhall.impl with parameters of type IPlayer Modifier and Type Method Description voidAldermanOffice. addTask(IAldermanTask task, java.time.LocalDateTime limit, IPlayer player)Constructors in ch.sahits.game.openpatrician.model.city.cityhall.impl with parameters of type IPlayer Constructor Description AcceptedAldermanTask(IAldermanTask task, java.time.LocalDateTime deadline, IPlayer player) -
Uses of IPlayer in ch.sahits.game.openpatrician.model.city.guild
Methods in ch.sahits.game.openpatrician.model.city.guild that return IPlayer Modifier and Type Method Description IPlayerIAuction. getBiddingPlayer()Retrieve the currently bidding player.Methods in ch.sahits.game.openpatrician.model.city.guild that return types with arguments of type IPlayer Modifier and Type Method Description java.util.List<IPlayer>IGuild. getMembers()Retrieve all members of the guild.java.util.Optional<IPlayer>IAuction. getOwner()Get the owner that is auctioning.Methods in ch.sahits.game.openpatrician.model.city.guild with parameters of type IPlayer Modifier and Type Method Description voidIMediterreanMap. addTradeAgreement(IPlayer player, ITradeAgreement agreement)Add a trade agreement for a player.booleanIMediterreanMap. exploreSpot(IPlayer player, javafx.geometry.Point2D coordinates)Player explored a spot and may have detected a trading spot.java.util.List<javafx.geometry.Point2D>IMediterreanMap. getExploredLocations(IPlayer player)Retrieve a list of all discovered location for a player.java.util.List<ITradeAgreement>IMediterreanMap. getTradeAgreements(IPlayer player)Retreive the trade agreements for a specific player.voidIGuild. join(IPlayer player)A player joins the guild.voidIAuction. setBiddingPlayer(IPlayer player)Set the currently bidding player. -
Uses of IPlayer in ch.sahits.game.openpatrician.model.city.guild.impl
Methods in ch.sahits.game.openpatrician.model.city.guild.impl with parameters of type IPlayer Modifier and Type Method Description voidMediterreanSeaMap. addTradeAgreement(IPlayer player, ITradeAgreement agreement)booleanMediterreanSeaMap. exploreSpot(IPlayer player, javafx.geometry.Point2D coordinates)java.util.List<javafx.geometry.Point2D>MediterreanSeaMap. getExploredLocations(IPlayer player)java.util.List<ITradeAgreement>MediterreanSeaMap. getTradeAgreements(IPlayer player)voidGuild. join(IPlayer player)Constructors in ch.sahits.game.openpatrician.model.city.guild.impl with parameters of type IPlayer Constructor Description AbstractAuction(java.time.LocalDateTime auctionDate, int startingBid, IPlayer owner)Create an auction object with a specific owner.BuildingAuction(java.time.LocalDateTime auctionDate, int startingBid, IPlayer owner, IBuilding auctionedBuilding)Create an auction for a building.ShipAuction(java.time.LocalDateTime auctionDate, int startingBid, IPlayer owner, IShip auctionedShip)Create a ship auction together with it's owner. -
Uses of IPlayer in ch.sahits.game.openpatrician.model.city.impl
Methods in ch.sahits.game.openpatrician.model.city.impl that return types with arguments of type IPlayer Modifier and Type Method Description java.util.List<IPlayer>City. getResidentPlayers()javafx.beans.property.MapProperty<IPerson,IPlayer>TavernState. talkingToProperty()Methods in ch.sahits.game.openpatrician.model.city.impl with parameters of type IPlayer Modifier and Type Method Description voidCity. addBuildingPermission(IPlayer player)intCity. getContribution(IPlayer player, IWare ware)IReputationCity. getReputation(IPlayer player)booleanCity. hasBuildingPermission(IPlayer player)booleanTavernState. isTalkingToOtherPlayer(ITavernPerson person, IPlayer player)voidCity. moveIn(IPlayer player, IReputation reputaion, Contributions contributions)Method parameters in ch.sahits.game.openpatrician.model.city.impl with type arguments of type IPlayer Modifier and Type Method Description <T extends IBuilding>
java.util.List<T>City. findBuilding(java.lang.Class<T> buildingClass, java.util.Optional<IPlayer> owner) -
Uses of IPlayer in ch.sahits.game.openpatrician.model.event
Constructors in ch.sahits.game.openpatrician.model.event with parameters of type IPlayer Constructor Description BuildingFinished(IBuilding building, IPlayer owner, ICity city) -
Uses of IPlayer in ch.sahits.game.openpatrician.model.impl
Classes in ch.sahits.game.openpatrician.model.impl that implement IPlayer Modifier and Type Class Description classAIPlayerImplementation of an artificial intelligence player.classHumanPlayerclassPlayerMethods in ch.sahits.game.openpatrician.model.impl with parameters of type IPlayer Modifier and Type Method Description voidCompany. setOwner(IPlayer player)Constructors in ch.sahits.game.openpatrician.model.impl with parameters of type IPlayer Constructor Description BalanceSheet(ICity city, IPlayer player)Initialize a blank sheet -
Uses of IPlayer in ch.sahits.game.openpatrician.model.map
Methods in ch.sahits.game.openpatrician.model.map that return types with arguments of type IPlayer Modifier and Type Method Description com.google.common.collect.Multimap<IPlayer,ICity>IMap. getTownsInFounding()Retrieve the cities that are currently being founded by players.Methods in ch.sahits.game.openpatrician.model.map with parameters of type IPlayer Modifier and Type Method Description java.util.List<ICity>IMap. getCities(IPlayer player)Retrieve an unmodifiable list of all the cities in the map also including the once only visible to the player. -
Uses of IPlayer in ch.sahits.game.openpatrician.model.map.impl
Methods in ch.sahits.game.openpatrician.model.map.impl with parameters of type IPlayer Modifier and Type Method Description java.util.List<ICity>GameMap. getCities(IPlayer player) -
Uses of IPlayer in ch.sahits.game.openpatrician.model.people
Methods in ch.sahits.game.openpatrician.model.people that return IPlayer Modifier and Type Method Description IPlayerIConcurrent. getClientPlayer()Get the player that is the clientIPlayerIConcurrent. getConcurrentPlayer()Retrieve the concurrent playerIPlayerINonFreeSeaPirate. getHiringPlayer()Player who hired the pirateMethods in ch.sahits.game.openpatrician.model.people with parameters of type IPlayer Modifier and Type Method Description java.util.Optional<IContractBroker>IContractBrokers. findContractBroker(ICity city, IPlayer player)Retrieve the contract broker in the city, who is waiting for a delivery by the player.java.util.Optional<MapSegmentedImage>IInformant. getMapSectionPart(IPlayer player)The informant may also hold a map part for the player.intIInformant. getPrice(IPlayer player)Get the price of the information.voidIConcurrent. setClientPlayer(IPlayer clientPlayer)Set the player instance accepting the contractvoidIConcurrent. setConcurrentPlayer(IPlayer concurrentPlayer)Set the player, who is the concurrent -
Uses of IPlayer in ch.sahits.game.openpatrician.model.people.impl
Methods in ch.sahits.game.openpatrician.model.people.impl with parameters of type IPlayer Modifier and Type Method Description java.util.Optional<MapSegmentedImage>InformantState. getMapSectionPart(IPlayer player)java.util.List<ISeaPirate>SeaPiratesState. getNonFreePirates(IPlayer player)Retrieve immutable list of non free pirates for the playerintInformantState. getPrice(IPlayer player)Constructors in ch.sahits.game.openpatrician.model.people.impl with parameters of type IPlayer Constructor Description NonFreeSeaPirate(IPlayer hiringPlayer, java.time.LocalDateTime hireDate, ICity nearCity)Create a non free pirate. -
Uses of IPlayer in ch.sahits.game.openpatrician.model.personal.impl
Constructors in ch.sahits.game.openpatrician.model.personal.impl with parameters of type IPlayer Constructor Description Reputation(ICity city, IPlayer player) -
Uses of IPlayer in ch.sahits.game.openpatrician.model.sea
Methods in ch.sahits.game.openpatrician.model.sea that return types with arguments of type IPlayer Modifier and Type Method Description java.util.List<IPlayer>IBlockade. getPlayersWithRequestedShips()Retrieve a list of players which have requested a shipMethods in ch.sahits.game.openpatrician.model.sea with parameters of type IPlayer Modifier and Type Method Description voidIBlockade. addShips(IPlayer player, java.util.List<IShip> shipList)Add a number of ships for a player to the blockade.intIBlockade. getNumberOfRequestedShips(IPlayer player)Retrieve the number of ships that are requested.java.util.List<IShip>IBlockade. getShips(IPlayer player)Retrieve the ships of a certain player. -
Uses of IPlayer in ch.sahits.game.openpatrician.model.sea.impl
Methods in ch.sahits.game.openpatrician.model.sea.impl that return types with arguments of type IPlayer Modifier and Type Method Description java.util.List<IPlayer>Blockade. getPlayersWithRequestedShips()Methods in ch.sahits.game.openpatrician.model.sea.impl with parameters of type IPlayer Modifier and Type Method Description voidBlockade. addShips(IPlayer player, java.util.List<IShip> shipList)intBlockade. getNumberOfRequestedShips(IPlayer player)java.util.List<IShip>Blockade. getShips(IPlayer player)voidBlockade. requestShip(IPlayer player, int number) -
Uses of IPlayer in ch.sahits.game.openpatrician.model.ship
Methods in ch.sahits.game.openpatrician.model.ship that return types with arguments of type IPlayer Modifier and Type Method Description java.util.Map<IPlayer,java.lang.Integer>IConvoy. getCapacityPerOwner()Collect the convoys capacity per player who has ships in the convoy.java.util.List<IPlayer>IConvoy. getPlayers()Get all players who have a ship in the convoy.Methods in ch.sahits.game.openpatrician.model.ship with parameters of type IPlayer Modifier and Type Method Description java.util.List<IShip>IConvoy. getShips(IPlayer player)Get all the ships in the convoi that belong to a player. -
Uses of IPlayer in ch.sahits.game.openpatrician.model.ship.impl
Methods in ch.sahits.game.openpatrician.model.ship.impl that return types with arguments of type IPlayer Modifier and Type Method Description java.util.Map<IPlayer,java.lang.Integer>Convoy. getCapacityPerOwner()java.util.List<IPlayer>Convoy. getPlayers()Methods in ch.sahits.game.openpatrician.model.ship.impl with parameters of type IPlayer Modifier and Type Method Description java.util.List<IShip>Convoy. getShips(IPlayer player) -
Uses of IPlayer in ch.sahits.game.openpatrician.model.ui
Constructors in ch.sahits.game.openpatrician.model.ui with parameters of type IPlayer Constructor Description TargetedDialogStateWrapper(IPlayer player, IDialogState state)
-