FreeOrion

Forums for the FreeOrion project
It is currently Tue Dec 12, 2017 11:19 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue Aug 15, 2017 1:00 am 
Offline
AI Lead, Programmer
User avatar

Joined: Sat Sep 22, 2012 6:25 pm
Posts: 4390
I was tracing through our save process and it struck me that it might be handy (or at least interesting) to refer to an actual state diagram especially if there were a way to automatically make state transition diagrams from boost FSM code. I did find a tool that can do a reasonable job with it-- at https://rtime.felk.cvut.cz/statechart-viewer/. Attached for reference are the diagrams it came up with for the HumanClientFSM and ServerFSM. For anyone else looking to use this, please note that relies on clamg/llvm and seems to require an older version; it would not build for me with version 3.8 but built fine with version 3.5 (which was the version mentioned in its README). Clang also spit up an error about not finding GG/Enum.h, but you can ignore that, it still generates the dot file just fine.

Attachment:
File comment: HumanClientFSM
HumanClientFSM.png
HumanClientFSM.png [ 124.91 KiB | Viewed 75 times ]


Attachment:
File comment: ServerFSM
ServerFSM.png
ServerFSM.png [ 222.27 KiB | Viewed 75 times ]

_________________
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group