Interface IAIGuildJoinStrategy
-
public interface IAIGuildJoinStrategyStrategy 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 voidjoin(IAIPlayer player, ICity city)Join the guild in the city.booleanshouldJoin(IAIPlayer player, ICity city, java.util.Optional<INavigableVessel> vessel)Decide ifplayershould join the guild in thecity.
-
-
-
Method Detail
-
shouldJoin
boolean shouldJoin(IAIPlayer player, ICity city, java.util.Optional<INavigableVessel> vessel)
Decide ifplayershould join the guild in thecity. It may be that the player has avesselin 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.
-
-