I was going to suggest using Finite State Machine as well.
Anyway, this may be of interest:
Ask it "where can I download your source code" for more information.
On September 18, 2004 01:22 am, Boris Koenig wrote:
> So all this would need to be dictionary-based, dealing with
> loops that expect a certain transmission depending on the
> previous transmissions - which is certainly not clever to
> hard-code, but rather a script-able approach would be
> preferable, possibly using a mechanism like state machine
> implemented via xml files for each transmission, so that
> these are being recursively parsed depending on the current
> context ...
Flightgear-devel mailing list