Class NearHometownJoinGuildMinCashStrategy
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.player.strategy.BaseJoinGuildStrategy
-
- ch.sahits.game.openpatrician.engine.player.strategy.NearHometownJoinGuildMinCashStrategy
-
- All Implemented Interfaces:
IAIGuildJoinStrategy
public class NearHometownJoinGuildMinCashStrategy 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
-
-
Field Summary
Fields Modifier and Type Field Description private IMap
map
private static int
MAX_DISTANCE_IN_KM
private double
maxDistanceInPixels
-
Constructor Summary
Constructors Constructor Description NearHometownJoinGuildMinCashStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
additionalJoinRequirementsMet(IAIPlayer player, ICity city, java.util.Optional<INavigableVessel> vessel)
Additional requirients added by custom strategies.(package private) void
init()
-
Methods inherited from class ch.sahits.game.openpatrician.engine.player.strategy.BaseJoinGuildStrategy
join, shouldJoin
-
-
-
-
Field Detail
-
MAX_DISTANCE_IN_KM
private static final int MAX_DISTANCE_IN_KM
- See Also:
- Constant Field Values
-
maxDistanceInPixels
private double maxDistanceInPixels
-
map
@Autowired private IMap map
-
-
Method Detail
-
init
@PostConstruct void init()
-
additionalJoinRequirementsMet
protected boolean additionalJoinRequirementsMet(IAIPlayer player, ICity city, java.util.Optional<INavigableVessel> vessel)
Description copied from class:BaseJoinGuildStrategy
Additional requirients added by custom strategies.- Specified by:
additionalJoinRequirementsMet
in classBaseJoinGuildStrategy
-
-