Interface IAIGuildJoinStrategy
-
- All Known Implementing Classes:
AlwaysJoinGuildMinCashStrategy
,BaseJoinGuildStrategy
,HometownJoinGuildMinCashStrategy
,NearHometownJoinGuildMinCashStrategy
,NearTradingOfficeJoinGuildMinCashStrategy
,TradingOfficeJoinGuildMinCashStrategy
public interface IAIGuildJoinStrategy
Strategy to decide and join a guild.- Author:
- Andi Hotz, (c) Sahits GmbH, 2016 Created on Nov 15, 2016
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
join(IAIPlayer player, ICity city)
Join the guild in the city.boolean
shouldJoin(IAIPlayer player, ICity city, java.util.Optional<INavigableVessel> vessel)
Decide ifplayer
should join the guild in thecity
.
-
-
-
Method Detail
-
shouldJoin
boolean shouldJoin(IAIPlayer player, ICity city, java.util.Optional<INavigableVessel> vessel)
Decide ifplayer
should join the guild in thecity
. It may be that the player has avessel
in the city.
If the player is already a member of the guild false is returned always.- Parameters:
player
- who should decide on joiningcity
- where to joinvessel
- possible vessel in the city- Returns:
- true if the player should join the guild.
-
-