ch.sahits.game.openpatrician.model.player.IAIGuildJoinStrategyAlwaysJoinGuildMinCashStrategy, HometownJoinGuildMinCashStrategy, NearHometownJoinGuildMinCashStrategy, NearTradingOfficeJoinGuildMinCashStrategy, TradingOfficeJoinGuildMinCashStrategypublic abstract class BaseJoinGuildStrategy
extends java.lang.Object
implements ch.sahits.game.openpatrician.model.player.IAIGuildJoinStrategy
| Constructor | Description |
|---|---|
BaseJoinGuildStrategy() |
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract 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) |
Additional requirients added by custom strategies.
|
void |
join(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.city.ICity city) |
|
boolean |
shouldJoin(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) |
Base requirements are: there has to be a guild, not yet a member and enough money to join.
|
public boolean shouldJoin(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)
shouldJoin in interface ch.sahits.game.openpatrician.model.player.IAIGuildJoinStrategyplayer - who should decide on joiningcity - where to joinvessel - possible vessel in the cityprotected abstract 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)
public void join(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.city.ICity city)
join in interface ch.sahits.game.openpatrician.model.player.IAIGuildJoinStrategyCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.