Class SupportPreferences
- java.lang.Object
-
- ca.cgjennings.apps.arkham.component.design.SupportPreferences
-
public final class SupportPreferences extends java.lang.ObjectThis is a utility class that can be used by design support implementations to look up the current state of the various design support preference settings.- Since:
- 3.0
- Author:
- Chris Jennings
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSupportPreferences.FeedbackLevelAn enumeration of the different levels of validation feedback that can be requested for component sheets.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SupportPreferences.FeedbackLevelgetValidationFeedbackLevel()Returns the level of feedback that the user has requested when a component is considered invalid.static booleanisDesignSupportEnabled()Returnstrueif the user has requested that game component editors show design support information for components with design support.static booleanisStrictValidationEnabled()Returnstrueif the user has requested that components should be validated more strictly.
-
-
-
Method Detail
-
isDesignSupportEnabled
public static boolean isDesignSupportEnabled()
Returnstrueif the user has requested that game component editors show design support information for components with design support.- Returns:
trueif editors should show design support
-
getValidationFeedbackLevel
public static SupportPreferences.FeedbackLevel getValidationFeedbackLevel()
Returns the level of feedback that the user has requested when a component is considered invalid. Game components that consider validity (game balance, fairness) as part of their design support analysis should also add support to the component'sSheets to display feedback when the component is invalid. This setting indicates how bold this feedback should be.- Returns:
- a value that reflects how obviously invalid components should be marked
-
isStrictValidationEnabled
public static boolean isStrictValidationEnabled()
Returnstrueif the user has requested that components should be validated more strictly. The exact interpretation of this is left up to the design support, but generally it means that borderline cases that may have simply been noted in the design support view ought to invalidate the component.- Returns:
trueif validation is enabled and the user has requested strict validation mode
-
-