fire-shot.uxf 895 B

123456789101112131415161718192021222324252627282930
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <diagram program="umlet" version="14.3.0">
  3. <help_text/>
  4. <zoom_level>8</zoom_level>
  5. <element>
  6. <id>UMLSequenceAllInOne</id>
  7. <coordinates>
  8. <x>0</x>
  9. <y>240</y>
  10. <w>1432</w>
  11. <h>472</h>
  12. </coordinates>
  13. <panel_attributes>title=Firing a shot
  14. obj=display/default.ts\nDefaultEngineEventHandler:onkeydown()~a
  15. obj=game/objects.ts\nPlayer~b
  16. obj=main.ecal\nsink WebSocketHandler~c
  17. obj=engine.ecal\nexecuteAction()~e
  18. obj=templates.ecal\nPlayerState~d
  19. gate-&gt;a:The user presses &lt;space&gt;
  20. a-&gt;b:stateUpdate(action='fire')
  21. b-&gt;c:send state update to websocket (action='fire')
  22. c-&gt;d:set property action='fire'
  23. gate-&gt;e:Game loop
  24. e-&gt;d:doAction()
  25. d-&gt;gate:Add shot sprite to model
  26. d-&gt;gate:Send audio event to all clients
  27. </panel_attributes>
  28. <additional_attributes/>
  29. </element>
  30. </diagram>