Home

Resume

Blog

Teikitu


/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
/*  »Project«   Teikitu Gaming System (TgS) (∂)
    »File«      TgS Common - Event MGR.h
    »Author«    Andrew Aye (EMail: mailto:andrew.aye@gmail.com, Web: http://www.andrewaye.com)
    »Version«   4.51 / »GUID« A9981407-3EC9-42AF-8B6F-8BE6DD919615                                                                                                        */
/*   -------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/*  Copyright: © 2002-2017, Andrew Aye.  All Rights Reserved.
    This software is free for non-commercial use.  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
      following conditions are met:
        Redistribution of source code must retain this copyright notice, this list of conditions and the following disclaimers.
        Redistribution in binary form must reproduce this copyright notice, this list of conditions and the following disclaimers in the documentation and other materials
          provided with the distribution.
    The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.
    The intellectual property rights of the algorithms used reside with Andrew Aye.
    You may not use this software, in whole or in part, in support of any commercial product without the express written consent of the author.
    There is no warranty or other guarantee of fitness of this software for any purpose. It is provided solely "as is".                                                   */
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
#if !defined(TGS_COMMON_EVENT_MGR_H)
#define TGS_COMMON_EVENT_MGR_H
#pragma once


/* == Common ============================================================================================================================================================ */

/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */
/*  Public Types                                                                                                                                                          */
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */

typedef TgVOID( *TgFCN_EM_CALLBACK )(C_TgUINTPTR);


/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */
/*  Public Functions                                                                                                                                                      */
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */

TgEXTN TgRESULT                             tgEM_Init_MGR( TgVOID );
TgEXTN TgRESULT                             tgEM_Boot_MGR( TgVOID );
TgEXTN TgRESULT                             tgEM_Stop_MGR( TgVOID );
TgEXTN TgRESULT                             tgEM_Free_MGR( TgVOID );
TgEXTN TgRESULT                             tgEM_Update_MGR( C_TgFLOAT32 );
TgEXTN TgBOOL                               tgEM_Update_MGR_Is_Complete( TgVOID );

TgEXTN TgBOOL                               tgEM_Query_Init( TgVOID );
TgEXTN TgBOOL                               tgEM_Query_Boot( TgVOID );

TgEXTN TgSIZE                               tgEM_Query_Fixed_Memory( TgVOID );

TgEXTN TgVOID                               tgEM_Set_Pause( C_TgBOOL );
TgEXTN TgBOOL                               tgEM_Query_Pause( TgVOID );

#if TgS_STAT_COMMON
TgEXTN TgVOID                               tgEM_Stats( P_STg2_Output );
#endif

/* ---- Time Event - Frame ------------------------------------------------------------------------------------------------------------------------------------------------ */

TgEXTN TgEM_TE_FRM_ID                       tgEM_TE_FRM_NEW( TgFCN_EM_CALLBACK, C_TgUINTPTR, C_TgSINT32, C_TgSINT32 );
TgEXTN TgRESULT                             tgEM_TE_FRM_DEL( C_TgEM_TE_FRM_ID );

TgEXTN TgRESULT                             tgEM_TE_FRM_Set_Pause( C_TgEM_TE_FRM_ID, C_TgBOOL );
TgEXTN TgRESULT                             tgEM_TE_FRM_Set_Start_Frame( C_TgEM_TE_FRM_ID, C_TgSINT32 );
TgEXTN TgRESULT                             tgEM_TE_FRM_Set_End_Frame( C_TgEM_TE_FRM_ID, C_TgSINT32 );
TgEXTN TgRESULT                             tgEM_TE_FRM_Set_Frame_To_Live( C_TgEM_TE_FRM_ID, C_TgSINT32 );

TgEXTN TgBOOL                               tgEM_TE_FRM_Query_Valid( C_TgEM_TE_FRM_ID );
TgEXTN TgRESULT                             tgEM_TE_FRM_Query_Paused( PCU_TgBOOL, C_TgEM_TE_FRM_ID );
TgEXTN TgRESULT                             tgEM_TE_FRM_Query_Start_Frame( PCU_TgSINT32, C_TgEM_TE_FRM_ID );
TgEXTN TgRESULT                             tgEM_TE_FRM_Query_End_Frame( PCU_TgSINT32, C_TgEM_TE_FRM_ID );
TgEXTN TgRESULT                             tgEM_TE_FRM_Query_Frame_To_Live( PCU_TgSINT32, C_TgEM_TE_FRM_ID );

/* ---- Time Event - Time ------------------------------------------------------------------------------------------------------------------------------------------------- */

TgEXTN TgEM_TE_SEC_ID                       tgEM_TE_SEC_NEW( TgFCN_EM_CALLBACK, C_TgUINTPTR, C_TgFLOAT32, C_TgFLOAT32 );
TgEXTN TgRESULT                             tgEM_TE_SEC_DEL( C_TgEM_TE_SEC_ID );

TgEXTN TgRESULT                             tgEM_TE_SEC_Set_Pause( C_TgEM_TE_SEC_ID, C_TgBOOL );
TgEXTN TgRESULT                             tgEM_TE_SEC_Set_Start_Time( C_TgEM_TE_SEC_ID, C_TgFLOAT32 );
TgEXTN TgRESULT                             tgEM_TE_SEC_Set_End_Time( C_TgEM_TE_SEC_ID, C_TgFLOAT32 );
TgEXTN TgRESULT                             tgEM_TE_SEC_Set_Time_To_Live( C_TgEM_TE_SEC_ID, C_TgFLOAT32 );

TgEXTN TgBOOL                               tgEM_TE_SEC_Query_Valid( C_TgEM_TE_SEC_ID );
TgEXTN TgRESULT                             tgEM_TE_SEC_Query_Paused( PCU_TgBOOL, C_TgEM_TE_SEC_ID );
TgEXTN TgRESULT                             tgEM_TE_SEC_Query_Start_Time( PCU_TgFLOAT32, C_TgEM_TE_SEC_ID );
TgEXTN TgRESULT                             tgEM_TE_SEC_Query_End_Time( PCU_TgFLOAT32, C_TgEM_TE_SEC_ID );
TgEXTN TgRESULT                             tgEM_TE_SEC_Query_Time_To_Live( PCU_TgFLOAT32, C_TgEM_TE_SEC_ID );

/* ====================================================================================================================================================================== */
#endif