WIP: Draft: PopUp updates #207
No reviewers
Labels
No labels
bug
confirmed
critical
discussion
documentation
enhancement
game design
needs cadhan to fix tests
suggestion
support
tests
UI
under the rug
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
owenryan/carbonopoly!207
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "owen/popUpPropagation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is just a proposal, don't kill me.
The current way popUps work is that
gameBoardControllerinitializes thePopUpHelperstatic class, and then squares call themakepopupmethod. This technically works but is a bit hacky.I noticed that all popups are created in
onPassandonLand, and that at maximum only one popup is created per method call.This merge alters
GameSquare'sonPassandonLandmethod signatures to return aPopUp(wrapped in ajava.util.Optionalclass).GameSystem.resolveTurn()collects these and passes them along to the UI. Also, theresolveTurnandresolvePassesfunctions are merged because they are always called one after another.Again, this is just a proposal.
Also this changes some logic and breaks 3 grillion tests.
assigned to @40457809
changed the description
added 1 commit
f470f04d- Update resolveTurn to call onPass before onLandCompare with previous version
Pull request closed