问题
I've got a game that I'm trying to create an activity diagram for but I run into some problems.
My try so far looks like this:
This shows the flow good, the GUI is created -> Player performs actions one -> Action Two -> Ends turn.
But what I don't really like is how I could solve action 3. It is suppose to be optional and can be performed anytime from the "System creates GUI" action up until "Player ends turn". Though, performing action three still doesn't move the player back or forth in the "main cycle".
The game has 4 players that go through the same cycle but I'm not sure this is a very good way to do it.
回答1:
How about this using Fork and Join?
来源:https://stackoverflow.com/questions/25612681/optional-activity-and-repeating-activity-for-different-actors-in-an-activity-dia