|
/* State Chart:
PowerDown -> Join1 -> Cond1 -> PowerUp ->
^ |
-------------------------------------
PowerUp (Playing <---> Pause)
Refer to Readme.txt for more information.
*/
#include "sme.h"
#include "Player_c.h"
#include "Player2_c.h"
#include "EventId.h"
#include <stdio.h>
#include "sme_cross_platform.h"
#include "sme_debug.h"
#include "SingleState.h"
/************* A new file **************/
/* Define Orthogonal Sub State */
SME_DEC_EXT_OBJ_VAR(SingleState1)
SME_DEC_EXT_OBJ_VAR(Player)
int OrthoStateEntry(SME_OBJ_T *pApp, SME_EVENT_T *pEvent);
int OrthoStateExit(SME_OBJ_T *pApp, SME_EVENT_T *pEvent);
SME_BEGIN_ORTHO_COMP_STATE_DEF(OrthoState, Player, OrthoStateEntry, OrthoStateExit)
SME_REGION_DEF(SingleStateReg1,SingleState,SME_RUN_MODE_PARENT_THREAD,0)
SME_REGION_DEF(SingleStateReg2,SingleState,SME_RUN_MODE_PARENT_THREAD,0)
//SME_REGION_DEF(PlayerReg1,Player,SME_RUN_MODE_SEPARATE_THREAD,0)
//SME_REGION_DEF(PlayerReg2,Player,SME_RUN_MODE_SEPARATE_THREAD,0)
SME_MULTI_REGION_DEF(PlayerReg,2,Player,SME_RUN_MODE_SEPARATE_THREAD,0)
SME_END_ORTHO_STATE_DEF
SME_END_COMP_STATE_DEF(OrthoState)
int OrthoStateEntry(SME_OBJ_T *pApp, SME_EVENT_T *pEvent)
{
printf("OrthoStateEntry\n");
return 0;
}
int OrthoStateExit(SME_OBJ_T *pApp, SME_EVENT_T *pEvent)
{
printf("OrthoStateExit\n");
return 0;
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.