public interface RequirementsProcessor
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkRequirement(MageContext context,
Requirement requirement)
Check if a player fulfills the target requirement.
|
String |
getRequirementDescription(MageContext context,
Requirement requirement)
This will be called when a requirement check has failed, in order to display to the player what they are missing.
|
boolean checkRequirement(@Nonnull MageContext context, @Nonnull Requirement requirement)
There is no central definition of all known requirements, and processors need not register them in advance.
context - The context under which this query is taking placerequirement - The requirement being checked@Nullable String getRequirementDescription(@Nonnull MageContext context, @Nonnull Requirement requirement)
context - The context under which this requirement failedrequirement - The requirement that failedCopyright © 2021 elMakers. All rights reserved.