Class TradingOfficeJoinGuildMinCashStrategy
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.player.strategy.BaseJoinGuildStrategy
-
- ch.sahits.game.openpatrician.engine.player.strategy.TradingOfficeJoinGuildMinCashStrategy
-
- All Implemented Interfaces:
ch.sahits.game.openpatrician.model.player.IAIGuildJoinStrategy
public class TradingOfficeJoinGuildMinCashStrategy extends BaseJoinGuildStrategy
Always join the guild if the player has a certain amount of cash dependent on the entry fee.- Author:
- Andi Hotz, (c) Sahits GmbH, 2016 Created on Nov 15, 2016
-
-
Constructor Summary
Constructors Constructor Description TradingOfficeJoinGuildMinCashStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanadditionalJoinRequirementsMet(ch.sahits.game.openpatrician.model.IAIPlayer player, ch.sahits.game.openpatrician.model.city.ICity city, java.util.Optional<ch.sahits.game.openpatrician.model.ship.INavigableVessel> vessel)Additional requirients added by custom strategies.-
Methods inherited from class ch.sahits.game.openpatrician.engine.player.strategy.BaseJoinGuildStrategy
join, shouldJoin
-
-
-
-
Method Detail
-
additionalJoinRequirementsMet
protected boolean additionalJoinRequirementsMet(ch.sahits.game.openpatrician.model.IAIPlayer player, ch.sahits.game.openpatrician.model.city.ICity city, java.util.Optional<ch.sahits.game.openpatrician.model.ship.INavigableVessel> vessel)Description copied from class:BaseJoinGuildStrategyAdditional requirients added by custom strategies.- Specified by:
additionalJoinRequirementsMetin classBaseJoinGuildStrategy
-
-