uml


UML Activity diagram how to show game ends when time has passed?


Activity Diagram for Simple Pacman-like Game
When 20 seconds passes, the player unlocks poison. Poison can be dropped to slow down the enemy, or the player can accidentally eat his own poison and slow down.
I want to show that the player wins after 60 seconds has passed. I thought I would show it as a loop looping the 20seconds 3 times but that would be incorrect because the player can only unlock the poison once.
Would the best way of showing this be to draw a rectangle around the entire diagram and just state (after 60 seconds, player wins)? - and have it lead to an end circle?
You can also just add the point where you get start time and add point when you check if current time - start time == 60sec.

Related Links

Inheritance and specialization
How works {XOR} constraint in UML?
Are these two uml arrows equivalent?
confuse methods in association class diagram
How can i link to attribute of an instance of a class
Class diagram attribute visibility. Public attribute can have getter and setter operations?
UML Class Diagram assosiation with following example?
UML-how to make it the right model?
UML Sequence Diagram: Destroy an object with condition
Creating UML class diagram for entrance system?
/Entry in an UML state diagram with VHDL
Use cases diagram: an actor communicates something to another actor
Why is it said “Collaboration” realizes “Use case” rather than vice versa?
UML model for CAN communication
state machine run-to-completion paradigm
Creating UML diagrams: 3-player Chess

Categories

HOME
android
grok
microsoftgraph
api
checkstyle
c++11
jax-rs
fftw
socket.io
solver
spring-data-mongodb
scripting
cakephp-3.4
pearson-correlation
vert.x
discrete-mathematics
google-chrome-app
reactive-programming
java.util.logging
symfony-2.8
null-pointer
mvc-mini-profiler
soci
dataflow-diagram
visual-studio-extensions
event-store
google-cloud-print
jquery-multiselect
realm-mobile-platform
testcomplete
boost-asio
python-import
video-capture
timing
nohup
mcustomscrollbar
levenshtein-distance
dcmtk
dbnull
claims
vaadin-charts
httr
opencmis
jide
vaadin-elements
fclose
activeperl
flyout
flac
sandcastle
pocketsphinx-android
reporting-services-2012
beamer
nss
dbamp
lz77
spring-retry
directdraw
sql-server-data-tools
xmltype
public-html
procedural-programming
document-repository
apache-spark-1.3
infosphere-spl
android-vibration
live555
extjs2
multiautocompletetextview
scriptaculous
nevron
curb
ilasm
isa-swizzling
agility.js
jqote
creole
resharper-6.0
dot-emacs
burndowncharts
contentpresenter
cardspace

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App