ss="chapter" title="Chapter&nbsp;5.&nbsp;Questions &amp; Answers, tips"><div class="titlepage"><div><div><h2 class="title"><a name="d0e2912"></a>Chapter&nbsp;5.&nbsp;Questions &amp; Answers, tips</h2></div></div></div><p><span class="underline">Where should I define a state machine?</span>: The
                tutorials are implemented in a simple cpp source file for simplicity. I want to
                model dynamic behavior of a class as a state machine, how should I define the state
                mach