Class BuildingLimiter<Building extends KingdomBuilding<?>>
java.lang.Object
org.kingdoms.abstraction.processor.AbstractKingdomsProcess
org.kingdoms.abstraction.processor.AbstractKingdomsProcessor
org.kingdoms.managers.buildings.limit.BuildingLimiter<Building>
- All Implemented Interfaces:
org.kingdoms.abstraction.processor.KingdomsProcess,org.kingdoms.abstraction.processor.KingdomsProcessor,org.kingdoms.locale.provider.MessageContextProvider
public final class BuildingLimiter<Building extends KingdomBuilding<?>>
extends org.kingdoms.abstraction.processor.AbstractKingdomsProcessor
A class that handles and checks for turret/structure limits.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.kingdoms.abstraction.processor.KingdomsProcess
org.kingdoms.abstraction.processor.KingdomsProcess.Intent, org.kingdoms.abstraction.processor.KingdomsProcess.Message, org.kingdoms.abstraction.processor.KingdomsProcess.MessageType -
Method Summary
Modifier and TypeMethodDescriptioncheckCanAddMore(KingdomBuildingStyle<Building, ?, ?> style) intgetLimit(BuildingLimitType type) booleanstatic BuildingLimiter<Structure> ofStructures(Kingdom kingdom, Land land) static BuildingLimiter<Turret> static BuildingLimiter<Turret> @NotNull BuildingLimiter<Building> process()@Nullable Messenger@NotNull org.kingdoms.abstraction.processor.KingdomsProcessorMethods inherited from class org.kingdoms.abstraction.processor.AbstractKingdomsProcess
getFinalizer, getIntent, getMessageContext, getMessages, getMetadata, setIntent, setSuccessfulMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kingdoms.abstraction.processor.KingdomsProcess
addFinalizer, fail, finalizeProcess, getCombinedMessage, getFinalizer, getIntent, getMessages, getMetadata, inherit, message, sendMessages, setIntent, setSuccessful, varMethods inherited from interface org.kingdoms.locale.provider.MessageContextProvider
getMessageContext
-
Method Details
-
isSuccessful
public boolean isSuccessful()- Specified by:
isSuccessfulin interfaceorg.kingdoms.abstraction.processor.KingdomsProcess- Overrides:
isSuccessfulin classorg.kingdoms.abstraction.processor.AbstractKingdomsProcess
-
processIssue
-
getLimit
-
checkCanAddMore
-
ofStructures
-
ofTurrets
-
ofTurrets
-
prepareForRemoval
-
removeExtra
-
process
-
reprocess
@NotNull public @NotNull org.kingdoms.abstraction.processor.KingdomsProcessor reprocess()
-