- engine_pro_src_baseline_070302.zip
- Engine_Pro_Src_Baseline_070302
- Engine_Pro_C_Src
- inc
- Makefile
- mssccprj.scc
- SME.dsw
- SME.plg
- SME.positions
- SME.sln
- sme
- sme_conf.h
- sme_conf.h.bak
- test
- player_explicit_entry_exit
- player_ortho_state
- player_pseudo_state
- vssver2.scc
- Engine_Pro_Cpp_Src
- inc
- Makefile
- mssccprj.scc
- SME.dsw
- SME.ncb
- SME.opt
- SME.plg
- SME.positions
- SME.sln
- SME.suo
- sme
- sme_conf.h
- test
- player_explicit_entry_exit
- player_pseudo_state
- vssver2.scc
- Update_070318.txt
|
#include "sme.h"
#if !SME_CPP
#include "Player_c.h"
#include "Player2_c.h"
#include "EventId.h"
#include <stdio.h>
#include "sme_cross_platform.h"
/*******************************************************************************
The followings could be defined in another file.
*/
/* Define composite state PowerUp */
#ifdef SME_CURR_DEFAULT_PARENT
#undef SME_CURR_DEFAULT_PARENT
#endif
#define SME_CURR_DEFAULT_PARENT PowerUp
SME_BEGIN_COMP_STATE_DEF(PowerUp, Player, PowerUpEntry, PowerUpExit)
SME_ON_INIT_STATE(SME_NULL_ACTION, Playing)
SME_ON_EXPLICIT_ENTRY(EXT_EVENT_ID_POWER, Pause)
/* The following makes "EXT_EVENT_ID_POWER" an explicit event going out of the State Playing instead of
a "transition from all children of the State PowerUp" */
SME_EXPLICIT_EXIT_FROM(EXT_EVENT_ID_POWER, Playing)
SME_END_STATE_DEF
SME_BEGIN_LEAF_STATE_DEF_P(Playing, PlayingEntry, PlayingExit)
SME_ON_EVENT(EXT_EVENT_ID_PAUSE_RESUME,OnPlayingEXT_EVENT_ID_PAUSE_RESUME,Pause)
SME_ON_INTERNAL_TRAN_WITH_GUARD(SME_EVENT_TIMER,GuardTimer2_func,OnTimer2Proc)
SME_END_STATE_DEF
SME_BEGIN_LEAF_STATE_DEF_P(Pause, PauseEntry, PauseExit)
SME_ON_EVENT(EXT_EVENT_ID_PAUSE_RESUME,OnPauseEXT_EVENT_ID_PAUSE_RESUME,Playing)
SME_END_STATE_DEF
#endif //SME_CPP
|
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 article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here