Interface ComplexDataItemController<D extends DataItem, V extends DataItemValue<D>>
- All Superinterfaces:
PartialController<D>,ProcessingStep
- All Known Subinterfaces:
LevellingProfileController,NumericalDataItemController<D,V>
public interface ComplexDataItemController<D extends DataItem, V extends DataItemValue<D>>
extends PartialController<D>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptioncanBeDeselected(V value) Check if the user is allowed to deselect the itemcanBeSelected(D value, Decision... decisions) Check if the user is allowed to select the itembooleanRemove/Deselect the item (UNDO mode)default booleandeselect(V value, ComplexDataItemController.RemoveMode mode) Get all no yet selected items - either even with those whose requirements are not met, or without them-getChoicesToDecide(D value) Get the choices to be made should the user want to select the itemgetRecommendationState(D value) getRecommendationState(V value) Get a list of all currently selected itemsfloatgetSelectionCost(D data, Decision... decisions) default StringgetSelectionCostString(D data) Add/Select the item using the given decisionsMethods inherited from interface de.rpgframework.genericrpg.chargen.PartialController
decide, getAsChoice, getAsModificationChoice, getCharacterController, getChoices, getChoiceUUIDs, getModel, getToDos, rollMethods inherited from interface de.rpgframework.character.ProcessingStep
process
-
Method Details
-
getAvailable
-
getSelected
-
getRecommendationState
-
getRecommendationState
-
getChoicesToDecide
-
canBeSelected
Check if the user is allowed to select the item- Parameters:
value- Item to selectdecisions- Decisions made- Returns:
- Selection allowed or not
- Throws:
IllegalArgumentException- Thrown if a decision is missing or invalid
-
select
Add/Select the item using the given decisions- Parameters:
value- Item to selectdecisions- Decisions made- Returns:
- value instance of selected item
- Throws:
IllegalArgumentException- Thrown if a decision is missing or invalid
-
canBeDeselected
-
deselect
Remove/Deselect the item (UNDO mode)- Parameters:
value- Item to select- Returns:
- TRUE if item has been deselected
- Throws:
IllegalArgumentException- Thrown if a decision is missing or invalid
-
deselect
-
getSelectionCost
-
getSelectionCostString
-