1
edit
Changes
State
,→Code Samples
== Code Samples ==
[http://matrix.senecac.on.ca/~rmwang/btppresentation/statesample.html Click here to see the UML diagram for this example]
'''Header File Content'''
<pre>
class IState;
};
</pre>
'''Class Definitions for State objects'''
<pre>
class IState {
};
</pre>
'''Class Functions'''
<pre>
cDarkElf::cDarkElf() {_pState = new cState_Stop;}