void *SMTA_MakeActionX(void *execadd, Uint8 start, Uint8 count)
Search for unused actions for the count number from the start of the array, and register if there is a free space. In other words, the range is set and the action is set. As a usage, the same action such as a shot action can be set multiple times. It is easy to get a collision if you know what number is in the array.
void *SMTA_SetAction(void *execadd, Uint8 start)
Forces the action to be set at the start of the array. Set whether in use or not.
One way to use this is to set a single action, such as a player action.
void SMTA_ActionLoop(void)
Searches from the beginning to the end of the array in order and executes the active action. Pass the pointer to the action structure as an argument to the action.
[Macro]
SMTA_DefActWk( actname, member)
Declares a dedicated action structure. The usage of the free setting member will be specified. Refer to the program below for an example. This macro only declares a structure. It defines the usage of the information in the action structure.
SMTA_CheckAction(ACTWK *ptr)
A macro that has a value of true (1) when an action can be registered and false (0) when it fails. Refer to the examples for usage.
[example]
ACTWK * ptr;
Ptr = SMTA_MakeActionX (ShotAct, 0, 8);
If (SMTA_CheckAction (ptr))
/ * Registration Ok * /
Else
/ * Registration failure * /
SMTA_KillAction(ACTWK *ptr)