-
Notifications
You must be signed in to change notification settings - Fork 142
Decision SubPhase
Michael Speth edited this page Oct 18, 2017
·
1 revision
(Version 0.1.2)
If player must take a decision, this subphase is used.
Create a subphase as child of "SubPhases.DecisionSubPhase"
Override "Prepare" method:
- Set "infoText" to set title
- For each available decision call "AddDecision(DisplayedName, MethodToCall)"
- You can add image tooltips for decisions by calling "AddTooltip(DisplayedNameOfDecision>, UrlToImage)"
- Set "defaultDecision" to one of the values - it will be used by AI.
- Set "DecisionOwner" (by default this is current player)
When decision is taken and everything is done:
- Call "Phases.FinishSubphase" for this phase's type
- Call "CallBack"
When you need to ask player for decision, call: Phases.StartTemporarySubPhase(DisplayedNameOfSubphase, TypeOfYouNewSubphase, CallBack)