I'm in a situation where one of the states in my FSM needs some information from the outside world to do its job. This information needs to be provided when the transition is requested. What's the best way to accomplish this? At this time I'm using the FSM class as a blackboard to share inforamtion between states.
One really dirty solution could be to have this information cached in the FSM and fill it before requesting the transition and let the state have it from the FSM black board. I don't really like it.
My language is C#
Cheers.