Break up the played cards scoring loop into several functions (#224)
* rename PLAY_PLAYING state into PLAY_STARTING * make discarded_card and sound_played global variables * Broken up cards_score state update --------- Co-authored-by: MathisMartin31 <mathis.martin31@gmail.com> Co-authored-by: MeirGavish <meir.gavish@gmail.com>
This commit is contained in:
co-authored by
MathisMartin31
MeirGavish
parent
557e591c31
commit
1ac55692e9
+4
-3
@@ -50,11 +50,12 @@ enum HandState
|
||||
|
||||
enum PlayState
|
||||
{
|
||||
PLAY_PLAYING,
|
||||
PLAY_STARTING,
|
||||
PLAY_BEFORE_SCORING,
|
||||
PLAY_SCORING_CARDS,
|
||||
PLAY_SCORING_HELD,
|
||||
PLAY_SCORING_JOKERS,
|
||||
PLAY_SCORING_CARD_JOKERS,
|
||||
PLAY_SCORING_HELD_CARDS,
|
||||
PLAY_SCORING_INDEPENDENT_JOKERS,
|
||||
PLAY_ENDING,
|
||||
PLAY_ENDED
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user