Optional activity and repeating activity for different actors in an activity diagram

邮差的信 提交于 2019-12-24 17:18:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!