|
ceptr
|
#include <semtrex.h>
Data Fields | |
| struct SState * | out |
| which state to go to next | |
| TransitionType | transition |
| will be: TransitionNextChild=0,TransitionDown=1, or a negative number which means pop up that many levels plus advance to next child. | |
| StateType | type |
| what type of state this is | |
| struct SState * | out1 |
| which alternate state to go to next in the case this is a Split state | |
| TransitionType | transition1 |
| will be: TransitionNextChild=0,TransitionUp=-1,TransitionDown=1 | |
| StateType | type_ |
| copy of state type needed for patch to grab (far too tricky) | |
| int | _did |
| used to hold a mark when freeing and printing out FSA to prevent looping. | |
| STypeData | data |
| a union to hold the data for which ever type of SState this is | |
This struct holds the data for each state of the FSA generated to match a tree NOTE: the transition MUST come right after the out value or it will break the trick in patch() which allows us to get the right popping value