Skip to content

Turn order deprecation#235

Merged
hopshackle merged 88 commits intomasterfrom
TurnOrderDeprecation
Jan 24, 2023
Merged

Turn order deprecation#235
hopshackle merged 88 commits intomasterfrom
TurnOrderDeprecation

Conversation

@hopshackle
Copy link
Copy Markdown
Collaborator

Deprecation of TurnOrder in the 6th Tagathon

TurnOrder is now deprecated. New games should be created by extending StandardForwardModel and AbstractGameState.

TurnOrder data is now in AbstractGameState
TurnOrder logic is now in StandardForwardModel

…s is already done in ForwardModel - and having a single point for change is much less confusing
The Main phase is not used by all games, so it seemed sensible to refactor this to use setGamePhase(), and be clearer at point of use what it is doing
This now provides two hooks for sub-classes:
_endRound() for stuff that is genuinely at the end of a round; before we increment timers, publish the ROUND_OVER event and move the player on
_startRound() for set up at the start of the next round (which may not take place if the game ends)
…shed (otherwise incorrect timings are reported)
hopshackle and others added 26 commits January 20, 2023 14:26
# Conflicts:
#	pom.xml
#	src/main/java/core/Game.java
#	src/main/java/games/diamant/DiamantGame.java
#	src/test/java/test/games/dicemonastery/ActionTests.java
#	src/test/java/test/games/dicemonastery/CopyTests.java
#	src/test/java/test/games/dicemonastery/CoreGameLoopTests.java
#	src/test/java/test/games/dicemonastery/vOneEightTests.java
@hopshackle hopshackle requested a review from rdgain January 24, 2023 17:09
@hopshackle hopshackle merged commit 73d6782 into master Jan 24, 2023
@hopshackle hopshackle deleted the TurnOrderDeprecation branch March 16, 2023 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants