-
Notifications
You must be signed in to change notification settings - Fork 142
Select Ship SubPhase
Michael Speth edited this page Oct 18, 2017
·
1 revision
(Version 0.1.2)
If player must select a ship, this subphase is used.
Create a subphase as child of "SubPhases.SelectShipSubPhase"
Override "Prepare" method:
- isEnemyAllowed - opponent's ships can be selected
- isFriendlyAllowed - own ships can be selected
- isThisAllowed - current ship can be selected
- minRange
- maxRange
- finishAction - what method will be called when ship is selected
When "finishAction" is called:
- Use "TargetShip" to work with selected ship
When 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)