lgo_StateMessage()
Retrieve a human-readable string describing a state.
#include "laygomsg.h" LMessage lgo_StateMessage ( LState state );
state | state code to retrieve a description of |
lgo_StateMessage() retrieves a human-readable string describing a state code returned by lgo_State().
All calls to lgo_StateMessage() are successful. If the state code is not defined, the message "LayGO state code not defined" is returned.
printf("CID %d is in state '%s'\n", cid, lgo_StateMessage(lgo_State(cid)));