A more powerful approach would be the State Pattern (Wikipedia). You would create an interface for your actor's state machine and then one class for each state implementing that interface (with virtual functions). State switching then becomes a matter of swapping out instances of your state classes at run-time. This would very closely resemble the state implementations in UE3.
Comment