Add rayman2 source files
This commit is contained in:
28
Rayman_X/cpa/public/AI/AIBase/AI_Funct.h
Normal file
28
Rayman_X/cpa/public/AI/AIBase/AI_Funct.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* AIFunct.h : */
|
||||
/* author : Olivier Didelot.*/
|
||||
/* date : 24/01/1997*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef __AIFUNCT_H__
|
||||
#define __AIFUNCT_H__
|
||||
|
||||
/****************************************************************************/
|
||||
/* ACCESSORS */
|
||||
/****************************************************************************/
|
||||
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C"
|
||||
{
|
||||
#endif /* __cplusplus */
|
||||
|
||||
CPA_EXPORT char* AI_fn_pszGetActorName (HIE_tdxHandleToSuperObject hSupObj);
|
||||
CPA_EXPORT char* AI_fn_pszGetFamilyName (HIE_tdxHandleToSuperObject hSupObj, char* szBuffer);
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __AIFUNCT_H__*/
|
16
Rayman_X/cpa/public/AI/AIBase/AI_Handl.h
Normal file
16
Rayman_X/cpa/public/AI/AIBase/AI_Handl.h
Normal file
@@ -0,0 +1,16 @@
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* AIHandl.h : */
|
||||
/* author : Olivier Didelot.*/
|
||||
/* date : 24/01/1997*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#define _WP_D_DEFINE_WAYPOINTS_
|
||||
#include "WP_Handl.h"
|
||||
#undef _WP_D_DEFINE_WAYPOINTS_
|
||||
|
||||
#if !defined(__AIHANDL_H__)
|
||||
#define __AIHANDL_H__
|
||||
|
||||
/* Use this handle*/
|
||||
typedef struct AI_tdstMind_ * AI_tdxHandleToMind;
|
||||
|
||||
#endif /* __AIHANDL_H__*/
|
12
Rayman_X/cpa/public/AI/AIBase/AI_Macro.h
Normal file
12
Rayman_X/cpa/public/AI/AIBase/AI_Macro.h
Normal file
@@ -0,0 +1,12 @@
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* AIHandl.h : */
|
||||
/* author : Olivier Didelot.*/
|
||||
/* date : 24/01/1997*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef __AIMACRO_H__
|
||||
#define __AIMACRO_H__
|
||||
|
||||
/* For the friend modules only : change functions into macros*/
|
||||
|
||||
#endif /* __AIMACRO_H__*/
|
158
Rayman_X/cpa/public/AI/AIBase/AI_Proto.h
Normal file
158
Rayman_X/cpa/public/AI/AIBase/AI_Proto.h
Normal file
@@ -0,0 +1,158 @@
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* AIProto.h : */
|
||||
/* author : Olivier Didelot.*/
|
||||
/* date : 24/01/1997*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
/* in order to compile AI in C++ and link with GAM in C*/
|
||||
#if defined(__cplusplus)
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#define _WP_D_DEFINE_WAYPOINTS_
|
||||
#include "WP_Func.h"
|
||||
#undef _WP_D_DEFINE_WAYPOINTS_
|
||||
|
||||
/* Oliv' - Portage v14 - Fed up with those warnings*/
|
||||
#include "GAM\InitEnum.h"
|
||||
/* EndOfOliv'*/
|
||||
|
||||
#if !defined(__AIPROTO_H__)
|
||||
#define __AIPROTO_H__
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
extern void fn_vForceEditor();
|
||||
#endif
|
||||
|
||||
#if !defined(U64)
|
||||
#include "PTC.h"
|
||||
#endif
|
||||
/****************************************************************************/
|
||||
/* BASIC FUNCTIONS */
|
||||
/****************************************************************************/
|
||||
|
||||
|
||||
void fn_vTestUnusedComport();
|
||||
|
||||
void fn_vReinitComportMind(AI_tdxHandleToMind p_stMind);
|
||||
unsigned long AI_ulSizeOfMind();
|
||||
struct AI_tdstMind_ *fn_pstAllocMind(void);
|
||||
void fn_vFirstInitAIMemory(void);
|
||||
void fn_vInitAIFixMemory(unsigned long ulSize);
|
||||
void fn_vInitAILevelMemory(unsigned long ulSize);
|
||||
void fn_vFreeAIFixMemory(void);
|
||||
void fn_vFreeAILevelMemory(void);
|
||||
void fn_vDeleteAIFixMemory(void);
|
||||
void fn_vDeleteAILevelMemory(void);
|
||||
void fn_vInitAI(ACP_tdxBool);
|
||||
void AI_fn_vAIUseFixMemory(void);
|
||||
void AI_fn_vAIUseLevelMemory(void);
|
||||
void *AI_fn_p_vTrueAlloc(unsigned long ulSize);
|
||||
void *AI_fn_p_vTrueRealloc(void *p_vOldPointer,unsigned long ulSize);
|
||||
void AI_fn_vTrueFree(void *p_vPointer);
|
||||
|
||||
void AI_fn_vMemoryLogFile(void *p_vPointer,unsigned char ucAction,char *szFile,unsigned long ulLine);
|
||||
void fn_vReinitAI(AI_tdxHandleToMind p_stMind);
|
||||
void fn_vReinitAIWithFlags(AI_tdxHandleToMind p_stMind,enum tdeObjectTreeInit_ eObjIniType);
|
||||
void AI_PrintUsedStaticMemory(void);
|
||||
ACP_tdxBool fn_bDoIntelligencePerso(HIE_tdxHandleToSuperObject p_SuperObjPerso);
|
||||
ACP_tdxBool fn_bDoReflexPerso(HIE_tdxHandleToSuperObject p_SuperObjPerso);
|
||||
/* ANNECY MT - 11/09/98 {*/
|
||||
void fn_vSecondPassOfMindLoading(AI_tdxHandleToMind p_stMind,ACP_tdxBool _bPersoInFix,enum tdeObjectTreeInit_ _eObjectInit);
|
||||
/* END ANNECY MT }*/
|
||||
void fn_vReadAI(struct AI_tdstMind_ *p_stMind,char *szIntellFileName,struct tdstEngineObject_ *p_stEngineObject);
|
||||
void fn_vRegisterAllRulesScriptSections(void);
|
||||
void fn_vPrintAIDebug(char *text);
|
||||
|
||||
void WP_fnv_WayPoint_LinkTableSecondPass(void);
|
||||
|
||||
/* for AI binary*/
|
||||
/*#include "AIBinary.h"*/
|
||||
|
||||
/* for IPT command interpreter*/
|
||||
void fn_vDisplayDsgVar(struct tdstEngineObject_ *p_st_Object);
|
||||
void fn_vDisplayComport(struct tdstEngineObject_ *p_st_Object);
|
||||
|
||||
/* Always*/
|
||||
void fn_vSimulateMindAllocationFromAnotherMind(AI_tdxHandleToMind p_stMindSrc,AI_tdxHandleToMind p_stMindDst);
|
||||
unsigned long fn_ulGetSizeOfMindWithoutAIModel(AI_tdxHandleToMind p_stMind);
|
||||
unsigned long fn_ulGetSizeOfMindWithAIModel(AI_tdxHandleToMind p_stMind);
|
||||
|
||||
void AI_fn_vInsertDsgVarInSAI(AI_tdxHandleToMind p_stMind);
|
||||
|
||||
/* ANNECY OA - 04/08/99 { */
|
||||
/* ANNECY MT - 30/03/99 { PC Protection code */
|
||||
#if !defined(PRESS_DEMO)
|
||||
#ifndef U64
|
||||
void fn_vInitDesignerVariablesWithProtectKeyInModel(AI_tdxHandleToMind p_stMind);
|
||||
void fn_vInitDesignerVariablesWithComputedDatas(AI_tdxHandleToMind p_stMind);
|
||||
#ifdef PTC_SYSTEM_ACTIVED
|
||||
void fn_vInitDesignerVariablesWithChecksumInModel(struct tdstEngineObject_ *p_stObject, AI_tdxHandleToMind p_stMind);
|
||||
void fn_vInitDesignerVariablesWithCode(struct tdstEngineObject_ *p_stObject, AI_tdxHandleToMind p_stMind);
|
||||
#endif
|
||||
#endif
|
||||
#endif /* PRESS_DEMO */
|
||||
/* END ANNECY MT } */
|
||||
/* END ANNECY OA } */
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
/**************************************/
|
||||
#if !defined(CPA_EXPORT)
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
|
||||
#endif /*CPA_EXPORT*/
|
||||
/**************************************/
|
||||
#undef extern
|
||||
#define EXTERN_AI_DLL extern
|
||||
/*******************************************************************************/
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vReinitAIComport(AI_tdxHandleToMind p_stMind);
|
||||
|
||||
/* ANNECY MT - 11/09/98 {*/
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vSecondPassOfDsgMem(AI_tdxHandleToMind p_stMind,ACP_tdxBool _bPersoInFix, enum tdeObjectTreeInit_ _eObjectInit);
|
||||
/* END ANNECY MT }*/
|
||||
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vRESET_STOP_AI_ENGINE_FLAG();
|
||||
|
||||
/*ANNECY CHRISTOPHE MODIFICATIONS CF XAVIER*/
|
||||
EXTERN_AI_DLL CPA_EXPORT SCR_tdst_Link_Table *AI_fn_p_stGetDsgVarLinkTable(void);
|
||||
/*ANNECY END CHRISTOPHE MODIFICATIONS CF XAVIER*/
|
||||
|
||||
typedef struct tdstTreeInterpret_ tdstTreeInterpret ;
|
||||
typedef struct AI_tdstAIModel_ AI_tdstAIModel ;
|
||||
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vLoadCRR(AI_tdxHandleToMind, char *) ;
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vSecondPassOfTree(AI_tdxHandleToMind p_stMind,tdstTreeInterpret *p_stTree) ;
|
||||
EXTERN_AI_DLL CPA_EXPORT SCR_tdst_Link_Value * fn_vGetLinkTableForCRR ( AI_tdstAIModel *p_stAIModel ) ;
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vSetLinkTableForCRR ( SCR_tdst_Link_Value *p_stValue, unsigned long ulValue ) ;
|
||||
|
||||
/*******************************************************************************/
|
||||
#undef EXTERN_AI_DLL
|
||||
/*******************************************************************************/
|
||||
#endif
|
||||
|
||||
#define AI_C_ActionMalloc 0
|
||||
#define AI_C_ActionRealloc 1
|
||||
#define AI_C_ActionFree 2
|
||||
|
||||
#undef EXTERN
|
||||
#undef extern
|
||||
#if !defined(__DeclareGlobalVariableAIProto_h__)
|
||||
#define EXTERN extern
|
||||
#else
|
||||
#define EXTERN
|
||||
#endif /*__DeclareGlobalVariableAIProto_h__*/
|
||||
|
||||
EXTERN unsigned char AI_g_ucMemoryBlockUsed;
|
||||
|
||||
#endif /* __AIPROTO_H__*/
|
||||
|
||||
/* in order to compile AI in C++ and link with GAM in C*/
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
186
Rayman_X/cpa/public/AI/AIBase/AI_Struc.h
Normal file
186
Rayman_X/cpa/public/AI/AIBase/AI_Struc.h
Normal file
@@ -0,0 +1,186 @@
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* AIStruc.h : */
|
||||
/* author : 24/01/97 (Olivier Didelot) . */
|
||||
/* modify : 05/03/97 (Olivier Couvreur) Model can be gathered between several persos.*/
|
||||
/* modify : 11/03/97 (Olivier Couvreur) .dec can be gathered between several persos.*/
|
||||
/* modify : 15/05/97 (Olivier Couvreur) Safe second pass for DsgVar + ReinitAI*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(__AISTRUCT_H__)
|
||||
#define __AISTRUCT_H__
|
||||
|
||||
#include "specif/AIOption.h"
|
||||
|
||||
/*****************************************************************************
|
||||
* AI_tstAIModel Structure
|
||||
*****************************************************************************/
|
||||
typedef struct AI_tdstAIModel_
|
||||
{
|
||||
struct tdstScriptAI_ *p_stScriptAIIntell;
|
||||
struct tdstScriptAI_ *p_stScriptAIReflex;
|
||||
struct tdstDsgVar_ *p_stDsgVar;
|
||||
#ifndef U64
|
||||
struct tdstListOfMacro_ *p_stListOfMacro;
|
||||
#endif /* U64 */
|
||||
unsigned char ucSecondPassDone;
|
||||
|
||||
//XB 05/08/99
|
||||
#ifndef D_THROW_CFAST_AI
|
||||
//End XB
|
||||
/* AI Convert To C*/
|
||||
struct tdstNodeInterpret_ *CFast_dst_RefTreeArray; /* Array of all references */
|
||||
unsigned short uwNbNode; /* Number of nodes in that array */
|
||||
struct tdstNodeInterpret_ *CFast_dst_ParamArray; /* Array of AI functions params */
|
||||
unsigned short uwNbParamNode ; /* Number of nodes in the param array */
|
||||
int CFast_lFunction; /* Index of function when C run is true */
|
||||
ACP_tdxBool CFast_bIsC; /* C run instead of IA interpret */
|
||||
//XB 05/08/99
|
||||
#endif /* D_THROW_CFAST_AI */
|
||||
//End XB
|
||||
} AI_tdstAIModel;
|
||||
|
||||
/* p_stScriptAIIntell field.*/
|
||||
#define AI_M_p_stGetIntelligenceScriptAIModel(p_stModel) ((p_stModel)->p_stScriptAIIntell)
|
||||
#define AI_M_SetIntelligenceScriptAIModel(p_stModel, p_stScriptAI) (AI_M_p_stGetIntelligenceScriptAIModel(p_stModel) = p_stScriptAI)
|
||||
|
||||
/* p_stScriptAIReflex field.*/
|
||||
#define AI_M_p_stGetReflexScriptAIModel(p_stModel) ((p_stModel)->p_stScriptAIReflex)
|
||||
#define AI_M_SetReflexScriptAIModel(p_stModel, p_stScriptAI) (AI_M_p_stGetReflexScriptAIModel(p_stModel) = p_stScriptAI)
|
||||
|
||||
/* p_stDsgVar Done field. */
|
||||
#define AI_M_p_stGetDsgVarAIModel(p_stModel) ((p_stModel)->p_stDsgVar)
|
||||
#define AI_M_SetDsgVarAIModel(p_stModel,p_stDsgVar) (AI_M_p_stGetDsgVarAIModel(p_stModel) = p_stDsgVar)
|
||||
|
||||
#ifndef U64
|
||||
/* p_stListOfMacro field. */
|
||||
#define AI_M_p_stGetListOfMacroAIModel(p_stModel) ((p_stModel)->p_stListOfMacro)
|
||||
#define AI_M_SetListOfMacroAIModel(p_stModel, p_ListOfMacro) (AI_M_p_stGetListOfMacroAIModel(p_stModel) = p_ListOfMacro)
|
||||
#endif /* U64 */
|
||||
|
||||
/* ucSecondPass Done field.*/
|
||||
#define AI_M_ucGetSecondPassDone(p_stModel) ((p_stModel)->ucSecondPassDone)
|
||||
#define AI_M_SetSecondPassDone(p_stModel, ucDone) (AI_M_ucGetSecondPassDone(p_stModel) = ucDone)
|
||||
|
||||
/*jawaka*/
|
||||
#define M_CFast_GetReferenceNodeN(hSuperObjectPerso, indice) ((AI_M_p_stGetAIModel(AI_M_stGetMindOfSuperObj(hSuperObjectPerso)))->CFast_dst_RefTreeArray[indice])
|
||||
|
||||
/*****************************************************************************
|
||||
* AI_tdstMind Structure
|
||||
*****************************************************************************/
|
||||
typedef struct AI_tdstMind_
|
||||
{
|
||||
struct AI_tdstAIModel_ *p_stAIModel;
|
||||
struct tdstIntelligence_ *p_stIntelligence;
|
||||
|
||||
#if !defined(PRESS_DEMO) /* swap members to make the engine unusable with the binarized data of another engine */
|
||||
struct tdstIntelligence_ *p_stReflex;
|
||||
struct tdstDsgMem_ *p_stDsgMem;
|
||||
#else
|
||||
struct tdstDsgMem_ *p_stDsgMem;
|
||||
struct tdstIntelligence_ *p_stReflex;
|
||||
#endif /* PRESS_DEMO */
|
||||
|
||||
#if defined(__DEBUG_AI__)
|
||||
char *szPersoName;
|
||||
#endif
|
||||
ACP_tdxBool bDoingIntel; /* 1 intelligence 0 reflex*/
|
||||
|
||||
|
||||
#if defined(ACTIVE_AIDEBUG) /* ai debuger*/
|
||||
struct AIDebug_tdstTrace_ *p_stTrace;
|
||||
unsigned char ucErrorFlag;
|
||||
#endif
|
||||
|
||||
//XB 05/08/99
|
||||
#ifndef D_THROW_CFAST_AI
|
||||
//End XB
|
||||
/* AI Convert To C*/
|
||||
long CFast_lCmpMetaAction ;
|
||||
long CFast_lRfxMetaAction ;
|
||||
long CFast_lCmpMetaActionForMacro ;
|
||||
long CFast_lRfxMetaActionForMacro ;
|
||||
//XB 05/08/99
|
||||
#endif /* D_THROW_CFAST_AI */
|
||||
//End XB
|
||||
} AI_tdstMind;
|
||||
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
#define AI_M_ucErrorFlag(p_stMind) ((p_stMind)->ucErrorFlag)
|
||||
#endif
|
||||
|
||||
/* szModelName field.*/
|
||||
#if defined(__DEBUG_AI__)
|
||||
#define AI_M_szGetPersoName(p_stMind) ((p_stMind)->szPersoName)
|
||||
#define AI_M_SetPersoName(p_stMind, szName) ( AI_M_szGetPersoName(p_stMind) =(szName))
|
||||
#else
|
||||
#define AI_M_szGetPersoName(p_stMind) ""
|
||||
#define AI_M_SetPersoName(p_stMind, szName)
|
||||
#endif
|
||||
|
||||
#define AI_M_szGetSuperObjectName(p_stSupObj) (fn_szFindPersonalTypeNameOfPersonalType(M_ObjectGetPersonalType(M_GetEngineObject(p_stSupObj))))
|
||||
|
||||
/* bDoingIntel field.*/
|
||||
#define AI_M_bGetDoingIntel(p_stMind) ((p_stMind)->bDoingIntel)
|
||||
#define AI_M_SetDoingIntel(p_stMind, DoingIntel) ((p_stMind)->bDoingIntel = (DoingIntel))
|
||||
|
||||
/* p_stAIModel field.*/
|
||||
#define AI_M_p_stGetAIModel(p_stMind) ((p_stMind)->p_stAIModel)
|
||||
#define AI_M_SetAIModel(p_stMind, p_stModel) ((p_stMind)->p_stAIModel = (p_stModel))
|
||||
|
||||
/* p_stIntelligence.*/
|
||||
#define AI_M_p_stGetIntelligence(p_stMind) ((p_stMind)->p_stIntelligence)
|
||||
#define AI_M_SetIntelligence(p_stMind, p_stInt) (AI_M_p_stGetIntelligence(p_stMind) = (p_stInt))
|
||||
|
||||
/* p_stReflex.*/
|
||||
#define AI_M_p_stGetReflex(p_stMind) ((p_stMind)->p_stReflex)
|
||||
#define AI_M_SetReflex(p_stMind, p_stRefl) (AI_M_p_stGetReflex(p_stMind) = (p_stRefl))
|
||||
|
||||
/* p_stDsgMem field.*/
|
||||
#define AI_M_p_stGetDsgMem(p_stMind) ((p_stMind)->p_stDsgMem)
|
||||
#define AI_M_SetDsgMem(p_stMind, p_cDsgMem) (AI_M_p_stGetDsgMem(p_stMind) = (p_cDsgMem))
|
||||
|
||||
/* d_stTabDsgVar field.*/
|
||||
#define AI_M_p_stGetDsgVar(p_stMind) (AI_M_p_stGetAIModel(p_stMind)->p_stDsgVar)
|
||||
#define AI_M_SetDsgVar(p_stMind, p_stDsgVar) (AI_M_p_stGetDsgVar(p_stMind) = (p_stDsgVar))
|
||||
|
||||
/* p_stTrace.*/
|
||||
#ifdef ACTIVE_AIDEBUG /* For AI debugger*/
|
||||
#define AI_M_p_stGetTrace(p_stMind) ((p_stMind)->p_stTrace)
|
||||
#define AI_M_SetTrace(p_stMind, p_stTr) (AI_M_p_stGetTrace(p_stMind) = p_stTr)
|
||||
#endif /* ACTIVE_AIDEBUG For AI debugger*/
|
||||
|
||||
#define M_GetIntellOrReflex(p_stMind) (AI_M_bGetDoingIntel(p_stMind) ? AI_M_p_stGetIntelligence(p_stMind) : AI_M_p_stGetReflex(p_stMind))
|
||||
|
||||
#define M_GetOnlyIntelligencePointer(hSuperObjPerso) \
|
||||
(AI_M_p_stGetIntelligence(AI_M_stGetMindOfSuperObj(hSuperObjPerso)))
|
||||
|
||||
|
||||
|
||||
/* ANNECY OA - 30/07/99 { */
|
||||
#ifndef U64
|
||||
/* Handler pour les fonctions incluses dans les donnes */
|
||||
/* Pour les protections */
|
||||
typedef struct
|
||||
{
|
||||
UINT (WINAPI *SetErrorMode)(UINT uFlags);
|
||||
HANDLE (WINAPI *CreateFile)(LPCTSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDistribution, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile);
|
||||
BOOL (WINAPI *GetFileInformationByHandle)(HANDLE hFile, LPBY_HANDLE_FILE_INFORMATION lpFileInformation);
|
||||
BOOL (WINAPI *CloseHandle)(HANDLE hObject);
|
||||
UINT (WINAPI *GetDriveType)(LPCTSTR lpRootPathName);
|
||||
BOOL (WINAPI *GetVolumeInformation)(LPCTSTR lpRootPathName, LPTSTR lpVolumeNameBuffer, DWORD nVolumeNameSize, LPDWORD lpVolumeSerialNumber, LPDWORD lpMaximumComponentLength, LPDWORD lpFileSystemFlags, LPTSTR lpFileSystemNameBuffer, DWORD nFileSystemNameSize);
|
||||
BOOL (WINAPI *GetDiskFreeSpace)(LPCTSTR lpszFileName, LPDWORD lpSectorsPerCluster, LPDWORD lpBytesPerSector, LPDWORD lpFreeClusters, LPDWORD lpClusters);
|
||||
BOOL (WINAPI *SetFileAttributes)(LPCTSTR lpszFileName, DWORD dwFileAttributes);
|
||||
DWORD (WINAPI *GetFileAttributes)(LPCTSTR lpszFileName);
|
||||
BOOL (WINAPI *SetFileTime)(HANDLE hFile, CONST FILETIME* lpftCreation, CONST FILETIME* lpftLastAccess, CONST FILETIME* lpftLastWrite);
|
||||
BOOL (WINAPI *GetFileTime)(HANDLE hFile, LPFILETIME lpftCreation, LPFILETIME lpftLastAccess, LPFILETIME lpftLastWrite);
|
||||
DWORD (WINAPI *GetFileSize)(HANDLE hFile, LPDWORD lpFileSizeHigh);
|
||||
DWORD (*SearchExportedFunctionInEveryDLL)(char *_szCryptedName);
|
||||
DWORD (*SearchFunctionInImportedTableOfExe)(char *_szCryptedName);
|
||||
} tdstLoaderHandler;
|
||||
#endif /* U64 */
|
||||
/* END ANNECY OA } */
|
||||
|
||||
|
||||
#endif /* __AISTRUCT_H__*/
|
||||
|
19
Rayman_X/cpa/public/AI/AIBase/ActConst.h
Normal file
19
Rayman_X/cpa/public/AI/AIBase/ActConst.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#if !defined(__ACTCONST_H__)
|
||||
#define __ACTCONST_H__
|
||||
|
||||
#define C_ACTION_ENGINE_CONTINUE 0
|
||||
#define C_ACTION_ENGINE_STOP 1
|
||||
#define C_ACTION_ENGINE_STOP_RULE 2
|
||||
|
||||
#define C_ACTION_NOT_IMMEDIATE 0
|
||||
#define C_ACTION_NOT_FINISHED C_ACTION_NOT_IMMEDIATE
|
||||
/*#define C_ACTION_IMMEDIATE 4*/
|
||||
#define C_ACTION_FINISHED 4
|
||||
#define C_ACTION_CHANGE_COMPORT 8
|
||||
#define C_TREE_FINISHED 16
|
||||
#define C_ACTION_ENGINE_NOTDEFINED 32 /* to set the action type using the script (default case)*/
|
||||
|
||||
#define C_DefaultMetaActionNotFinished C_ACTION_NOT_FINISHED | C_ACTION_ENGINE_STOP
|
||||
#define C_DefaultMetaActionFinished C_ACTION_FINISHED | C_ACTION_ENGINE_CONTINUE
|
||||
|
||||
#endif
|
79
Rayman_X/cpa/public/AI/AIBase/Action.h
Normal file
79
Rayman_X/cpa/public/AI/AIBase/Action.h
Normal file
@@ -0,0 +1,79 @@
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Action.h : Definition of general Action.*/
|
||||
/* auteur : Olivier Didelot.*/
|
||||
/* date : 15/10/1996*/
|
||||
/* modifications majeures : Olivier Couvreur*/
|
||||
/* date : 28/10/1996*/
|
||||
/* encore modifications majeures : Olivier Couvreur*/
|
||||
/* date : 7/11/1996*/
|
||||
/* encore modifications majeures : Olivier Didelot*/
|
||||
/* date : 19/11/1996*/
|
||||
/* modifications : Olivier Couvreur*/
|
||||
/* date : 20/01/1997 support for script and editor names + parameter types*/
|
||||
/* modifications : Fabien MORALES*/
|
||||
/* date : 21/01/1997 Blocking actions management*/
|
||||
/* modifications : Fabien MORALES*/
|
||||
/* date : 23/01/1997 Kill Perso*/
|
||||
/* modifications : Albert Pais*/
|
||||
/* date : January 28,1997 : adding Way and WP relative actions*/
|
||||
/* modifications : Fabien MORALES*/
|
||||
/* date : 29/01/1997 GoToPosition, ReachTarget*/
|
||||
/* modify : Olivier Couvreur*/
|
||||
/* date : 10/02/1997 great enhancement for automatic init support*/
|
||||
/* modify : Albert Pais*/
|
||||
/* date :February 11,1997 adding meta-action for reinitialising the way*/
|
||||
/* modifications : Fabien MORALES*/
|
||||
/* date : 10/02/1997 Actions TranslateModule, RotateModule, */
|
||||
/* TranslateModuleToPerso, RotateModuleToPerso*/
|
||||
/* modify : Olivier Couvreur*/
|
||||
/* date : 18/02/1997 CPA_EXPORT + new functions for editor*/
|
||||
/* modify : Yann Le Guyader*/
|
||||
/* date : 24/02/1997 New functions for camera*/
|
||||
/* modify : Olivier Couvreur 25/03/1997 ACTIVE_EDITOR support*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(__ACTION_H__)
|
||||
#define __ACTION_H__
|
||||
|
||||
/****************************************/
|
||||
#if !defined(CPA_EXPORT)
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
|
||||
#endif /*CPA_EXPORT*/
|
||||
/***************************************/
|
||||
#undef extern
|
||||
#define EXTERN_AI_DLL extern
|
||||
/*******************************************************************************/
|
||||
|
||||
#include "specif/AIOption.h"
|
||||
#include "ActConst.h"
|
||||
|
||||
#define M_TestActionReturn(ActionReturn,Flag) ( ( (ActionReturn) & (Flag) ) == (Flag) )
|
||||
|
||||
/* ---------------*/
|
||||
/* general actions*/
|
||||
/* ---------------*/
|
||||
|
||||
#include "..\AIGame\TypePtr.h"
|
||||
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned char g_ucNewActionReturn; /* to set the action type using the script*/
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned char g_ucUseDefaultActionReturn; /* the g_ucNewActionReturn is not taking into account*/
|
||||
|
||||
|
||||
struct tdstNodeInterpret_ *fn_p_stDefaultActionInit(HIE_tdxHandleToSuperObject p_SuperObjPerso, struct tdstNodeInterpret_ *p_stTree);
|
||||
tducActionReturn fn_ucDefaultAction(HIE_tdxHandleToSuperObject p_SuperObjPerso);
|
||||
|
||||
#if !defined(OPTIMIZED_COMMAND)
|
||||
void fn_vInitMetaActionEntries(void);
|
||||
#endif
|
||||
|
||||
|
||||
/*******************************************************************************/
|
||||
#undef EXTERN_AI_DLL
|
||||
|
||||
#endif /* __ACTION_H__*/
|
78
Rayman_X/cpa/public/AI/AIBase/Array.h
Normal file
78
Rayman_X/cpa/public/AI/AIBase/Array.h
Normal file
@@ -0,0 +1,78 @@
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Array.h : Typed array for AI.*/
|
||||
/* author : Olivier Couvreur 28/11/1997*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(__ARRAY_H__)
|
||||
#define __ARRAY_H__
|
||||
|
||||
#define C_ucSizeOfMinimalArray 2
|
||||
#define C_ucSizeOfMaximalArray 255
|
||||
|
||||
#define C_TypeOfArray1 struct tdstArray1_
|
||||
#define C_SizeOfArray1 (sizeof (C_TypeOfArray1))
|
||||
|
||||
#define M_ARRAY_TYPE(array) ((array)->eType)
|
||||
#define M_ARRAY_SIZE(array) ((array)->ucMaxSize)
|
||||
|
||||
//FB120399
|
||||
// to optimize memory usage of array
|
||||
#ifndef ACTIVE_EDITOR
|
||||
#define OPTIMIZED_ARRAY
|
||||
#endif
|
||||
|
||||
// magic or not ?
|
||||
#if defined(OPTIMIZED_ARRAY)
|
||||
#define ARRAY_FACTOR 3
|
||||
#define C_TypeOfArrayElement tduGetSetParamForNode
|
||||
#define C_SizeOfArrayElement (sizeof(C_TypeOfArrayElement))
|
||||
#define M_ARRAY_ELEMENT(array,n) (&((array)->d_ArrayElement[(M_ARRAY_TYPE(array)==eDsgVarType_Vector)?ARRAY_FACTOR*n:n]))
|
||||
#define M_ARRAY_CLEAR(array) memset(&((array)->d_ArrayElement[0]),0, (M_ARRAY_TYPE(array)==eDsgVarType_Vector) ? ARRAY_FACTOR*M_ARRAY_SIZE(array)*C_SizeOfArrayElement : M_ARRAY_SIZE(array)*C_SizeOfArrayElement)
|
||||
|
||||
#else
|
||||
#define C_TypeOfArrayElement tduGetSetParam
|
||||
#define C_SizeOfArrayElement (sizeof(C_TypeOfArrayElement))
|
||||
#define M_ARRAY_ELEMENT(array,n) (&((array)->d_ArrayElement[n]))
|
||||
#define M_ARRAY_CLEAR(array) memset(M_ARRAY_ELEMENT(array,0),0, M_ARRAY_SIZE(array)*C_SizeOfArrayElement)
|
||||
#endif // OPTIMIZED_ARRAY
|
||||
|
||||
|
||||
/* BEGIN ROMTEAM Cristi Petrescu 98-11-*/
|
||||
#define M_ARRAY_COPY(pstDest,pstSource) \
|
||||
{ M_ARRAY_SIZE (pstDest) = M_ARRAY_SIZE (pstSource); \
|
||||
M_ARRAY_TYPE (pstDest) = M_ARRAY_TYPE (pstSource); \
|
||||
memcpy (M_ARRAY_ELEMENT (pstDest, 0), M_ARRAY_ELEMENT (pstSource, 0), M_ARRAY_SIZE (pstSource) * C_SizeOfArrayElement);}
|
||||
|
||||
#define M_ARRAY_COMPARE(pstArray1,pstArray2) \
|
||||
((M_ARRAY_SIZE (pstArray1) == M_ARRAY_SIZE (pstArray2)) && \
|
||||
(M_ARRAY_TYPE (pstArray1) != M_ARRAY_TYPE (pstArray2)) && \
|
||||
(memcmp (M_ARRAY_ELEMENT (pstArray1, 0), M_ARRAY_ELEMENT (pstArray2, 0), M_ARRAY_SIZE (pstArray1) * C_SizeOfArrayElement) == 0))
|
||||
/* END ROMTEAM Cristi Petrescu 98-11-*/
|
||||
|
||||
|
||||
typedef struct tdstArray1_
|
||||
{
|
||||
/*enum tdeVariableType_ eType;*/
|
||||
enum tdeDsgVarTypeId_ eType;
|
||||
/*unsigned char ucNbElement;*/
|
||||
unsigned char ucMaxSize;
|
||||
// OPTIMIZED_ARRAY
|
||||
C_TypeOfArrayElement d_ArrayElement[1];
|
||||
} tdstArray1;/* used to know the size of the an array with one element*/
|
||||
|
||||
typedef struct tdstArray_
|
||||
{
|
||||
/*enum tdeVariableType_ eType;*/
|
||||
enum tdeDsgVarTypeId_ eType;
|
||||
/*unsigned char ucNbElement; */
|
||||
unsigned char ucMaxSize;
|
||||
// OPTIMIZED_ARRAY
|
||||
C_TypeOfArrayElement d_ArrayElement[C_ucSizeOfMaximalArray];
|
||||
} tdstArray;/* use for every array pointer, easy to watch all element in debug mode*/
|
||||
|
||||
/*void fn_vPutInArray (struct tdstArray_ *p_stArray, unsigned char ucIndex, struct tdstGetSetParam_ *p_stParam);*/
|
||||
/*void fn_vGetFromArray(struct tdstArray_ *p_stArray, unsigned char ucIndex, struct tdstGetSetParam_ *p_stParam);*/
|
||||
|
||||
void fn_vInitArray(struct tdstArray_ *p_stArray,enum tdeDsgVarTypeId_ eDsgVarType,unsigned char ucNbElements,char *szParams[]);
|
||||
|
||||
#endif
|
308
Rayman_X/cpa/public/AI/AIBase/CFast.h
Normal file
308
Rayman_X/cpa/public/AI/AIBase/CFast.h
Normal file
@@ -0,0 +1,308 @@
|
||||
#if !defined(_CFAST_H_)
|
||||
#define _CFAST_H_
|
||||
|
||||
#include "..\AiBase\Specif\AiOption.h"
|
||||
|
||||
#include "GSParam.h"
|
||||
#include "StrIntel.h"
|
||||
#include "EnumType.h"
|
||||
#include "AI\AIGame\TypePtr.h"
|
||||
#include "AI\AIGame\ConvCst.h"
|
||||
|
||||
#define CFast_lMaxTreeDepth 20
|
||||
|
||||
#ifdef __cplusplus
|
||||
/*extern "C" {*/
|
||||
#endif
|
||||
|
||||
/**************************************/
|
||||
#if !defined(CPA_EXPORT)
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
|
||||
#endif /*CPA_EXPORT*/
|
||||
/**************************************/
|
||||
#undef extern
|
||||
#define EXTERN_AI_DLL extern
|
||||
|
||||
/*
|
||||
* Array for all C functions.
|
||||
*/
|
||||
typedef struct CFast_tdst_ArrayFunctions_
|
||||
{
|
||||
/* char *mpsz_Name;*/
|
||||
void (*mfnv_Function)(HIE_tdxHandleToSuperObject);
|
||||
#ifdef U64
|
||||
//long ml_SizeOfCode;
|
||||
long ml_SizeOfTree;
|
||||
struct tdstNodeInterpret_ *mp_stPseudoTree;
|
||||
#endif
|
||||
} CFast_tdst_ArrayFunctions;
|
||||
|
||||
typedef void (*CFast_EvalFunc)(void);
|
||||
|
||||
/*
|
||||
* functions
|
||||
*/
|
||||
#define C_MAX_SIZE_FUNCTION_EDITOR_NAME 50
|
||||
#define C_MAX_SIZE_FUNCTION_SCRIPT_NAME 41
|
||||
#define C_MAX_FUNCTION_NB_IN_PARAM 6
|
||||
#define C_MAX_FUNCTION_NB_OUT_PARAM 1
|
||||
typedef struct tdstFunctionEntry_
|
||||
{
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
/* Function string used in editor*/
|
||||
char szFunctionEditorName[C_MAX_SIZE_FUNCTION_EDITOR_NAME+1];
|
||||
char szFunctionEditorName_En[C_MAX_SIZE_FUNCTION_EDITOR_NAME+1];
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
#if defined (AI_USE_SCRIPT)
|
||||
/* Function string used in script*/
|
||||
char szFunctionScriptName[C_MAX_SIZE_FUNCTION_SCRIPT_NAME+1];
|
||||
#endif /* AI_USE_SCRIPT */
|
||||
#if defined(_AI_LIB_)
|
||||
/* pointer on Function function*/
|
||||
tdp_fn_p_stFunctionFunctionPtr p_fn_p_stFunctionFunction;
|
||||
#endif /* _AI_LIB_*/
|
||||
#if defined (AI_USE_SCRIPT) || defined (U64_AIDEBUG)
|
||||
/* list of Function parameters (taken from szAutorizedTypeParam) in parameter*/
|
||||
char szFunctionTypeInParam[C_MAX_FUNCTION_NB_IN_PARAM+1];
|
||||
/* out parameter*/
|
||||
char szFunctionTypeOutParam[C_MAX_FUNCTION_NB_OUT_PARAM+1];
|
||||
#endif /* AI_USE_SCRIPT */
|
||||
unsigned char bUltraFunctionFlag;
|
||||
|
||||
#ifdef PROFILE_IA
|
||||
unsigned long ulCallCtr;
|
||||
unsigned long ulTimeCtr;
|
||||
unsigned long ulOwnTimeCtr;
|
||||
#endif /* PROFILE_IA*/
|
||||
} tdstFunctionEntry;
|
||||
extern tdstFunctionEntry a_stFunctionTable[] ;
|
||||
|
||||
/*
|
||||
* Keyword
|
||||
*/
|
||||
#define C_MAX_SIZE_KEYWORD_EDITOR_NAME 17
|
||||
#define C_MAX_SIZE_KEYWORD_SCRIPT_NAME 14
|
||||
#define C_MAX_KEYWORD_NB_IN_PARAM 3
|
||||
#define C_MAX_KEYWORD_NB_OUT_PARAM 1
|
||||
|
||||
#if defined(ACTIVE_EDITOR) || defined(AI_USE_SCRIPT) || defined(_AI_LIB_)
|
||||
|
||||
typedef struct tdstKeyWordEntry_
|
||||
{
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
/* KeyWord string used in editor*/
|
||||
char szKeyWordEditorName[C_MAX_SIZE_KEYWORD_EDITOR_NAME+1];
|
||||
char szKeyWordEditorName_En[C_MAX_SIZE_KEYWORD_EDITOR_NAME+1];
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
#if defined (AI_USE_SCRIPT)
|
||||
/* KeyWord string used in script*/
|
||||
char szKeyWordScriptName[C_MAX_SIZE_KEYWORD_SCRIPT_NAME+1];
|
||||
#endif /* AI_USE_SCRIPT */
|
||||
#if defined(_AI_LIB_)
|
||||
/* pointer on KeyWord function*/
|
||||
tdp_fn_p_stKeyWordFunctionPtr p_fn_p_stKeyWordFunction;
|
||||
#endif /* _AI_LIB_*/
|
||||
#if defined (AI_USE_SCRIPT) || defined (U64_AIDEBUG)
|
||||
/* list of KeyWord parameters (taken from szAutorizedTypeParam) in parameter*/
|
||||
char szKeyWordTypeInParam[C_MAX_KEYWORD_NB_IN_PARAM+1];
|
||||
/* list of KeyWord parameters (taken from szAutorizedTypeParam) out parameter*/
|
||||
char szKeyWordTypeOutParam[C_MAX_KEYWORD_NB_OUT_PARAM+1];
|
||||
#endif /* AI_USE_SCRIPT */
|
||||
} tdstKeyWordEntry;
|
||||
|
||||
extern tdstKeyWordEntry a_stKeyWordTable[] ;
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* conditions
|
||||
*/
|
||||
#define C_MAX_SIZE_CONDITION_EDITOR_NAME 50
|
||||
#define C_MAX_SIZE_CONDITION_SCRIPT_NAME 40
|
||||
#define C_MAX_CONDITION_NB_PARAM 4
|
||||
|
||||
typedef struct tdstConditionEntry_
|
||||
{
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
/* Condition string used in editor*/
|
||||
char szConditionEditorName[C_MAX_SIZE_CONDITION_EDITOR_NAME+1];
|
||||
char szConditionEditorName_En[C_MAX_SIZE_CONDITION_EDITOR_NAME+1];
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
#if defined (AI_USE_SCRIPT)
|
||||
/* Condition string used in script*/
|
||||
char szConditionScriptName[C_MAX_SIZE_CONDITION_SCRIPT_NAME+1];
|
||||
#endif /* AI_USE_SCRIPT */
|
||||
#if defined(_AI_LIB_)
|
||||
/* pointer on Condition function*/
|
||||
tdp_fn_p_stConditionFunctionPtr p_fn_p_stConditionFunction;
|
||||
#endif /* _AI_LIB_*/
|
||||
#if defined (AI_USE_SCRIPT) || defined (U64_AIDEBUG)
|
||||
/* list of Condition parameters (taken from szAutorizedTypeParam) in parameter*/
|
||||
char szConditionTypeInParam[C_MAX_CONDITION_NB_PARAM+1];
|
||||
#endif /* AI_USE_SCRIPT */
|
||||
|
||||
unsigned char bUltraCondtionFlag;
|
||||
|
||||
#ifdef PROFILE_IA
|
||||
unsigned long ulCallCtr;
|
||||
unsigned long ulTimeCtr;
|
||||
unsigned long ulOwnTimeCtr;
|
||||
#endif /* PROFILE_IA*/
|
||||
} tdstConditionEntry;
|
||||
|
||||
extern tdstConditionEntry a_stConditionTable[] ;
|
||||
|
||||
/*
|
||||
* Meta-Action
|
||||
*/
|
||||
#define C_MAX_SIZE_META_ACTION_SCRIPT_NAME 37
|
||||
#define C_MAX_SIZE_META_ACTION_EDITOR_NAME 80
|
||||
#define C_MAX_NB_META_ACTION_PARAM C_MAX_NB_PARAM
|
||||
|
||||
typedef struct tdstMetaActionEntry_
|
||||
{
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
/* metaaction string used in editor*/
|
||||
char szMetaActionEditorName[C_MAX_SIZE_META_ACTION_EDITOR_NAME+1];
|
||||
char szMetaActionEditorName_En[C_MAX_SIZE_META_ACTION_EDITOR_NAME+1];
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
#if defined (AI_USE_SCRIPT)
|
||||
/* metaaction string used in script*/
|
||||
char szMetaActionScriptName[C_MAX_SIZE_META_ACTION_SCRIPT_NAME+1];
|
||||
#endif /* AI_USE_SCRIPT */
|
||||
#if defined(_AI_LIB_)
|
||||
/* pointer on metaaction INIT function*/
|
||||
tdp_fn_p_stMetaActionInitFunctionPtr p_fn_p_stMetaActionInitFunction;
|
||||
/* pointer on metaaction NEXT function*/
|
||||
tdp_fn_ucMetaActionFunctionPtr p_fn_ucMetaActionFunction;
|
||||
#endif /* _AI_LIB_*/
|
||||
|
||||
/* list of metaaction parameters (taken from szAutorizedTypeParam)*/
|
||||
char szMetaActionTypeParam[C_MAX_NB_META_ACTION_PARAM+1];
|
||||
} tdstMetaActionEntry;
|
||||
|
||||
extern tdstMetaActionEntry a_stMetaActionTable[] ;
|
||||
|
||||
/*
|
||||
* procedures
|
||||
*/
|
||||
#define C_MAX_SIZE_PROCEDURE_EDITOR_NAME 50
|
||||
#define C_MAX_SIZE_PROCEDURE_SCRIPT_NAME 40
|
||||
|
||||
#define C_MAX_PROCEDURE_NB_PARAM 8 /*ANNECY YLT Passage de 6 <20> 8 arguments (note: ceci ne prend pas plus de place en release binarise)*/
|
||||
|
||||
typedef struct tdstProcedureEntry_
|
||||
{
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
/* Procedure string used in editor*/
|
||||
char szProcedureEditorName[C_MAX_SIZE_PROCEDURE_EDITOR_NAME+1];
|
||||
char szProcedureEditorName_En[C_MAX_SIZE_PROCEDURE_EDITOR_NAME+1];
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
#if defined (AI_USE_SCRIPT)
|
||||
/* Procedure string used in script*/
|
||||
char szProcedureScriptName[C_MAX_SIZE_PROCEDURE_SCRIPT_NAME+1];
|
||||
#endif /* AI_USE_SCRIPT */
|
||||
#if defined(_AI_LIB_)
|
||||
/* pointer on Procedure function*/
|
||||
tdp_fn_p_stProcedureFunctionPtr p_fn_p_stProcedureFunction;
|
||||
#endif
|
||||
#if defined (AI_USE_SCRIPT) || defined (U64_AIDEBUG)
|
||||
/* list of Procedure parameters (taken from szAutorizedTypeParam) in parameter*/
|
||||
char szProcedureTypeParam[C_MAX_PROCEDURE_NB_PARAM+1];
|
||||
#endif /* AI_USE_SCRIPT */
|
||||
unsigned char bUltraProcedureFlag;
|
||||
|
||||
#ifdef PROFILE_IA
|
||||
unsigned long ulCallCtr;
|
||||
unsigned long ulTimeCtr;
|
||||
unsigned long ulOwnTimeCtr;
|
||||
#endif /* PROFILE_IA*/
|
||||
} tdstProcedureEntry;
|
||||
|
||||
extern tdstProcedureEntry a_stProcedureTable[] ;
|
||||
|
||||
/*
|
||||
* Operators
|
||||
*/
|
||||
#define C_MAX_SIZE_OPERATOR_EDITOR_NAME 4
|
||||
#define C_MAX_SIZE_OPERATOR_SCRIPT_NAME 26
|
||||
#define C_MAX_OPERATOR_NB_IN_PARAM 2
|
||||
#define C_MAX_OPERATOR_NB_OUT_PARAM 1
|
||||
|
||||
#if defined(ACTIVE_EDITOR) || defined(AI_USE_SCRIPT) || defined(_AI_LIB_)
|
||||
|
||||
typedef struct tdstOperatorEntry_
|
||||
{
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
/* Operator string used in editor*/
|
||||
char szOperatorEditorName[C_MAX_SIZE_OPERATOR_EDITOR_NAME+1];
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
#if defined (AI_USE_SCRIPT)
|
||||
/* Operator string used in script*/
|
||||
char szOperatorScriptName[C_MAX_SIZE_OPERATOR_SCRIPT_NAME+1];
|
||||
#endif /* AI_USE_SCRIPT */
|
||||
#if defined(_AI_LIB_)
|
||||
/* pointer on Operator function*/
|
||||
tdp_fn_p_stOperatorFunctionPtr p_fn_p_stOperatorFunction;
|
||||
#endif /* _AI_LIB_*/
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
/* list of Operator parameters (taken from szAutorizedTypeParam) in parameter*/
|
||||
char szOperatorTypeInParam[C_MAX_OPERATOR_NB_IN_PARAM+1];
|
||||
/* out parameter*/
|
||||
char szOperatorTypeOutParam[C_MAX_OPERATOR_NB_OUT_PARAM+1];
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
} tdstOperatorEntry;
|
||||
|
||||
extern tdstOperatorEntry a_stOperatorTable[] ;
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* type (vector, ... )
|
||||
*/
|
||||
typedef struct tdstTypeEntry_
|
||||
{
|
||||
tdp_fn_p_stEvalTypePtr p_fn_p_stEvalTypePtr;
|
||||
} tdstTypeEntry;
|
||||
|
||||
extern tdstTypeEntry a_stTypeTable[] ;
|
||||
|
||||
EXTERN_AI_DLL CPA_EXPORT tdp_fn_p_stConditionFunctionPtr CFast_g_p_fn_CondPtr ;
|
||||
EXTERN_AI_DLL CPA_EXPORT tdp_fn_p_stOperatorFunctionPtr CFast_g_p_fn_OpPtr ;
|
||||
EXTERN_AI_DLL CPA_EXPORT tdp_fn_p_stProcedureFunctionPtr CFast_g_p_fn_ProcPtr ;
|
||||
EXTERN_AI_DLL CPA_EXPORT tdp_fn_p_stFunctionFunctionPtr CFast_g_p_fn_FuncPtr ;
|
||||
EXTERN_AI_DLL CPA_EXPORT tdp_fn_p_stKeyWordFunctionPtr CFast_g_p_fn_KeyWordPtr ;
|
||||
EXTERN_AI_DLL CPA_EXPORT tdp_fn_p_stMetaActionInitFunctionPtr CFast_g_p_fn_MetaInitPtr ;
|
||||
EXTERN_AI_DLL CPA_EXPORT tdp_fn_ucMetaActionFunctionPtr CFast_g_p_fn_MetaPtr ;
|
||||
|
||||
EXTERN_AI_DLL CPA_EXPORT tdstGetSetParam CFast_g_a_stParam[CFast_lMaxTreeDepth] ;
|
||||
EXTERN_AI_DLL CPA_EXPORT tdstNodeInterpret CFast_g_a_stPseudoTree[7][CFast_lMaxTreeDepth] ;
|
||||
EXTERN_AI_DLL CPA_EXPORT long CFast_g_a_lLong[CFast_lMaxTreeDepth] ;
|
||||
EXTERN_AI_DLL CPA_EXPORT tdeTypeInterpret CFast_g_aEvt2Eti[] ;
|
||||
EXTERN_AI_DLL CPA_EXPORT ACP_tdxBool CFast_g_bProcessReflex ;
|
||||
EXTERN_AI_DLL CPA_EXPORT ACP_tdxBool CFast_g_bMetaActionInRfx ;
|
||||
/*extern tdstNodeInterpret *M_CFast_GetReferenceNodeN(HIE_tdxHandleToSuperObject hSuperObjectPerso, long indice) ;*/
|
||||
#ifdef __cplusplus
|
||||
/*}*/
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
EXTERN_AI_DLL char gcGlobAleat;
|
||||
EXTERN_AI_DLL CPA_EXPORT CFast_tdst_ArrayFunctions CFast_gast_ArrayFunctions[];
|
||||
tdstNodeInterpret *fn_p_stEvalVector(HIE_tdxHandleToSuperObject p_SuperObjPerso, tdstNodeInterpret *p_stTree, tdstGetSetParam *p_stValue) ;
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#endif /* _CFAST_H_ */
|
147
Rayman_X/cpa/public/AI/AIBase/DefNode.h
Normal file
147
Rayman_X/cpa/public/AI/AIBase/DefNode.h
Normal file
@@ -0,0 +1,147 @@
|
||||
/*-------------------------------------------------------------------------------------
|
||||
DefNode.h : Node & ReadRule
|
||||
Author : Olivier Couvreur 25/09/97
|
||||
--------------------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(M_DEFINE_NODE)
|
||||
#error You should define M_DEFINE_NODE accordingly before including this file !
|
||||
#endif
|
||||
|
||||
/* for script*/
|
||||
|
||||
/* in DEFINES.AI in Gamedata\World\_Common\Families*/
|
||||
#define C_DefineAIFiles "Defines.ai"
|
||||
#define C_CreateAIDefines_String "CreateAIDefines"
|
||||
#define C_ConstantRefString "ConstantRef"
|
||||
#define C_RealRefString "RealRef"
|
||||
|
||||
/* in .AI*/
|
||||
#define C_CreateAIModel_String "CreateAIModel"
|
||||
#define C_CreateIntellAIModel_String "CreateIntellAIModel"
|
||||
#define C_CreateReflexAIModel_String "CreateReflexAIModel"
|
||||
#define C_CreateVariableDeclarationAIModel_String "CreateVariableDeclarationAIModel"
|
||||
#define C_CreateMacroAIModel_String "CreateMacroAIModel"
|
||||
#define C_CreatePseudoTree_String "CreatePseudoTree"
|
||||
|
||||
/* in .NOD : CFAST*/
|
||||
#define C_MakeNodeString "MakeNode"
|
||||
|
||||
/* in .MAC*/
|
||||
#define C_CreateListOfMacro_String "CreateListOfMacro"
|
||||
#define C_CreateMacro_String "CreateMacro"
|
||||
|
||||
/* in .DEC */
|
||||
#define C_CreateVariables_String "CreateVariables"
|
||||
/* for SAI*/
|
||||
#define C_TypeSaveVariables_String "TypeSaveVariable"
|
||||
/* for OTI*/
|
||||
#define C_TypeInitVariables_String "TypeInitVariable"
|
||||
|
||||
/* in .CAR*/
|
||||
#define C_InitVariables_String "InitVariables"
|
||||
#define C_InitComportReflex_String "InitComportReflex"
|
||||
#define C_InitComportIntelligence_String "InitComportIntelligence"
|
||||
|
||||
/* in .RUL & .RFX*/
|
||||
|
||||
#define C_ScriptAIReferenceString "ScriptAIReference"
|
||||
|
||||
/* sections and subsections*/
|
||||
#define C_CreateIntelligence_String "CreateIntelligence"
|
||||
#define C_CreateComport_String "CreateComport"
|
||||
#define C_CreateRule_String "CreateRule"
|
||||
#define C_CreateSchedule_String "CreateSchedule"
|
||||
|
||||
/* entries (nodes)*/
|
||||
#define C_KeyWordString "KeyWord"
|
||||
#define C_ConditionString "Condition"
|
||||
#define C_MetaActionString "MetaAction"
|
||||
#define C_FieldString "Field"
|
||||
#define C_ConstantString "Constant"
|
||||
#define C_OperatorString "Operator"
|
||||
#define C_FunctionString "Function"
|
||||
#define C_ProcedureString "Procedure"
|
||||
#define C_DsgVarString "DsgVar"
|
||||
#define C_DsgVarRefString "DsgVarRef"
|
||||
#define C_RealString "Real"
|
||||
#define C_BeginMacroString "BeginMacro"
|
||||
#define C_EndMacroString "EndMacro"
|
||||
#define C_VectorString "Vector"
|
||||
#define C_ConstantVectorString "ConstantVector"
|
||||
#define C_PersoRefString "PersoRef"
|
||||
#define C_ActionRefString "ActionRef"
|
||||
#define C_WayPointString "WayPoint"
|
||||
#define C_ModuleString "Module"
|
||||
#define C_DsgVarIdString "DsgVarId"
|
||||
#define C_ComportRefString "ComportRef"
|
||||
#define C_ButtonString "Button"
|
||||
#define C_StringString "String"
|
||||
#define C_MaskString "Mask"
|
||||
#define C_LipSynchroRefString "LipSynchroRef"
|
||||
#define C_ObjectTableRefString "ObjectTableRef"
|
||||
#define C_SectorRefString "SectorRef"
|
||||
#define C_SuperObjectRefString "SuperObjectRef"
|
||||
#define C_FamilyRefString "FamilyRef"
|
||||
#define C_ModuleRefString "ModuleRef"
|
||||
#define C_SoundEventRefString "SoundEventRef"
|
||||
#define C_TextRefString "TextRef"
|
||||
#define C_FontRefString "FontRef"
|
||||
#define C_ParticleGeneratorString "ParticleGenerator"
|
||||
#define C_GameMaterialRefString "GameMaterialRef"
|
||||
#define C_ColorString "Color"
|
||||
#define C_ModelRefString "ModelRef"
|
||||
#define C_LightString "Light"
|
||||
#define C_CapsString "CapsRef"
|
||||
#define C_GraphString "GraphRef"
|
||||
#define C_MacroRefString "MacroRef"
|
||||
|
||||
/* 3 parameters : script string (readrule.h), node type (deftype.h), function pointer for initialization (readrule.c) */
|
||||
|
||||
M_DEFINE_NODE(C_KeyWordString ,E_ti_KeyWord ,fn_vInitNodeKeyWord)
|
||||
M_DEFINE_NODE(C_ConditionString ,E_ti_Condition ,fn_vInitNodeCondition)
|
||||
M_DEFINE_NODE(C_MetaActionString ,E_ti_MetaAction ,fn_vInitNodeMetaAction)
|
||||
M_DEFINE_NODE(C_FieldString ,E_ti_Field ,fn_vInitNodeField)
|
||||
M_DEFINE_NODE(C_ConstantString ,E_ti_Constant ,fn_vInitNodeConstant)
|
||||
M_DEFINE_NODE(C_ConstantRefString ,E_ti_Constant ,fn_vInitNodeConstantRef)
|
||||
M_DEFINE_NODE(C_OperatorString ,E_ti_Operator ,fn_vInitNodeOperator)
|
||||
M_DEFINE_NODE(C_FunctionString ,E_ti_Function ,fn_vInitNodeFunction)
|
||||
M_DEFINE_NODE(C_ProcedureString ,E_ti_Procedure ,fn_vInitNodeProcedure)
|
||||
M_DEFINE_NODE(C_DsgVarString ,E_ti_DsgVar ,fn_vInitNodeDsgVar)
|
||||
M_DEFINE_NODE(C_DsgVarRefString ,E_ti_DsgVarRef ,fn_vInitNodeDsgVarRef)
|
||||
M_DEFINE_NODE(C_RealString ,E_ti_Real ,fn_vInitNodeReal)
|
||||
M_DEFINE_NODE(C_RealRefString ,E_ti_Real ,fn_vInitNodeRealRef)
|
||||
M_DEFINE_NODE(C_BeginMacroString ,E_ti_BeginMacro ,fn_vInitNodeBeginMacro)
|
||||
M_DEFINE_NODE(C_EndMacroString ,E_ti_EndMacro ,fn_vInitNodeEndMacro)
|
||||
M_DEFINE_NODE(C_VectorString ,E_ti_Vector ,fn_vInitNodeVector)
|
||||
M_DEFINE_NODE(C_ConstantVectorString ,E_ti_ConstantVector,fn_vInitNodeConstantVector)
|
||||
M_DEFINE_NODE(C_PersoRefString ,E_ti_PersoRef ,fn_vInitNodePersoRef)
|
||||
M_DEFINE_NODE(C_ActionRefString ,E_ti_ActionRef ,fn_vInitNodeActionRef)
|
||||
M_DEFINE_NODE(C_WayPointString ,E_ti_WayPointRef ,fn_vInitNodeWayPoint)
|
||||
M_DEFINE_NODE(C_ModuleString ,E_ti_Module ,fn_vInitNodeModule)
|
||||
M_DEFINE_NODE(C_DsgVarIdString ,E_ti_DsgVarId ,fn_vInitNodeDsgVarId)
|
||||
M_DEFINE_NODE(C_ComportRefString ,E_ti_ComportRef ,fn_vInitNodeComportRef)
|
||||
M_DEFINE_NODE(C_ButtonString ,E_ti_Button ,fn_vInitNodeButton)
|
||||
M_DEFINE_NODE(C_StringString ,E_ti_String ,fn_vInitNodeString)
|
||||
M_DEFINE_NODE(C_MaskString ,E_ti_Mask ,fn_vInitNodeMask)
|
||||
#ifdef D_USE_LIPSYNC
|
||||
M_DEFINE_NODE(C_LipSynchroRefString ,E_ti_LipsSynchroRef,fn_vInitNodeLipSynchroRef)
|
||||
#endif /* D_USE_LIPSYNC*/
|
||||
/* should be deleted very soon*/
|
||||
M_DEFINE_NODE(C_SectorRefString ,E_ti_SuperObjectRef,fn_vInitNodeSuperObjectRef)
|
||||
M_DEFINE_NODE(C_SuperObjectRefString ,E_ti_SuperObjectRef,fn_vInitNodeSuperObjectRef)
|
||||
M_DEFINE_NODE(C_FamilyRefString ,E_ti_FamilyRef ,fn_vInitNodeFamilyRef)
|
||||
M_DEFINE_NODE(C_ModuleRefString ,E_ti_ModuleRef ,fn_vInitNodeModuleRef)
|
||||
M_DEFINE_NODE(C_SoundEventRefString ,E_ti_SoundEventRef ,fn_vInitNodeSoundEventRef)
|
||||
M_DEFINE_NODE(C_TextRefString ,E_ti_TextRef ,fn_vInitNodeTextRef)
|
||||
M_DEFINE_NODE(C_ObjectTableRefString ,E_ti_ObjectTableRef,fn_vInitNodeObjectTableRef)
|
||||
M_DEFINE_NODE(C_ParticleGeneratorString ,E_ti_ParticleGenerator,fn_vInitNodeParticleGenerator)
|
||||
M_DEFINE_NODE(C_GameMaterialRefString ,E_ti_GameMaterialRef, fn_vInitNodeGameMaterialRef)
|
||||
M_DEFINE_NODE(C_ColorString ,E_ti_Color , fn_vInitNodeColor)
|
||||
M_DEFINE_NODE(C_ModelRefString ,E_ti_ModelRef , fn_vInitNodeModelRef)
|
||||
M_DEFINE_NODE(C_LightString ,E_ti_Light ,fn_vInitNodeLight)
|
||||
M_DEFINE_NODE(C_CapsString ,E_ti_Caps ,fn_vInitNodeCaps)
|
||||
M_DEFINE_NODE(C_GraphString ,E_ti_Graph ,fn_vInitNodeGraph)
|
||||
M_DEFINE_NODE(C_MacroRefString ,E_ti_MacroRef ,fn_vInitNodeMacroRef)
|
||||
#if defined(M_DEFINE_NODE)
|
||||
#undef M_DEFINE_NODE
|
||||
#endif
|
58
Rayman_X/cpa/public/AI/AIBase/DefType.h
Normal file
58
Rayman_X/cpa/public/AI/AIBase/DefType.h
Normal file
@@ -0,0 +1,58 @@
|
||||
/*-------------------------------------------------------------------------------------
|
||||
DefType.h : Node Type definitions
|
||||
Author : Olivier Couvreur 25/08/97
|
||||
--------------------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(M_DEFINE_TYPE_INTERPRET)
|
||||
#error You should define M_DEFINE_TYPE_INTERPRET accordingly before including this file !
|
||||
#endif
|
||||
|
||||
/* 4 parameters : enum, pointer for interpretation, pointer for binary load, pointer for binary save */
|
||||
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_KeyWord ,fn_p_stEvalKeyWord ,fn_p_cLoadBinaryNodeKeyWord ,fn_p_cSaveBinaryNodeKeyWord)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_Condition ,fn_p_stEvalCondition ,fn_p_cLoadBinaryNodeCondition ,fn_p_cSaveBinaryNodeCondition)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_Operator ,fn_p_stEvalOperator ,fn_p_cLoadBinaryNodeOperator ,fn_p_cSaveBinaryNodeOperator)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_Function ,fn_p_stEvalFunction ,fn_p_cLoadBinaryNodeFunction ,fn_p_cSaveBinaryNodeFunction)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_Procedure ,fn_p_stEvalProcedure ,fn_p_cLoadBinaryNodeProcedure ,fn_p_cSaveBinaryNodeProcedure)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_MetaAction ,fn_p_stEvalMetaAction ,fn_p_cLoadBinaryNodeMetaAction ,fn_p_cSaveBinaryNodeMetaAction)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_BeginMacro ,fn_p_stEvalBeginMacro ,fn_p_cLoadBinaryNodeBeginMacro ,fn_p_cSaveBinaryNodeBeginMacro)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_EndMacro ,fn_p_stEvalEndMacro ,fn_p_cLoadBinaryNodeEndMacro ,fn_p_cSaveBinaryNodeEndMacro)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_EndTree ,fn_p_stEvalEndOfTree ,fn_p_cLoadBinaryNodeEndOfTree ,fn_p_cSaveBinaryNodeEndOfTree)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_Field ,fn_p_stEvalField ,fn_p_cLoadBinaryNodeField ,fn_p_cSaveBinaryNodeField)
|
||||
/* M_DEFINE_TYPE_INTERPRET(E_ti_DsgVar ,fn_p_stEvalDsgVar ,fn_p_cLoadBinaryNodeDsgVar ,fn_p_cSaveBinaryNodeDsgVar) */
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_DsgVar ,fn_p_stEvalDsgVarRef ,fn_p_cLoadBinaryNodeDsgVar ,fn_p_cSaveBinaryNodeDsgVar)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_DsgVarRef ,fn_p_stEvalDsgVarRef ,fn_p_cLoadBinaryNodeDsgVarRef ,fn_p_cSaveBinaryNodeDsgVarRef)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_Constant ,fn_p_stEvalConstant ,fn_p_cLoadBinaryNodeConstant ,fn_p_cSaveBinaryNodeConstant)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_Real ,fn_p_stEvalReal ,fn_p_cLoadBinaryNodeReal ,fn_p_cSaveBinaryNodeReal)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_Button ,fn_p_stEvalButton ,fn_p_cLoadBinaryNodeButton ,fn_p_cSaveBinaryNodeButton)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_ConstantVector ,fn_p_stEvalConstantVector ,fn_p_cLoadBinaryNodeConstantVector ,fn_p_cSaveBinaryNodeConstantVector)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_Vector ,fn_p_stEvalVector ,fn_p_cLoadBinaryNodeVector ,fn_p_cSaveBinaryNodeVector)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_Mask ,fn_p_stEvalMask ,fn_p_cLoadBinaryNodeMask ,fn_p_cSaveBinaryNodeMask)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_Module ,fn_p_stEvalModuleRef ,fn_p_cLoadBinaryNodeModuleRef ,fn_p_cSaveBinaryNodeModuleRef)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_DsgVarId ,fn_p_stEvalDsgVarId ,fn_p_cLoadBinaryNodeDsgVarId ,fn_p_cSaveBinaryNodeDsgVarId)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_String ,fn_p_stEvalString ,fn_p_cLoadBinaryNodeString ,fn_p_cSaveBinaryNodeString)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_LipsSynchroRef ,fn_p_stEvalLipsSynchroRef ,fn_p_cLoadBinaryNodeLipsSynchroRef,fn_p_cSaveBinaryNodeLipsSynchroRef)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_FamilyRef ,fn_p_stEvalFamilyRef ,fn_p_cLoadBinaryNodeFamilyRef ,fn_p_cSaveBinaryNodeFamilyRef)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_PersoRef ,fn_p_stEvalPersoRef ,fn_p_cLoadBinaryNodePersoRef ,fn_p_cSaveBinaryNodePersoRef)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_ActionRef ,fn_p_stEvalActionRef ,fn_p_cLoadBinaryNodeActionRef ,fn_p_cSaveBinaryNodeActionRef)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_SuperObjectRef ,fn_p_stEvalSuperObjectRef ,fn_p_cLoadBinaryNodeSuperObjectRef ,fn_p_cSaveBinaryNodeSuperObjectRef)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_WayPointRef ,fn_p_stEvalWayPointRef ,fn_p_cLoadBinaryNodeWayPoint ,fn_p_cSaveBinaryNodeWayPoint)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_TextRef ,fn_p_stEvalTextRef ,fn_p_cLoadBinaryNodeTextRef ,fn_p_cSaveBinaryNodeTextRef)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_ComportRef ,fn_p_stEvalComportRef ,fn_p_cLoadBinaryNodeComportRef ,fn_p_cSaveBinaryNodeComportRef)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_ModuleRef ,fn_p_stEvalModuleRef ,fn_p_cLoadBinaryNodeModuleRef ,fn_p_cSaveBinaryNodeModuleRef)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_SoundEventRef ,fn_p_stEvalSoundEventRef ,fn_p_cLoadBinaryNodeSoundEventRef,fn_p_cSaveBinaryNodeSoundEventRef)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_ObjectTableRef ,fn_p_stEvalObjectTableRef ,fn_p_cLoadBinaryNodeObjectTableRef ,fn_p_cSaveBinaryNodeObjectTableRef)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_GameMaterialRef,fn_p_stEvalGameMaterialRef ,fn_p_cLoadBinaryNodeGameMaterialRef, fn_p_cSaveBinaryNodeGameMaterialRef)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_ParticleGenerator,fn_p_stEvalParticleGenerator,fn_p_cLoadBinaryNodeParticleGenerator,fn_p_cSaveBinaryNodeParticleGenerator)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_Color ,fn_p_stEvalColor ,fn_p_cLoadBinaryNodeColor ,fn_p_cSaveBinaryNodeColor)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_ModelRef ,fn_p_stEvalModelRef ,fn_p_cLoadBinaryNodeModelRef ,fn_p_cSaveBinaryNodeModelRef)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_Light ,fn_p_stEvalLight ,fn_p_cLoadBinaryNodeLight ,fn_p_cSaveBinaryNodeLight)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_Caps ,fn_p_stEvalCaps ,fn_p_cLoadBinaryNodeCaps ,fn_p_cSaveBinaryNodeCaps )
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_Graph ,fn_p_stEvalGraph ,fn_p_cLoadBinaryNodeGraph ,fn_p_cSaveBinaryNodeGraph)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_MacroRef ,fn_p_stEvalMacro ,fn_p_cLoadBinaryNodeNULL ,fn_p_cSaveBinaryNodeNULL)
|
||||
M_DEFINE_TYPE_INTERPRET(E_ti_Unknown ,fn_p_stEvalNULL ,fn_p_cLoadBinaryNodeNULL ,fn_p_cSaveBinaryNodeNULL)
|
||||
|
||||
#if defined(M_DEFINE_TYPE_INTERPRET)
|
||||
#undef M_DEFINE_TYPE_INTERPRET
|
||||
#endif
|
||||
|
201
Rayman_X/cpa/public/AI/AIBase/DsgMem.h
Normal file
201
Rayman_X/cpa/public/AI/AIBase/DsgMem.h
Normal file
@@ -0,0 +1,201 @@
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* DsgMem.h : Definition of variables in the designer memory.*/
|
||||
/* auteur : Pierrick CREPY*/
|
||||
/* date : 10/1996*/
|
||||
/* modify : * 12/1996 O.C.*/
|
||||
/* modify : 09/01/1997 O.C.*/
|
||||
/* 970115 : Perso management (Fabien Morales)*/
|
||||
/* 970120 : AddList (Fabien Morales) */
|
||||
/* 970120 : 3DPoint are vector type (Fabien Morales) */
|
||||
/* 970212 : Vector designer variable type (Fabien Morales) */
|
||||
/* modify : Olivier Couvreur*/
|
||||
/* date : 18/02/1997 CPA_EXPORT + new functions for editor*/
|
||||
/* modify : Olivier Couvreur : new dsgvar structures*/
|
||||
/* modify : Olivier Couvreur 27/05/97 ZDD + ZDE*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef D_DsgMem
|
||||
#define D_DsgMem
|
||||
|
||||
/**************************************/
|
||||
#if !defined(CPA_EXPORT)
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
|
||||
#endif /*CPA_EXPORT*/
|
||||
/**************************************/
|
||||
#undef extern
|
||||
#define EXTERN_AI_DLL extern
|
||||
|
||||
/*******************************************************************************/
|
||||
|
||||
/* include*/
|
||||
/* **************/
|
||||
|
||||
/* defines*/
|
||||
/* **********/
|
||||
#define C_TypeOfComport struct tdstComport_ *
|
||||
#define C_SizeOfComport (sizeof(C_TypeOfComport))
|
||||
|
||||
#define C_TypeOfAction tdxHandleToState
|
||||
#define C_SizeOfAction (sizeof(C_TypeOfAction))
|
||||
|
||||
#define C_TypeOfText FON_tdxHandleOfText
|
||||
#define C_SizeOfText (sizeof(C_TypeOfText))
|
||||
|
||||
#define C_TypeOfBoolean char
|
||||
#define C_SizeOfBoolean (sizeof (C_TypeOfBoolean))
|
||||
|
||||
#define C_TypeOf_128To127 char
|
||||
#define C_SizeOf_128To127 (sizeof (C_TypeOf_128To127))
|
||||
|
||||
#define C_TypeOf0To255 unsigned char
|
||||
#define C_SizeOf0To255 (sizeof (C_TypeOf0To255))
|
||||
|
||||
#define C_TypeOf_32768To32767 short
|
||||
#define C_SizeOf_32768To32767 (sizeof (C_TypeOf_32768To32767))
|
||||
|
||||
#define C_TypeOf0To65535 unsigned short
|
||||
#define C_SizeOf0To65535 (sizeof (C_TypeOf0To65535))
|
||||
|
||||
#define C_TypeOfInteger long
|
||||
#define C_SizeOfInteger (sizeof (C_TypeOfInteger))
|
||||
|
||||
#define C_TypeOfPositiveInteger unsigned long
|
||||
#define C_SizeOfPositiveInteger (sizeof (C_TypeOfInteger))
|
||||
|
||||
#define C_TypeOfFloat MTH_tdxReal
|
||||
#define C_SizeOfFloat (sizeof (C_TypeOfFloat))
|
||||
|
||||
#define C_TypeOfWayPoint WP_tdhWayPoint
|
||||
#define C_SizeOfWayPoint (sizeof (C_TypeOfWayPoint))
|
||||
|
||||
#define C_TypeOfPerso HIE_tdxHandleToSuperObject
|
||||
#define C_SizeOfPerso (sizeof (C_TypeOfPerso))
|
||||
|
||||
/* ANNECY OA - 05/08/99 { */
|
||||
#ifndef U64
|
||||
#define C_TypeOfSuperObject HIE_tdxHandleToSuperObject
|
||||
#define C_SizeOfSuperObject (sizeof (C_TypeOfPerso))
|
||||
#endif
|
||||
/* END ANNECY OA } */
|
||||
|
||||
#define C_TypeOfPersoInList HIE_tdxHandleToSuperObject
|
||||
#define C_SizeOfPersoInList (sizeof (C_TypeOfPersoInList))
|
||||
|
||||
#define C_TypeOfList1 struct tdstList1_
|
||||
#define C_SizeOfList1 (sizeof (C_TypeOfList1))
|
||||
|
||||
#define C_TypeOfVector struct MTH3D_tdstVector_
|
||||
#define C_SizeOfVector (sizeof (C_TypeOfVector))
|
||||
|
||||
#define C_TypeOfGameMaterial GMT_tdxHandleToGameMaterial
|
||||
#define C_SizeOfGameMaterial (sizeof(C_TypeOfGameMaterial))
|
||||
|
||||
#define C_TypeOfCaps unsigned long
|
||||
#define C_SizeOfCaps (sizeof (C_TypeOfCaps))
|
||||
|
||||
#define C_TypeOfGraph WP_tdHandleOfGraph
|
||||
#define C_SizeOfGraph (sizeof (C_TypeOfGraph))
|
||||
|
||||
/* Types & structures*/
|
||||
/* *********************/
|
||||
#include "..\AiBase\Specif\AiOption.h"
|
||||
#include "GSParam.h"
|
||||
#include "..\AiGame\EnumVar.h"
|
||||
|
||||
typedef struct tdstDsgVarInfo_
|
||||
{
|
||||
unsigned long ulOffsetInDsgMem;
|
||||
tdeDsgVarTypeId eDsgVarTypeId;
|
||||
SAI_tdeFlags eSaveType; /* for SAI*/
|
||||
tdeObjectTreeInit eInitType; /* for OTI */
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
char szDsgVarName[256];
|
||||
#endif
|
||||
} tdstDsgVarInfo;
|
||||
|
||||
typedef struct tdstDsgVar_
|
||||
{
|
||||
char *p_cDsgMemDefaultInit; /* to store model init values*/
|
||||
tdstDsgVarInfo *p_stDsgVarInfo; /* info about each variable designer*/
|
||||
unsigned long ulSize; /* size of this zone*/
|
||||
unsigned char ucNbDsgVar; /* number of variable designer*/
|
||||
} tdstDsgVar;
|
||||
|
||||
typedef struct tdstDsgMem_
|
||||
{
|
||||
tdstDsgVar **p_p_stDsgVar;
|
||||
char *p_cDsgMemBufferInit; /* to store init values for each perso*/
|
||||
char *p_cDsgMemBuffer; /* to store current values for each perso*/
|
||||
} tdstDsgMem;
|
||||
|
||||
/* for DsgMemBuffer */
|
||||
#define M_GetDsgMem(p_stMind) (AI_M_p_stGetDsgMem(p_stMind))
|
||||
#define M_GetDsgMemBuffer(p_stMind) (AI_M_p_stGetDsgMem(p_stMind)->p_cDsgMemBuffer)
|
||||
|
||||
#define M_GetDsgVar(p_stMind) (*(AI_M_p_stGetDsgMem(p_stMind)->p_p_stDsgVar))
|
||||
#define M_GetDsgVarInfo(p_stMind,ucId) (&(M_GetDsgVar(p_stMind)->p_stDsgVarInfo[ucId]))
|
||||
#define M_GetDsgVarOffset(p_stMind,ucId) (M_GetDsgVarInfo(p_stMind,ucId)->ulOffsetInDsgMem)
|
||||
#define M_GetDsgVarAddr(p_stMind,ucId) (M_GetDsgMemBuffer(p_stMind)+M_GetDsgVarOffset(p_stMind,ucId))
|
||||
|
||||
#define M_GetDsgVarType(p_stMind,ucId) (M_GetDsgVarInfo(p_stMind,ucId)->eDsgVarTypeId)
|
||||
#define M_GetDsgVarSaveType(p_stMind,ucId) (M_GetDsgVarInfo(p_stMind,ucId)->eSaveType)
|
||||
#define M_GetDsgVarInitType(p_stMind,ucId) (M_GetDsgVarInfo(p_stMind,ucId)->eInitType)
|
||||
|
||||
#define M_GetDsgVarSize(p_stMind) (AI_M_p_stGetDsgVar(p_stMind)->ulSize)
|
||||
#define M_GetNbDsgVar(p_stMind) (AI_M_p_stGetDsgVar(p_stMind)->ucNbDsgVar)
|
||||
|
||||
#define M_GetDsgMemDefaultInit(p_stMind) (AI_M_p_stGetDsgVar(p_stMind)->p_cDsgMemDefaultInit)
|
||||
#define M_GetDsgMemBufferInit(p_stMind) (AI_M_p_stGetDsgMem(p_stMind)->p_cDsgMemBufferInit)
|
||||
|
||||
#define M_GetDsgVarAddrInit(p_stMind,ucId) (M_GetDsgMemBufferInit(p_stMind)+M_GetDsgVarOffset(p_stMind,ucId))
|
||||
#define M_GetDsgVarAddrDefault(p_stMind,ucId) (M_GetDsgMemDefaultInit(p_stMind)+M_GetDsgVarOffset(p_stMind,ucId))
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
#define M_GetDsgVarName(p_stMind,ucId) (M_GetDsgVarInfo(p_stMind,ucId)->szDsgVarName)
|
||||
#define M_SetDsgVarName(p_stMind,ucId,szName) strcpy((M_GetDsgVarInfo(p_stMind,ucId)->szDsgVarName),szName);
|
||||
#else
|
||||
#define M_GetDsgVarName(p_stMind,ucId) ""
|
||||
#define M_SetDsgVarName(p_stMind,ucId,szName)
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
|
||||
/* Function prototypes*/
|
||||
/* *********************/
|
||||
|
||||
#if defined(AI_USE_SCRIPT)
|
||||
/* to inittialize current DsgVar values (in perso)*/
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vInitDsgVar(struct AI_tdstMind_ *p_stMind,unsigned char ucDsgVarId, enum tdeDsgVarTypeId_ eDsgVarTypeId, char * szParams[]);
|
||||
/* to inittialize init DsgVar values (in perso)*/
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vInitDsgVarInit(struct AI_tdstMind_ *p_stMind,unsigned char ucDsgVarId,enum tdeDsgVarTypeId_ eDsgVarTypeId, char * szParams[]);
|
||||
/* to inittialize init DsgVar values of an array (in perso)*/
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vInitDsgVarArrayInit(struct AI_tdstMind_ *p_stMind,unsigned char ucDsgVarId,unsigned char ucIndex,enum tdeDsgVarTypeId_ eDsgVarTypeId, char * szParams[]);
|
||||
/* to initialize init DsgVar values (in model)*/
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vInitDsgVarDefault(struct AI_tdstMind_ *p_stMind,unsigned char ucDsgVarId,enum tdeDsgVarTypeId_ eDsgVarTypeId, char * szParams[]);
|
||||
#endif
|
||||
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned long fn_ulSizeOfDsgVar(enum tdeDsgVarTypeId_ eDsgVarTypeId, unsigned char ucNbElt);
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned char fn_ucGetDsgVarValue(void *pMyVarAddr,unsigned char ucIndex,tdeDsgVarTypeId eDsgVarTypeId,tdstGetSetParam *p_stGetSetParam);
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned char fn_ucSetDsgVarValue(void *pMyVarAddr,unsigned char ucIndex,tdeDsgVarTypeId eDsgVarTypeId,tdstGetSetParam *p_stGetSetParam);
|
||||
#endif
|
||||
|
||||
unsigned char fn_ucGetDsgVar(unsigned char ucId,unsigned char ucIndex,struct AI_tdstMind_ *p_stPerso,struct tdstGetSetParam_ *p_stGetSetParam);
|
||||
#if defined(__DEBUG_AI__)
|
||||
unsigned char fn_ucGetDsgVarInit(unsigned char ucId,unsigned char ucIndex,struct AI_tdstMind_ *p_stPerso,struct tdstGetSetParam_ *p_stGetSetParam);
|
||||
#endif
|
||||
unsigned char fn_ucSetDsgVar(unsigned char ucId,unsigned char ucIndex,struct AI_tdstMind_ *p_stPerso,struct tdstGetSetParam_ *p_stGetSetParam);
|
||||
|
||||
#include "List.h"
|
||||
#include "Array.h"
|
||||
|
||||
/*******************************************************************************/
|
||||
#undef EXTERN_AI_DLL
|
||||
|
||||
|
||||
#endif /*D_DsgMem*/
|
17
Rayman_X/cpa/public/AI/AIBase/EnumType.h
Normal file
17
Rayman_X/cpa/public/AI/AIBase/EnumType.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#if !defined(__ENUM_TYPE_H__)
|
||||
#define __ENUM_TYPE_H__
|
||||
|
||||
#define M_DEFINE_TYPE_INTERPRET(a,b,c,d) a,
|
||||
|
||||
typedef enum tdeTypeInterpret_
|
||||
{
|
||||
#include "DefType.h"
|
||||
|
||||
/*************** MUST BE AT END ***************/
|
||||
E_ti_NbTypes
|
||||
/*************** MUST BE AT END ***************/
|
||||
} tdeTypeInterpret;
|
||||
|
||||
#undef M_DEFINE_TYPE_INTERPRET
|
||||
|
||||
#endif /* __ENUM_TYPE_H__*/
|
459
Rayman_X/cpa/public/AI/AIBase/GSParam.h
Normal file
459
Rayman_X/cpa/public/AI/AIBase/GSParam.h
Normal file
@@ -0,0 +1,459 @@
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* GetSetParam.h : Exchange structure between node, field and designers variables*/
|
||||
/* auteur : Olivier Couvreur*/
|
||||
/* date : 18/12/1996*/
|
||||
/* modify : 31/12/1996 */
|
||||
/* modify : 09/01/1997*/
|
||||
/* 970115 : Vector management (Fabien Morales)*/
|
||||
/* 970120 : 3DPoint are vector type (Fabien Morales) */
|
||||
/* 970212 : Module & DsgVarId node types, Vector Dsg var type : macros (Fabien Morales)*/
|
||||
/* March 21,1997 : Modification concerneing ways and waypoints management.*/
|
||||
/* 970526 : (Olivier Couvreur) ZDD + ZDE stuff*/
|
||||
/*------------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(__GETSET_PARAM_H__)
|
||||
#define __GETSET_PARAM_H__
|
||||
|
||||
#include "ACP_Base.h"
|
||||
#include "GAM\locale\FonPub.h"
|
||||
|
||||
|
||||
#define C_INVALID_GET 0
|
||||
#define C_VALID_GET 1
|
||||
#define C_INVALID_SET 0
|
||||
#define C_VALID_SET 1
|
||||
|
||||
#define _WP_D_DEFINE_WAYPOINTS_
|
||||
#include "WP_Handl.h"
|
||||
#include "WP_Func.h"
|
||||
#undef _WP_D_DEFINE_WAYPOINTS_
|
||||
|
||||
/* for ZDD and ZDE*/
|
||||
#define AI_ZDX_CHARACTER 0
|
||||
#define AI_ZDX_MODULE 1
|
||||
|
||||
#include "VarType.h"
|
||||
#include "Ai_struc.h"
|
||||
|
||||
/* All r,g,b,a values are in range [0..100]*/
|
||||
typedef struct RGBAComponent_
|
||||
{
|
||||
unsigned char Red;
|
||||
unsigned char Green;
|
||||
unsigned char Blue;
|
||||
unsigned char Alpha;
|
||||
} RGBAComponent;
|
||||
|
||||
typedef union RGBAStruct_
|
||||
{
|
||||
long Color;
|
||||
RGBAComponent Component;
|
||||
} RGBAStruct;
|
||||
|
||||
#define RGBA_Color(n) ((n).Color)
|
||||
#define RGBA_Component(n) ((n).Component)
|
||||
#define RGBA_Red(n) (RGBA_Component(n).Red)
|
||||
#define RGBA_Green(n) (RGBA_Component(n).Green)
|
||||
#define RGBA_Blue(n) (RGBA_Component(n).Blue)
|
||||
#define RGBA_Alpha(n) (RGBA_Component(n).Alpha)
|
||||
|
||||
/***********************************************************************/
|
||||
|
||||
typedef union tduGetSetParam_
|
||||
{
|
||||
MTH_tdxReal xValue;
|
||||
long lValue;
|
||||
unsigned long ulValue;
|
||||
short wValue;
|
||||
unsigned short uwValue;
|
||||
char cValue;
|
||||
unsigned char ucValue;
|
||||
unsigned char bf7Value:7;
|
||||
unsigned char bf6Value:6;
|
||||
unsigned char bf5Value:5;
|
||||
unsigned char bf4Value:4;
|
||||
unsigned char bf3Value:3;
|
||||
unsigned char bf2Value:2;
|
||||
unsigned char bf1Value:1;
|
||||
RGBAStruct ColorValue;
|
||||
char *szString;
|
||||
struct tdstEngineObject_ *p_stEngObjValue;
|
||||
tdxHandleToState tdxstHandleToState;
|
||||
HIE_tdxHandleToSuperObject hSuperObject; /* for hSector etc...*/
|
||||
WP_tdhWayPoint m_hWayPoint;
|
||||
GMT_tdxMask xMask;
|
||||
tdxHandleOfLipsSynchroTable hLipsSynchro;
|
||||
tdxHandleToObjectsTablesList hObjectTable;
|
||||
tdxHandleToFamilyList hFamily;
|
||||
SND_tdxHandleToSoundEvent pSoundEvent;
|
||||
struct tdstComport_ *pComport;
|
||||
FON_tdxHandleOfText hText;
|
||||
tdxHandleToParticleGenerator hParticleGenerator;
|
||||
GMT_tdxHandleToGameMaterial hGameMaterial;
|
||||
AI_tdstAIModel *p_stModel;
|
||||
MTH3D_tdstVector stVectorValue;
|
||||
GLI_tdxHandleToLight p_stLight;
|
||||
WP_tdHandleOfGraph hGraph;
|
||||
struct tdstMacro_ *p_stMacro;
|
||||
|
||||
} tduGetSetParam;
|
||||
|
||||
typedef union tduGetSetParamForNode_
|
||||
{
|
||||
MTH_tdxReal xValue;
|
||||
long lValue;
|
||||
unsigned long ulValue;
|
||||
short wValue;
|
||||
unsigned short uwValue;
|
||||
char cValue;
|
||||
unsigned char ucValue;
|
||||
RGBAStruct ColorValue;
|
||||
char *szString;
|
||||
struct tdstEngineObject_ *p_stEngObjValue;
|
||||
tdxHandleToState tdxstHandleToState;
|
||||
HIE_tdxHandleToSuperObject hSuperObject; /* for Sector etc...*/
|
||||
WP_tdhWayPoint m_hWayPoint;
|
||||
GMT_tdxMask xMask;
|
||||
tdxHandleOfLipsSynchroTable hLipsSynchro;
|
||||
tdxHandleToObjectsTablesList hObjectTable;
|
||||
tdxHandleToFamilyList hFamily;
|
||||
SND_tdxHandleToSoundEvent pSoundEvent;
|
||||
struct tdstComport_ *pComport;
|
||||
FON_tdxHandleOfText hText;
|
||||
tdxHandleToParticleGenerator hParticleGenerator;
|
||||
GMT_tdxHandleToGameMaterial hGameMaterial;
|
||||
AI_tdstAIModel *p_stModel;
|
||||
MTH3D_tdstVector *p_stVectorValue;
|
||||
GLI_tdxHandleToLight p_stLight;
|
||||
WP_tdHandleOfGraph hGraph;
|
||||
struct tdstMacro_ *p_stMacro;
|
||||
|
||||
} tduGetSetParamForNode;
|
||||
|
||||
|
||||
/* in order to access to tduGetSetParam : don't use these directly*/
|
||||
#define M_tduGetSetParam_Clear(n) memset((void*)(n),0,sizeof(*(n)));
|
||||
|
||||
#define M_tduGetSetParam_szString(n) ((n)->szString)
|
||||
#define M_tduGetSetParam_xValue(n) ((n)->xValue)
|
||||
#define M_tduGetSetParam_lValue(n) ((n)->lValue)
|
||||
#define M_tduGetSetParam_ulValue(n) ((n)->ulValue)
|
||||
/* ANNECY MT - 12/04/99 { */
|
||||
#if defined(__DEBUG_AI__)
|
||||
#define M_tduGetSetParam_p_stSupObjValue(n) ((n)->p_stEngObjValue ? M_GetSuperObject((n)->p_stEngObjValue) : NULL)
|
||||
#else
|
||||
#define M_tduGetSetParam_p_stSupObjValue(n) M_GetSuperObject((n)->p_stEngObjValue)
|
||||
#endif /* __DEBUG_AI__ */
|
||||
/* END ANNECY MT } */
|
||||
#define M_tduGetSetParam_p_stEngObjValue(n) ((n)->p_stEngObjValue)
|
||||
#define M_tduGetSetParam_boolValue(n) M_tduGetSetParam_lValue(n)
|
||||
#define M_tduGetSetParam_HandleToState(n) ((n)->tdxstHandleToState)
|
||||
#define M_tduGetSetParam_stVertexValue(n) M_tduGetSetParam_stVectorValue(n)
|
||||
#define M_tduGetSetParam_p_stVectorValue(n) ((n)->p_stVectorValue)
|
||||
#define M_tduGetSetParam_stVectorValue(n) ((n)->stVectorValue)
|
||||
#define M_tduGetSetParam_hWayPoint(n) ((n)->m_hWayPoint)
|
||||
#define M_GetSetParam_lZDMIdValue(n) M_GetSetParam_lValue(n)
|
||||
#define M_tduGetSetParam_hLipsSynchro(n) ((n)->hLipsSynchro)
|
||||
#define M_tduGetSetParam_hFamily(n) ((n)->hFamily)
|
||||
#define M_tduGetSetParam_hObjectTable(n) ((n)->hObjectTable)
|
||||
#define M_tduGetSetParam_hSuperObject(n) ((n)->hSuperObject)
|
||||
#define M_tduGetSetParam_pSoundEvent(n) ((n)->pSoundEvent)
|
||||
#define M_tduGetSetParam_pComport(n) ((n)->pComport)
|
||||
#define M_tduGetSetParam_hText(n) ((n)->hText)
|
||||
#define M_tduGetSetParam_hParticleGenerator(n) ((n)->hParticleGenerator)
|
||||
#define M_tduGetSetParam_hGameMaterial(n) ((n)->hGameMaterial)
|
||||
#define M_tduGetSetParam_p_stModel(n) ((n)->p_stModel)
|
||||
|
||||
#define M_tduGetSetParam_ColorValue(n) RGBA_Color(M_tduGetSetParam_Color(n))
|
||||
#define M_tduGetSetParam_Color(n) ((n)->ColorValue)
|
||||
#define M_tduGetSetParam_RedValue(n) RGBA_Red(M_tduGetSetParam_Color(n))
|
||||
#define M_tduGetSetParam_GreenValue(n) RGBA_Green(M_tduGetSetParam_Color(n))
|
||||
#define M_tduGetSetParam_BlueValue(n) RGBA_Blue(M_tduGetSetParam_Color(n))
|
||||
#define M_tduGetSetParam_AlphaValue(n) RGBA_Alpha(M_tduGetSetParam_Color(n))
|
||||
#define M_tduGetSetParam_p_stLight(n) ((n)->p_stLight)
|
||||
#define M_tduGetSetParam_ubf32Caps(n) ((n)->ulValue)
|
||||
#define M_tduGetSetParam_hGraph(n) ((n)->hGraph)
|
||||
#define M_tduGetSetParam_p_stMacro(n) ((n)->p_stMacro)
|
||||
|
||||
#if !defined(U64) /**** DR ****/
|
||||
#define M_tduGetSetParam_wValue(n) ((n)->wValue)
|
||||
#define M_tduGetSetParam_uwValue(n) ((n)->uwValue)
|
||||
#define M_tduGetSetParam_cValue(n) ((n)->cValue)
|
||||
#define M_tduGetSetParam_ucValue(n) ((n)->ucValue)
|
||||
#define M_tduGetSetParam_bf7Value(n) ((n)->bf7Value)
|
||||
#define M_tduGetSetParam_bf6Value(n) ((n)->bf6Value)
|
||||
#define M_tduGetSetParam_bf5Value(n) ((n)->bf5Value)
|
||||
#define M_tduGetSetParam_bf4Value(n) ((n)->bf4Value)
|
||||
#define M_tduGetSetParam_bf3Value(n) ((n)->bf3Value)
|
||||
#define M_tduGetSetParam_bf2Value(n) ((n)->bf2Value)
|
||||
#define M_tduGetSetParam_bf1Value(n) ((n)->bf1Value)
|
||||
#define M_tduGetSetParam_xMaskValue(n) ((n)->xMask)
|
||||
#else /* U64 *** DR ****/
|
||||
#define M_tduGetSetParam_wValue(n) ((short)((n)->lValue))
|
||||
#define M_tduGetSetParam_uwValue(n) ((unsigned short)((n)->lValue))
|
||||
#define M_tduGetSetParam_cValue(n) ((char)((n)->lValue))
|
||||
#ifdef CODEWARRIOR
|
||||
#define M_tduGetSetParam_ucValue(n) ((n)->lValue)
|
||||
#else
|
||||
#define M_tduGetSetParam_ucValue(n) ((unsigned char)((n)->lValue))
|
||||
#endif
|
||||
#define M_tduGetSetParam_bf7Value(n) ((unsigned char)((n)->lValue))
|
||||
#define M_tduGetSetParam_bf6Value(n) ((unsigned char)((n)->lValue))
|
||||
#define M_tduGetSetParam_bf5Value(n) ((unsigned char)((n)->lValue))
|
||||
#define M_tduGetSetParam_bf4Value(n) ((unsigned char)((n)->lValue))
|
||||
#define M_tduGetSetParam_bf3Value(n) ((unsigned char)((n)->lValue))
|
||||
#define M_tduGetSetParam_bf2Value(n) ((unsigned char)((n)->lValue))
|
||||
#define M_tduGetSetParam_bf1Value(n) ((unsigned char)((n)->lValue))
|
||||
#ifdef CODEWARRIOR
|
||||
#define M_tduGetSetParam_xMaskValue(n) ((n)->lValue)
|
||||
#else
|
||||
#define M_tduGetSetParam_xMaskValue(n) ((GMT_tdxMask)((n)->lValue))
|
||||
#endif
|
||||
#endif /* U64 *** DR ****/
|
||||
|
||||
|
||||
|
||||
/* for U64*/
|
||||
typedef struct tdstGetSetParam_
|
||||
{
|
||||
#if defined(U64)
|
||||
/* dummy indirection as in tdstNodeInterpret_*/
|
||||
union
|
||||
{
|
||||
#endif
|
||||
union tduGetSetParam_ uParam;
|
||||
#if defined(U64)
|
||||
} uDummy; /* must be the same name as in tdstNodeInterpret_ definition*/
|
||||
#endif
|
||||
enum tdeVariableType_ eType;
|
||||
} tdstGetSetParam;
|
||||
|
||||
/* in order to access fields of tdstGetSetParam structure : use these macros instead*/
|
||||
#if defined(U64)
|
||||
#define M_GetSetParam_Param(n) (&((n)->uDummy.uParam))
|
||||
#else
|
||||
#define M_GetSetParam_Param(n) (&((n)->uParam))
|
||||
#endif
|
||||
|
||||
#define M_GetSetParam_Type(n) ((n)->eType)
|
||||
#define M_GetSetParam_Clear(n) M_tduGetSetParam_Clear(M_GetSetParam_Param(n));M_GetSetParam_Type(n)=E_vt_None;
|
||||
|
||||
#define M_GetSetParam_szString(n) M_tduGetSetParam_szString(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_xValue(n) M_tduGetSetParam_xValue(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_lValue(n) M_tduGetSetParam_lValue(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_ulValue(n) M_tduGetSetParam_ulValue(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_wValue(n) M_tduGetSetParam_wValue(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_uwValue(n) M_tduGetSetParam_uwValue(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_cValue(n) M_tduGetSetParam_cValue(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_ucValue(n) M_tduGetSetParam_ucValue(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_bf7Value(n) M_tduGetSetParam_bf7Value(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_bf6Value(n) M_tduGetSetParam_bf6Value(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_bf5Value(n) M_tduGetSetParam_bf5Value(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_bf4Value(n) M_tduGetSetParam_bf4Value(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_bf3Value(n) M_tduGetSetParam_bf3Value(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_bf2Value(n) M_tduGetSetParam_bf2Value(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_bf1Value(n) M_tduGetSetParam_bf1Value(M_GetSetParam_Param(n))
|
||||
/* ANNECY MT - 12/04/99 { */
|
||||
#if defined(__DEBUG_AI__)
|
||||
#define M_GetSetParam_p_stSupObjValue(n) (M_tduGetSetParam_p_stEngObjValue(M_GetSetParam_Param(n)) ? M_GetSuperObject(M_tduGetSetParam_p_stEngObjValue(M_GetSetParam_Param(n))) : NULL)
|
||||
#else
|
||||
#define M_GetSetParam_p_stSupObjValue(n) M_GetSuperObject(M_tduGetSetParam_p_stEngObjValue(M_GetSetParam_Param(n)))
|
||||
#endif /* __DEBUG_AI__ */
|
||||
/* END ANNECY MT } */
|
||||
#define M_GetSetParam_p_stEngineObjValue(n) M_tduGetSetParam_p_stEngObjValue(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_lPersoId(n) M_GetSetParam_lValue(n)
|
||||
#define M_GetSetParam_ActionReturnValue(n) M_GetSetParam_lValue(n)
|
||||
#define M_GetSetParam_ActionValue(n) M_tduGetSetParam_HandleToState(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_lZdxId(n) M_GetSetParam_lValue(n)
|
||||
#define M_GetSetParam_stVertexValue(n) M_GetSetParam_stVectorValue(n)
|
||||
#define M_GetSetParam_p_stVectorValue(n) M_tduGetSetParam_p_stVectorValue(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_stVectorValue(n) M_tduGetSetParam_stVectorValue(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_WayPointValue(n) M_tduGetSetParam_hWayPoint(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_lModuleValue(n) M_GetSetParam_lValue(n)
|
||||
#define M_GetSetParam_lDsgVarIdValue(n) M_GetSetParam_lValue(n)
|
||||
#define M_GetSetParam_xMaskValue(n) M_tduGetSetParam_xMaskValue(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_ulTimeValue(n) M_GetSetParam_ulValue(n)
|
||||
#define M_GetSetParam_hLipsSynchro(n) M_tduGetSetParam_hLipsSynchro(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_hFamily(n) M_tduGetSetParam_hFamily(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_hObjectTable(n) M_tduGetSetParam_hObjectTable(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_SuperObjectValue(n) M_tduGetSetParam_hSuperObject(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_SectorValue(n) M_GetSetParam_SuperObjectValue(n)
|
||||
#define M_GetSetParam_DNMLimbTypeValue(n) M_GetSetParam_lValue(n)
|
||||
#define M_GetSetParam_SoundEvent(n) M_tduGetSetParam_pSoundEvent(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_pComport(n) M_tduGetSetParam_pComport(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_hText(n) M_tduGetSetParam_hText(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_hParticleGenerator(n) M_tduGetSetParam_hParticleGenerator(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_hGameMaterial(n) M_tduGetSetParam_hGameMaterial(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_p_stModel(n) M_tduGetSetParam_p_stModel(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_Color(n) M_tduGetSetParam_Color(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_ColorValue(n) M_tduGetSetParam_ColorValue(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_RedValue(n) M_tduGetSetParam_RedValue(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_GreenValue(n) M_tduGetSetParam_GreenValue(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_BlueValue(n) M_tduGetSetParam_BlueValue(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_AlphaValue(n) M_tduGetSetParam_AlphaValue(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_LightValue(n) M_tduGetSetParam_p_stLight(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_CapsValue(n) M_tduGetSetParam_ubf32Caps(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_GraphValue(n) M_tduGetSetParam_hGraph(M_GetSetParam_Param(n))
|
||||
#define M_GetSetParam_p_stMacroValue(n) M_tduGetSetParam_p_stMacro(M_GetSetParam_Param(n))
|
||||
|
||||
/* in order to access to designer variables*/
|
||||
/* WARNING : must follow C_TYPEOf.... constants defined in DsgMem.h*/
|
||||
#define M_GetSetParam_Dsg_Boolean(n) M_GetSetParam_cValue(n)
|
||||
#define M_GetSetParam_Dsg__128To127(n) M_GetSetParam_cValue(n)
|
||||
#define M_GetSetParam_Dsg_0To255(n) M_GetSetParam_ucValue(n)
|
||||
#define M_GetSetParam_Dsg__32768To32767(n) M_GetSetParam_wValue(n)
|
||||
#define M_GetSetParam_Dsg_0To65535(n) M_GetSetParam_uwValue(n)
|
||||
#define M_GetSetParam_Dsg_Integer(n) M_GetSetParam_lValue(n)
|
||||
#define M_GetSetParam_Dsg_PositiveInteger(n) M_GetSetParam_ulValue(n)
|
||||
#define M_GetSetParam_Dsg_Float(n) M_GetSetParam_xValue(n)
|
||||
#define M_GetSetParam_Dsg_Perso(n) M_GetSetParam_lPersoId(n)
|
||||
#define M_GetSetParam_Dsg_PersoInList(n) M_GetSetParam_cValue(n)
|
||||
#define M_GetSetParam_Dsg_List(n) M_GetSetParam_lValue(n)
|
||||
#define M_GetSetParam_Dsg_WayPoint(n) M_GetSetParam_WayPointValue(n)
|
||||
#define M_GetSetParam_Dsg_Vector(n) (&M_GetSetParam_stVectorValue(n))
|
||||
#define M_GetSetParam_Dsg_Comport(n) M_GetSetParam_pComport(n)
|
||||
#define M_GetSetParam_Dsg_Action(n) M_GetSetParam_ActionValue(n)
|
||||
#define M_GetSetParam_Dsg_Text(n) M_GetSetParam_hText(n)
|
||||
#define M_GetSetParam_Dsg_GameMaterial(n) M_GetSetParam_hGameMaterial(n)
|
||||
#define M_GetSetParam_Dsg_Caps(n) M_GetSetParam_CapsValue(n)
|
||||
#define M_GetSetParam_Dsg_Graph(n) M_GetSetParam_GraphValue(n)
|
||||
|
||||
/* in order to choose between lValue or xValue */
|
||||
#define M_ReturnParam_lValue(n) \
|
||||
( \
|
||||
(M_GetSetParam_Type(n)==E_vt_Float) \
|
||||
? ( MTH_M_xRealToLong(M_GetSetParam_xValue(n)) ) \
|
||||
: ( M_GetSetParam_lValue(n) ) \
|
||||
)
|
||||
|
||||
#define M_ReturnParam_xValue(n) \
|
||||
( \
|
||||
(M_GetSetParam_Type(n)==E_vt_Float) \
|
||||
? ( M_GetSetParam_xValue(n) ) \
|
||||
: ( MTH_M_xLongToReal(M_GetSetParam_lValue(n)) ) \
|
||||
)
|
||||
|
||||
/* in order to simplify affectation during interpretation*/
|
||||
#define M_Full_GetSetParam_Integer(p_stValue,lValue) \
|
||||
M_GetSetParam_lValue(p_stValue)=(long) (lValue); \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_Integer;
|
||||
|
||||
#define M_Full_GetSetParam_Float(p_stValue,xValue) \
|
||||
M_GetSetParam_xValue(p_stValue)=(xValue); \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_Float;
|
||||
|
||||
#define M_Full_GetSetParam_ActionReturn(p_stValue,ucActionReturn) \
|
||||
M_GetSetParam_ActionReturnValue(p_stValue)=(ucActionReturn); \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_MetaActionReturn;
|
||||
|
||||
#define M_Full_GetSetParam_Perso(p_stValue,pPerso) \
|
||||
M_GetSetParam_p_stEngineObjValue(p_stValue) = ((pPerso==NULL)?NULL:M_GetEngineObject(pPerso)); \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_Perso;
|
||||
|
||||
/* ANNECY OA - 05/08/99 { */
|
||||
#ifndef U64
|
||||
#define M_Full_GetSetParam_SuperObject(p_stValue,pSuperObject) \
|
||||
M_GetSetParam_SuperObjectValue(p_stValue) = (pSuperObject); \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_SuperObject;
|
||||
#endif
|
||||
/* END ANNECY OA } */
|
||||
|
||||
#define M_Full_GetSetParam_hLipsSynchro(p_stValue,hLipsSynchro) \
|
||||
M_GetSetParam_hLipsSynchro(p_stValue) = hLipsSynchro; \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_LipsSynchro;
|
||||
|
||||
#define M_Full_GetSetParam_hObjectTable(p_stValue,hObjectTable) \
|
||||
M_GetSetParam_hObjectTable(p_stValue) = hObjectTable; \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_ObjectTable;
|
||||
|
||||
#define M_Full_GetSetParam_hFamily(p_stValue,hFamily) \
|
||||
M_GetSetParam_hFamily(p_stValue) = hFamily; \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_Family;
|
||||
|
||||
#define M_Full_GetSetParam_p_stVertex(p_stValue,p_stVertex) \
|
||||
MTH3D_M_vCopyVector(&M_GetSetParam_stVertexValue(p_stValue),p_stVertex); \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_Vector;
|
||||
|
||||
#define M_Full_GetSetParam_Button(p_stValue,lValue) \
|
||||
M_GetSetParam_lValue(p_stValue)=(long)(lValue); \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_Button;
|
||||
|
||||
#define M_Full_GetSetParam_List(p_stValue,lValue) \
|
||||
M_GetSetParam_Dsg_List(p_stValue)=(long) ((tdstList*) (lValue) ); \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_List;
|
||||
|
||||
#define M_Full_GetSetParam_WayPoint(p_stValue,lWP)\
|
||||
M_GetSetParam_WayPointValue(p_stValue) = (lWP);\
|
||||
M_GetSetParam_Type(p_stValue) = E_vt_WayPoint;
|
||||
|
||||
#define M_Full_GetSetParam_Module(p_stValue,lModule) \
|
||||
M_GetSetParam_lModuleValue(p_stValue)=(long) (lModule); \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_Module;
|
||||
|
||||
#define M_Full_GetSetParam_DsgVarId(p_stValue,lDsgVarId) \
|
||||
M_GetSetParam_lDsgVarIdValue(p_stValue)=(long) (lDsgVarId); \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_DsgVarId;
|
||||
|
||||
#define M_Full_GetSetParam_String(p_stValue, szString) \
|
||||
M_GetSetParam_szString(p_stValue) = (szString); \
|
||||
M_GetSetParam_Type(p_stValue) = E_vt_String;
|
||||
|
||||
#define M_Full_GetSetParam_Mask(p_stValue,xMask) \
|
||||
M_GetSetParam_lValue(p_stValue) = (long) (xMask); \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_Mask;
|
||||
|
||||
#define M_Full_GetSetParam_Time(p_stValue,ulValue) \
|
||||
M_GetSetParam_ulTimeValue(p_stValue)=(unsigned long) (ulValue); \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_PositiveInteger;
|
||||
|
||||
#define M_Full_GetSetParam_SoundEvent(p_stValue,pSndEvent) \
|
||||
M_GetSetParam_SoundEvent(p_stValue)=(pSndEvent); \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_SoundEvent;
|
||||
|
||||
#define M_Full_GetSetParam_pComport(p_stValue,pComport) \
|
||||
M_GetSetParam_pComport(p_stValue)=(pComport); \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_Comport;
|
||||
|
||||
#define M_Full_GetSetParam_Action(p_stValue,hAction) \
|
||||
M_GetSetParam_ActionValue(p_stValue)=(hAction); \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_Action;
|
||||
|
||||
#define M_Full_GetSetParam_hText(p_stValue,hText) \
|
||||
M_GetSetParam_hText(p_stValue)=(hText); \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_Text;
|
||||
|
||||
#define M_Full_GetSetParam_hParticleGenerator(p_stValue,hParticleGenerator) \
|
||||
M_GetSetParam_hParticleGenerator(p_stValue)=(hParticleGenerator); \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_ParticleGenerator;
|
||||
|
||||
#define M_Full_GetSetParam_hGameMaterial(p_stValue, hGameMaterial) \
|
||||
M_GetSetParam_hGameMaterial(p_stValue)=(hGameMaterial); \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_GameMaterial;
|
||||
|
||||
#define M_Full_GetSetParam_ColorValue(p_stValue,ColorValue) \
|
||||
M_GetSetParam_ColorValue(p_stValue)=(long) (ColorValue); \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_Color;
|
||||
|
||||
#define M_Full_GetSetParam_p_stModel(p_stValue,ModelValue) \
|
||||
M_GetSetParam_p_stModel(p_stValue)=(AI_tdstAIModel*) (ModelValue); \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_Model;
|
||||
|
||||
#define M_Full_GetSetParam_Light(p_stValue,LightValue) \
|
||||
M_GetSetParam_LightValue(p_stValue)=(LightValue); \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_Light;
|
||||
|
||||
#define M_Full_GetSetParam_Caps(p_stValue, CapsValue) \
|
||||
M_GetSetParam_CapsValue(p_stValue)=(CapsValue); \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_Caps;
|
||||
|
||||
#define M_Full_GetSetParam_Graph(p_stValue, GraphValue) \
|
||||
M_GetSetParam_GraphValue(p_stValue)=(GraphValue); \
|
||||
M_GetSetParam_Type(p_stValue)=E_vt_Graph;
|
||||
|
||||
#define M_IsFloatType(p_stParam) (M_GetSetParam_Type((p_stParam))==E_vt_Float)
|
||||
#define M_IsVectorType(p_stParam) (M_GetSetParam_Type((p_stParam))==E_vt_Vector)
|
||||
|
||||
|
||||
#endif /* __GETSET_PARAM_H__ */
|
||||
|
||||
|
39
Rayman_X/cpa/public/AI/AIBase/Getset.h
Normal file
39
Rayman_X/cpa/public/AI/AIBase/Getset.h
Normal file
@@ -0,0 +1,39 @@
|
||||
/*-----------------------------------------------------------------------------*/
|
||||
/* create : 23/10/96 Olivier Couvreur */
|
||||
/* modify : 30/10/96 Olivier Couvreur */
|
||||
/* 970115 : Field Position in perso (Fabien Morales)*/
|
||||
/* 970120 : Field ComportOnGeneration in perso (Fabien Morales)*/
|
||||
/* 970128 : Fields from the AimData structure (Fabien Morales)*/
|
||||
/* 970731 : Script & Editor Names + Lint (Olivier Couvreur)*/
|
||||
/* modify : Olivier Couvreur*/
|
||||
/* date : 18/02/1997 CPA_EXPORT + new functions for editor*/
|
||||
/* modify : Olivier Couvreur 25/03/1997 ACTIVE_EDITOR support*/
|
||||
/*-----------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(__GET_SET_H__)
|
||||
#define __GET_SET_H__
|
||||
|
||||
/**************************************/
|
||||
#if !defined(CPA_EXPORT)
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
|
||||
#endif /*CPA_EXPORT*/
|
||||
/**************************************/
|
||||
#undef extern
|
||||
#define EXTERN_AI_DLL extern
|
||||
|
||||
/*******************************************************************************/
|
||||
|
||||
/* get set functions */
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned char fn_ucSetFieldValue(enum tdeFieldId_ eFieldId, HIE_tdxHandleToSuperObject hSuperObjPerso, struct tdstGetSetParam_ *p_stGetSetParam);
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned char fn_ucGetFieldValue(enum tdeFieldId_ eFieldId, HIE_tdxHandleToSuperObject hSuperObjPerso, struct tdstGetSetParam_ *p_stGetSetParam);
|
||||
|
||||
/*******************************************************************************/
|
||||
#undef EXTERN_AI_DLL
|
||||
|
||||
#endif
|
101
Rayman_X/cpa/public/AI/AIBase/List.h
Normal file
101
Rayman_X/cpa/public/AI/AIBase/List.h
Normal file
@@ -0,0 +1,101 @@
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* list.h : perso list for AI.*/
|
||||
/* author : Olivier Couvreur 28/11/1997*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(__LIST_H__)
|
||||
#define __LIST_H__
|
||||
|
||||
/* Function Prototypes for List of perso*/
|
||||
/*///////////////////////////////////////*/
|
||||
#define C_ucSizeOfMinimalList 2
|
||||
#define C_ucSizeOfMaximalList 30 /* the biggest list can have only C_ucSizeOfMaximalList */
|
||||
#define C_ucEndOfList 255
|
||||
|
||||
#define C_TypeOfPersoInList HIE_tdxHandleToSuperObject
|
||||
#define C_SizeOfPersoInList (sizeof (C_TypeOfPersoInList))
|
||||
|
||||
#define C_TypeOfList1 struct tdstList1_
|
||||
#define C_SizeOfList1 (sizeof (C_TypeOfList1))
|
||||
|
||||
/* Macros*/
|
||||
/*************/
|
||||
#define M_Min(a,b) (((a)>(b)) ? (b) : (a))
|
||||
|
||||
/* Macros for List of perso*/
|
||||
/*//////////////////////////*/
|
||||
#define M_bListEmptyTest(p_List) (((p_List)->ucNbElt) == 0)
|
||||
|
||||
#define M_ucNbEltInList(p_List) ((p_List)->ucNbElt)
|
||||
#define M_ucGetMaxSizeOfList(p_List) ((p_List)->ucMaxSize)
|
||||
|
||||
#define M_ClearList(p_List) (p_List)->ucNbElt = 0;
|
||||
|
||||
#define M_InitList(p_List, ucNbEltMax) \
|
||||
{\
|
||||
M_ClearList(p_List);\
|
||||
(p_List)->ucMaxSize = ucNbEltMax;\
|
||||
}
|
||||
|
||||
/*Only for debug !!y!!*/
|
||||
#define M_Init3List(p_List) (p_List)->ucNbElt = 3;
|
||||
|
||||
/*Scan every perso in a list in order to read or modif the list.*/
|
||||
#define M_InitScanList(p_List, p_p_Perso) p_p_Perso=p_List->d_TabElt
|
||||
#define M_EndingCondScanList(p_List, p_p_Perso) (p_p_Perso < (p_List->d_TabElt + p_List->ucNbElt))
|
||||
#define M_GoNextScanList(p_List, p_p_Perso) p_p_Perso++
|
||||
|
||||
/* Types & structures for List of perso*/
|
||||
/*//////////////////////////////////////*/
|
||||
/*tdePosInList is used for the fn_ListChoice function.*/
|
||||
typedef enum tdePosInList_{
|
||||
E_pil_First,/*we want to get the first elements in shorted list.*/
|
||||
E_pil_Last,/*we want to get the last elements in shorted list.*/
|
||||
E_pil_StartedPos,/*we want to get the elements beginning at a specific position. Here we want to start with the second elemenent.*/
|
||||
E_pil_StartedPos3,/*we want to get the elements beginning at the third position.*/
|
||||
E_pil_StartedPosMAx = (255+2/*minimal position*/-E_pil_StartedPos)/*we want to get the elements beginning at the third position.*/
|
||||
}tdePosInList;
|
||||
|
||||
typedef char Bool;
|
||||
|
||||
typedef struct tdstList1_ {
|
||||
unsigned char ucNbElt;
|
||||
unsigned char ucMaxSize;
|
||||
HIE_tdxHandleToSuperObject d_TabElt[1];
|
||||
} tdstList1;/* used to know the size of the a list with one element*/
|
||||
|
||||
typedef struct tdstList_ {
|
||||
unsigned char ucNbElt;
|
||||
unsigned char ucMaxSize;
|
||||
HIE_tdxHandleToSuperObject d_TabElt[C_ucSizeOfMaximalList];
|
||||
} tdstList;/* use for every list pointer, easy to watch all element in debug mode*/
|
||||
|
||||
|
||||
void fn_vPutInList (tdstList *p_List, HIE_tdxHandleToSuperObject p_Perso);
|
||||
void fn_vInsertPersoAtPositionInList (tdstList *p_List, HIE_tdxHandleToSuperObject p_Perso, unsigned char ucPosition);
|
||||
Bool fn_bFindPersoInList(tdstList *p_List, HIE_tdxHandleToSuperObject p_Perso);
|
||||
Bool fn_bFindModelInList(tdstList *p_List, AI_tdstAIModel *_p_stModel);
|
||||
Bool fn_bFindFamilyInList(tdstList *p_List, tdxHandleToFamilyList hFamily);
|
||||
Bool fn_bFindPersoAndDeleteInList (tdstList *p_List, HIE_tdxHandleToSuperObject p_Perso);
|
||||
HIE_tdxHandleToSuperObject fn_p_stGetPersoInList(tdstList *p_List, unsigned char ucPosition);
|
||||
void fn_vDeletePersoAtPositionInList (tdstList *p_List, unsigned char ucPosition);
|
||||
void fn_vSortListByFamily(tdstList *p_List, tdxHandleToFamilyList hFamily);
|
||||
void fn_vSortListByModel(tdstList *p_List, AI_tdstAIModel *_p_stModel);
|
||||
void fn_vUnionList (tdstList *p_ListA, tdstList *p_ListB, tdstList *p_ListC);
|
||||
void fn_vInterList (tdstList *p_ListA, tdstList *p_ListB, tdstList *p_ListC);
|
||||
void fn_vDiffList (tdstList *p_ListA, tdstList *p_ListB, tdstList *p_ListC);
|
||||
void fn_vAddList (tdstList *p_ListA, tdstList *p_ListB);
|
||||
void fn_v_InitList(tdstList *p_List);
|
||||
void fn_v_Init3List(tdstList *p_List);/*!!y!!*/
|
||||
|
||||
void fn_vAffectZddInList(tdstList *, HIE_tdxHandleToSuperObject, unsigned char, ACP_tdxIndex);
|
||||
void fn_vAffectZdeInList(tdstList *, HIE_tdxHandleToSuperObject, unsigned char, ACP_tdxIndex, GMT_tdxMask uwMask);
|
||||
void fn_vAffectTypeZdeWithTypeZdeInList(tdstList *, HIE_tdxHandleToSuperObject, GMT_tdxMask xPersoMask, GMT_tdxMask xOthersMask);
|
||||
|
||||
unsigned char fn_ucAtLeastOnePersoInZdd(HIE_tdxHandleToSuperObject p_stPerso, unsigned char ucModulOrCharact, ACP_tdxIndex xZoneId);
|
||||
unsigned char fn_ucAtLeastOnePersoInZde(HIE_tdxHandleToSuperObject p_stPerso, unsigned char ucModulOrCharact, ACP_tdxIndex xZoneId, GMT_tdxMask xMask);
|
||||
|
||||
struct tdstNodeInterpret_ * fn_p_stListSelect(tdstList * p_List, char b_cInverse, struct tdstNodeInterpret_ *p_stTree/*, struct tdstGetSetParam_ * p_stParam*/);
|
||||
struct tdstNodeInterpret_ * fn_p_stListSort (tdstList * p_List, unsigned char ucWantedNbElt, char b_cIncrease, struct tdstNodeInterpret_ *p_stTree/*, struct tdstGetSetParam_ * p_stParam*/);
|
||||
|
||||
#endif
|
73
Rayman_X/cpa/public/AI/AIBase/ReadRule.h
Normal file
73
Rayman_X/cpa/public/AI/AIBase/ReadRule.h
Normal file
@@ -0,0 +1,73 @@
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* ReadFile.h : Manage the reading of script file.*/
|
||||
/* auteur : Olivier Didelot.*/
|
||||
/* date : 29/08/1996*/
|
||||
/* 18/2/97 modify Olivier Couvreur : C_...String for Editor*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* in order to compile AI in C++ and link with GAM in C*/
|
||||
#if defined(__cplusplus)
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#if !defined(__READRULE_H__)
|
||||
#define __READRULE_H__
|
||||
|
||||
/*////////////////////*/
|
||||
/* Global Variables //*/
|
||||
/*////////////////////*/
|
||||
#undef EXTERN
|
||||
#undef extern
|
||||
#if !defined(__DeclareGlobalVariableReadRule_h__)
|
||||
#define EXTERN extern
|
||||
#else
|
||||
#define EXTERN
|
||||
#endif /*__DeclareGlobalVariableReadRule_h__*/
|
||||
|
||||
#if defined(AI_USE_SCRIPT)
|
||||
EXTERN SCR_tdst_Link_Table g_stMacroLinkTable;
|
||||
EXTERN SCR_tdst_Link_Table g_stComportLinkTable;
|
||||
EXTERN SCR_tdst_Link_Table g_stModelLinkTable;
|
||||
EXTERN SCR_tdst_Link_Table g_stDsgVarLinkTable;
|
||||
EXTERN SCR_tdst_Link_Table g_stDefinesLinkTable;
|
||||
/*ANNECY CT 22/01/98*/
|
||||
EXTERN SCR_tdst_Link_Table gs_stLightLinkTable;
|
||||
/*ENDANNECY CT}*/
|
||||
#endif /* AI_USE_SCRIPT */
|
||||
|
||||
void fn_vReadAIDefines(char *szDefineFilename);
|
||||
|
||||
#define M_DEFINE_NODE(a,b,c)
|
||||
#include "DefNode.h"
|
||||
#undef M_DEFINE_NODE
|
||||
|
||||
/*-------------------------------------------------------------------------------*/
|
||||
/* Macros definition.*/
|
||||
/*-------------------------------------------------------------------------------*/
|
||||
#define M_IsScriptAIReference(szWord) (!stricmp(szWord, C_ScriptAIReferenceString))
|
||||
|
||||
/* For the AIModel.*/
|
||||
#define M_IsIntellAIModel(szWord) (!stricmp(szWord, C_CreateIntellAIModel_String))
|
||||
#define M_IsReflexAIModel(szWord) (!stricmp(szWord, C_CreateReflexAIModel_String))
|
||||
#define M_IsVariableDeclarationAIModel(szWord) (!stricmp(szWord, C_CreateVariableDeclarationAIModel_String))
|
||||
#define M_IsMacroAIModel(szWord) (!stricmp(szWord, C_CreateMacroAIModel_String))
|
||||
|
||||
/* For .DEC (SAI + OTI)*/
|
||||
#define M_IsTypeSaveVariable(szWord) (!stricmp(szWord, C_TypeSaveVariables_String))
|
||||
#define M_IsTypeInitVariable(szWord) (!stricmp(szWord, C_TypeInitVariables_String))
|
||||
|
||||
/* For DEFINES.AI*/
|
||||
#define M_IsConstantRef(szWord) (!stricmp(szWord, C_ConstantRefString))
|
||||
#define M_IsRealRef(szWord) (!stricmp(szWord, C_RealRefString))
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------------*/
|
||||
/* Functions definition.*/
|
||||
/*-------------------------------------------------------------------------------*/
|
||||
/* cf AI_proto.h*/
|
||||
|
||||
#endif /*__READRULE_H__*/
|
||||
/* in order to compile AI in C++ and link with GAM in C*/
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
437
Rayman_X/cpa/public/AI/AIBase/StrIntel.h
Normal file
437
Rayman_X/cpa/public/AI/AIBase/StrIntel.h
Normal file
@@ -0,0 +1,437 @@
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Strintel.h : data structures for intelligency engine*/
|
||||
/* auteur : Olivier Didelot.*/
|
||||
/* date : 08/08/1996*/
|
||||
/* modifications majeures : * 12/1996 O.C.*/
|
||||
/* 970115 : Vector management (Fabien Morales)*/
|
||||
/* 970120 : minor changes (O.C.)*/
|
||||
/* January 28,1997 Adding Way and Waypoints management*/
|
||||
/* 970212 : Module & DsgVarId node types (Fabien Morales)*/
|
||||
/* modify : Olivier Couvreur 18/02/97 CPA_EXPORT + new functions for editor*/
|
||||
/* modify : Olivier Couvreur 05/03/97 Model can be gathered between several perso + Alloc and Free functions rewritten*/
|
||||
/* modify : Olivier Couvreur 25/03/97 NbNode is not an unsigned char anymore + NoComportInit support*/
|
||||
/* modify : Olivier Couvreur 25/05/97 ZDD + ZDD stuff*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(__STRINTEL_H__)
|
||||
#define __STRINTEL_H__
|
||||
|
||||
#include "GSParam.h"
|
||||
#ifdef USE_IPT_DX5
|
||||
#include "IPT_DX5.h" /* InPuT (absolutely before GAM.h)*/
|
||||
#else /* USE_IPT_WIN */
|
||||
#include "IPT.h" /* InPuT (absolutely before GAM.h)*/
|
||||
#endif /* USE_IPT_WIN */
|
||||
#include "specif/AIOption.h"
|
||||
|
||||
#if defined(U64)
|
||||
#include "AIGame/EnumAct.h" /* tables of action names*/
|
||||
#include "AIGame/EnumCond.h" /* tables of conditions names*/
|
||||
#include "AIGame/EnumKey.h" /* tables of keywords names*/
|
||||
#include "AIGame/EnumFunc.h" /* tables of functions names*/
|
||||
#include "AIGame/EnumOper.h" /* tables of operator*/
|
||||
#include "AIGame/EnumProc.h" /* tables of Procedure.*/
|
||||
#include "AIGame/EnumFild.h" /* tables of fields*/
|
||||
#endif
|
||||
|
||||
#if defined(REVERSE_RULES)
|
||||
#pragma message("*** REVERSE_RULES is defined ***");
|
||||
#endif
|
||||
|
||||
#if defined(__cplusplus)
|
||||
/*#pragma message("*** Compiling in C++ for debug only ***")*/
|
||||
/*#pragma message("*** Remove /Tp in Settings (C/C++ Project Options) to compile in C ***")*/
|
||||
#endif
|
||||
|
||||
/**************************************/
|
||||
#if !defined(CPA_EXPORT)
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
|
||||
#endif /*CPA_EXPORT*/
|
||||
/**************************************/
|
||||
#undef extern
|
||||
#define EXTERN_AI_DLL extern
|
||||
|
||||
/*******************************************************************************/
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Macros for access to field of struct tdstTreeInterpret*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#if defined(OPTIMIZE_NB_NODES)
|
||||
#define M_GetNbNodeInterpret(p_Tree) fn_uwGetNbNodeInterpret((p_Tree))
|
||||
#define M_SetNbNodeInterpret(p_Tree, NNode)
|
||||
#define M_GetNodeInterpret(p_Tree) ((p_Tree)->p_stNodeInterpret)
|
||||
#else
|
||||
#define M_GetNbNodeInterpret(p_Tree) ((p_Tree)->uwNbNode)
|
||||
#define M_SetNbNodeInterpret(p_Tree, NNode) (M_GetNbNodeInterpret(p_Tree)=(NNode))
|
||||
#define M_GetNodeInterpret(p_Tree) ((p_Tree)->p_stNodeInterpret)
|
||||
#endif
|
||||
#define M_GetNodeInterpretN(p_Tree, NNode) (&(M_GetNodeInterpret(p_Tree)[NNode]))
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Macros for access to field of struct tdstMacro*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#define M_GetMacroInitTree(p_stMacro) ((p_stMacro)->p_stInitTree)
|
||||
#define M_GetMacroCurrentTree(p_stMacro) ((p_stMacro)->p_stCurrentTree)
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Macros for access to field of struct tdstListOfMacro*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#define M_GetNameMacro(p_stMacro) ((p_stMacro)->szName)
|
||||
#define M_GetMacro(p_stListMacro) ((p_stListMacro)->p_stMacro)
|
||||
#define M_GetMacroN(p_stListMacro, N) (M_GetMacro(p_stListMacro)+N)
|
||||
#define M_GetNbMacro(p_stListMacro) (p_stListMacro->ucNbMacro)
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Macros for access to field of struct tdstComport*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#define M_GetNameComport(p_stComp) ((p_stComp)->szName)
|
||||
#define M_GetComportSchedule(p_stComp) ((p_stComp)->p_stSchedule)
|
||||
#define M_GetTreeComportSchedule(p_stComp) (M_GetNodeInterpret(M_GetComportSchedule(p_stComp)))
|
||||
#define M_GetComportRules(p_stComp) ((p_stComp)->p_stRules)
|
||||
#define M_GetComportRuleN(p_stComp, NRule) (&(M_GetComportRules(p_stComp)[NRule]))
|
||||
#define M_GetComportNbRules(p_stComp) ((p_stComp)->ucNbRules)
|
||||
#define M_GetComportNRules(p_stComp, N) ((p_stComp)[N].p_stRules)
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Macros for access to field of struct tdstScriptAI*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#define M_GetScriptAINbComport(p_stScr) ((p_stScr)->ulNbComport)
|
||||
#define M_GetScriptAIComport(p_stScr) ((p_stScr)->p_stComport)
|
||||
#define M_GetScriptAIComportN(p_stScr, N) (&(M_GetScriptAIComport(p_stScr)[N]))
|
||||
#define M_GetScriptAIActionTableNbEntry(p_stScr) ((p_stScr)->ucActionTableNbEntry)
|
||||
#define M_GetScriptAINoComportInitDefault(p_stScr) ((p_stScr)->ulNoComportInitDefault)
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Macros for access to field of struct tdstIntelligence*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#define M_GetCurrentComport(p_stInt) ((p_stInt)->p_stCurrentComport)
|
||||
#define M_GetPrevComport(p_stInt) ((p_stInt)->p_stPrevComport)
|
||||
#define M_GetRules(p_stInt) (M_GetComportRules(M_GetCurrentComport(p_stInt)))
|
||||
#define M_GetRuleN(p_stInt, NRule) (&(M_GetRules(p_stInt)[(NRule)]))
|
||||
#define M_GetNbRules(p_stInt) (M_GetComportNbRules(M_GetCurrentComport(p_stInt)))
|
||||
#define M_GetScriptAI(p_stInt) (*((p_stInt)->p_p_stScriptAI))
|
||||
#define M_GetNbComport(p_stInt) (M_GetScriptAINbComport(M_GetScriptAI(p_stInt)))
|
||||
#define M_GetComport(p_stInt) (M_GetScriptAIComport(M_GetScriptAI(p_stInt)))
|
||||
#define M_GetComportN(p_stInt, N) (M_GetScriptAIComportN(M_GetScriptAI(p_stInt), N))
|
||||
#define M_GetCurrentSchedule(p_stInt) ((p_stInt)->p_stCurrentSchedule)
|
||||
#define M_GetNoComportInit(p_stInt) ((p_stInt)->ulNoComportInit)
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Macros for access to field of struct tdstNodeInterpret*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#define M_DepthInterpret(p_Tree) ((p_Tree)->ucDepth)
|
||||
|
||||
#if defined(__DEBUG_AI__)
|
||||
#define M_GetTypeInterpret(p_Tree) ((p_Tree)->eType)
|
||||
#define M_SetTypeInterpret(p_Tree,n) ((p_Tree)->eType)=(enum tdeTypeInterpret_) (n)
|
||||
#else
|
||||
#define M_GetTypeInterpret(p_Tree) (enum tdeTypeInterpret_) ((p_Tree)->eType)
|
||||
#define M_SetTypeInterpret(p_Tree,n) ((p_Tree)->eType)=(unsigned char) (n)
|
||||
#endif /* __DEBUG_AI__*/
|
||||
|
||||
#if defined(OPTIMIZE_SWAP_PARAMETER)
|
||||
#define M_NodeToSkip(p_Tree) ((p_Tree)->uwNodeToSkip)
|
||||
#endif /* OPTIMIZE_SWAP_PARAMETER*/
|
||||
|
||||
#if defined(U64)
|
||||
#define M_TypeUnionInterpret(p_Tree) (&((p_Tree)->uDummy.uId))
|
||||
#else
|
||||
#define M_TypeUnionInterpret(p_Tree) (&((p_Tree)->uId))
|
||||
#endif /* U64*/
|
||||
|
||||
#if defined(ACTIVE_AIDEBUG) /**** DR ****/
|
||||
#define M_GetBreakPoint(p_Tree) ((p_Tree)->bBreakPoint)
|
||||
#define M_SetBreakPoint(p_Tree,n) ((p_Tree)->bBreakPoint = (ACP_tdxBool)(n))
|
||||
#endif /*ACTIVE_AIDEBUG*/
|
||||
|
||||
#define M_eCondIdInterpret(p_Tree) (M_TypeUnionInterpret(p_Tree)->eCondId)
|
||||
#define M_eKeyWordIdInterpret(p_Tree) (M_TypeUnionInterpret(p_Tree)->eKeyWordId)
|
||||
#define M_eOperatorIdInterpret(p_Tree) (M_TypeUnionInterpret(p_Tree)->eOperatorId)
|
||||
#define M_eFuncIdInterpret(p_Tree) (M_TypeUnionInterpret(p_Tree)->eFuncId)
|
||||
#define M_eFieldIdInterpret(p_Tree) (M_TypeUnionInterpret(p_Tree)->eFieldId)
|
||||
#define M_eMetaActionIdInterpret(p_Tree) (M_TypeUnionInterpret(p_Tree)->eMetaActionId)
|
||||
#define M_hInputHandleIdInterpret(p_Tree) (M_TypeUnionInterpret(p_Tree)->hInputAction)
|
||||
#define M_eProcedureIdInterpret(p_Tree) (M_TypeUnionInterpret(p_Tree)->eProcedureId)
|
||||
#define M_szStringInterpret(p_Tree) (M_GetSetParam_szString(p_Tree))
|
||||
#define M_lValueInterpret(p_Tree) (M_GetSetParam_lValue(p_Tree))
|
||||
#define M_xValueInterpret(p_Tree) (M_GetSetParam_xValue(p_Tree))
|
||||
#define M_lPersoIdInterpret(p_Tree) (M_GetSetParam_lPersoId(p_Tree))
|
||||
#define M_lKeyLinkInterpret(p_Tree) (M_GetSetParam_lValue(p_Tree))
|
||||
#define M_p_stPersoRefInterpret(p_Tree) (M_GetSetParam_p_stEngineObjValue(p_Tree))
|
||||
#define M_ucVarIdInterpret(p_Tree) (M_GetSetParam_lValue(p_Tree))
|
||||
#define M_lZdxIdInterpret(p_Tree) (M_GetSetParam_lZdxId(p_Tree))
|
||||
#define M_p_stVectorInterpret(p_Tree) (M_GetSetParam_p_stVectorValue(p_Tree))
|
||||
#define M_lWayPointInterpret(p_Tree) (M_GetSetParam_WayPointValue(p_Tree))
|
||||
#define M_lModuleInterpret(p_Tree) (M_GetSetParam_lModuleValue(p_Tree))
|
||||
#define M_lDsgVarIdInterpret(p_Tree) (M_GetSetParam_lDsgVarIdValue(p_Tree))
|
||||
#define M_ActionInterpret(p_Tree) (M_GetSetParam_ActionValue(p_Tree))
|
||||
#define M_xMaskInterpret(p_Tree) (M_GetSetParam_xMaskValue(p_Tree))
|
||||
#define M_hLipSynchroHandleIdInterpret(p_Tree) (M_GetSetParam_hLipsSynchro(p_Tree))
|
||||
#define M_hFamilyHandleIdInterpret(p_Tree) (M_GetSetParam_hFamily(p_Tree))
|
||||
#define M_SuperObjectInterpret(p_Tree) (M_GetSetParam_SuperObjectValue(p_Tree))
|
||||
#define M_lChannelInterpret(p_Tree) (M_GetSetParam_lChannelValue(p_Tree))
|
||||
#define M_SoundEventInterpret(p_Tree) (M_GetSetParam_SoundEvent(p_Tree))
|
||||
#define M_ComportInterpret(p_Tree) (M_GetSetParam_pComport(p_Tree))
|
||||
#define M_TextInterpret(p_Tree) (M_GetSetParam_hText(p_Tree))
|
||||
#define M_ParticleGeneratorInterpret(p_Tree) (M_GetSetParam_hParticleGenerator(p_Tree))
|
||||
#define M_GameMaterialInterpret(p_Tree) (M_GetSetParam_hGameMaterial(p_Tree))
|
||||
#define M_ObjectTableInterpret(p_Tree) (M_GetSetParam_hObjectTable(p_Tree))
|
||||
#define M_ColorValueInterpret(p_Tree) (M_GetSetParam_ColorValue(p_Tree))
|
||||
#define M_p_stModelInterpret(p_Tree) (M_GetSetParam_p_stModel(p_Tree))
|
||||
#define M_ClearNodeInterpret(p_Tree) memset((void*) (p_Tree),0,sizeof(struct tdstNodeInterpret_));
|
||||
#define M_IsTheEndOfTree(p_Tree) (M_GetTypeInterpret(p_Tree) == E_ti_EndTree)
|
||||
#define M_p_stLightInterpret(p_Tree) (M_GetSetParam_LightValue(p_Tree))
|
||||
#define M_ulCapsInterpret(p_Tree) (M_GetSetParam_CapsValue(p_Tree))
|
||||
#define M_p_stGraphInterpret(p_Tree) (M_GetSetParam_GraphValue(p_Tree))
|
||||
#define M_p_stMacroInterpret(p_Tree) (M_GetSetParam_p_stMacroValue(p_Tree))
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Usefull misc. definitions */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#if defined(__DEBUG_AI__)
|
||||
#define M_VerifyNbParamAction(p_stTree, NParam) \
|
||||
if (fn_ucGetTreeNbParam((p_stTree)) != NParam) \
|
||||
{ \
|
||||
M_AIFatalError(E_uwAIFatalWrongParamAction); \
|
||||
}
|
||||
|
||||
#define M_VerifyTypeOfParamAction(p_stParam, eType) \
|
||||
if (M_GetSetParam_Type(p_stParam) != eType) \
|
||||
{ \
|
||||
M_AIFatalError(E_uwAIFatalWrongTypeParamAction); \
|
||||
}
|
||||
|
||||
#define M_Verify2TypesOfParamAction(p_stParam, eType1, eType2) \
|
||||
if ( (M_GetSetParam_Type(p_stParam) != eType1) && (M_GetSetParam_Type(p_stParam) != eType2) ) \
|
||||
{ \
|
||||
M_AIFatalError(E_uwAIFatalWrongTypeParamAction); \
|
||||
}
|
||||
#else
|
||||
#define M_VerifyNbParamAction(p_stTree, NParam)
|
||||
#define M_VerifyTypeOfParamAction(p_stParam, eType)
|
||||
#define M_Verify2TypesOfParamAction(p_stParam, eType1, eType2)
|
||||
#endif /* __DEBUG_AI__*/
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Structures definitions */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#include "EnumType.h"
|
||||
|
||||
typedef union tduIdInterpret_
|
||||
{
|
||||
enum tdeCondId_ eCondId;
|
||||
enum tdeKeyWordId_ eKeyWordId;
|
||||
enum tdeOperatorId_ eOperatorId;
|
||||
enum tdeFuncId_ eFuncId;
|
||||
enum tdeProcedureId_ eProcedureId;
|
||||
enum tdeFieldId_ eFieldId;
|
||||
enum tdeMetaActionId_ eMetaActionId;
|
||||
IPT_tdxHandleToEntryElement hInputAction;
|
||||
} tduIdInterpret;
|
||||
|
||||
typedef struct tdstNodeInterpret_
|
||||
{
|
||||
union
|
||||
{
|
||||
union tduIdInterpret_ uId;
|
||||
union tduGetSetParamForNode_ uParam; /*this trick allow us to have sizeof(uParam)=4 instead of 12 : great for U64*/
|
||||
}
|
||||
#if defined(U64)
|
||||
uDummy
|
||||
#endif
|
||||
;
|
||||
/* this trick allow us to have sizeof(eType)=1 instead of 4 : it is benefit if we respect alignment : great for U64*/
|
||||
#if defined(__DEBUG_AI__)
|
||||
enum tdeTypeInterpret_ eType;
|
||||
#endif /* __DEBUG_AI__*/
|
||||
#if defined(OPTIMIZE_SWAP_PARAMETER)
|
||||
unsigned short uwNodeToSkip;
|
||||
#endif /* OPTIMIZE_SWAP_PARAMETER*/
|
||||
unsigned char ucDepth;
|
||||
#if !defined(__DEBUG_AI__)
|
||||
unsigned char eType;
|
||||
#endif
|
||||
#if defined(ACTIVE_AIDEBUG)
|
||||
ACP_tdxBool bBreakPoint; /**** DR ****/
|
||||
#endif /*ACTIVE_AIDEBUG*/
|
||||
|
||||
} tdstNodeInterpret;
|
||||
|
||||
typedef struct tdstTreeInterpret_
|
||||
{
|
||||
struct tdstNodeInterpret_ *p_stNodeInterpret;
|
||||
#if !defined(OPTIMIZE_NB_NODES)
|
||||
unsigned short uwNbNode; /* For debug*/
|
||||
#endif
|
||||
} tdstTreeInterpret;
|
||||
|
||||
typedef struct tdstMacro_
|
||||
{
|
||||
#if defined(__DEBUG_AI__)
|
||||
char szName[256];
|
||||
#endif
|
||||
struct tdstTreeInterpret_ *p_stInitTree;
|
||||
struct tdstTreeInterpret_ *p_stCurrentTree;
|
||||
} tdstMacro;
|
||||
|
||||
typedef struct tdstListOfMacro_
|
||||
{
|
||||
struct tdstMacro_ *p_stMacro;
|
||||
unsigned char ucNbMacro; /* For second pass.*/
|
||||
} tdstListOfMacro;
|
||||
|
||||
typedef struct tdstComport_
|
||||
{
|
||||
#if defined(__DEBUG_AI__)
|
||||
char szName[256];
|
||||
#endif
|
||||
struct tdstTreeInterpret_ *p_stRules;
|
||||
/* For Schedule.*/
|
||||
struct tdstTreeInterpret_ *p_stSchedule;
|
||||
//XB 05/08/99
|
||||
#ifndef D_THROW_CFAST_AI
|
||||
//End XB
|
||||
long CFast_lMyIndex;
|
||||
//XB 05/08/99
|
||||
#endif /* D_THROW_CFAST_AI */
|
||||
//End XB
|
||||
unsigned char ucNbRules;
|
||||
} tdstComport;
|
||||
|
||||
typedef struct tdstScriptAI_
|
||||
{
|
||||
struct tdstComport_ *p_stComport;
|
||||
unsigned long ulNbComport;
|
||||
unsigned long ulNoComportInitDefault;
|
||||
unsigned char ucActionTableNbEntry;
|
||||
} tdstScriptAI;
|
||||
|
||||
typedef struct tdstIntelligence_
|
||||
{
|
||||
struct tdstScriptAI_ **p_p_stScriptAI;
|
||||
struct tdstNodeInterpret_ *p_stCurrentSchedule;
|
||||
struct tdstComport_ *p_stCurrentComport;
|
||||
/* Current comport when we execute the last ChangeComport.*/
|
||||
struct tdstComport_ *p_stPrevComport;
|
||||
struct tdstActionTable_ *p_stActionTable;
|
||||
unsigned long ulNoComportInit;
|
||||
} tdstIntelligence;
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Strintel.c functions*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/*EXTERN_AI_DLL CPA_EXPORT */
|
||||
void fn_vReinitComport(struct tdstIntelligence_ *p_stIntelligence);
|
||||
unsigned char fn_ucChangeComportIntell(struct tdstIntelligence_ *p_stIntelligence, struct tdstComport_ *p_stComport);
|
||||
|
||||
unsigned char fn_ucGetTreeNbParam(struct tdstNodeInterpret_ *p_stTree);
|
||||
|
||||
#if defined(OPTIMIZE_NB_NODES)
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned short fn_uwGetNbNodeInterpret(struct tdstTreeInterpret_ *p_stTree);
|
||||
#endif /* OPTIMIZE_NB_NODES*/
|
||||
|
||||
|
||||
/**************************************************************/
|
||||
/* AI init functions used by allocations */
|
||||
/**************************************************************/
|
||||
/*
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vInitComport(struct tdstComport_ *p_stComport);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vInitRule(struct tdstTreeInterpret_ *p_stRule);
|
||||
*/
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vInitNodeInterpret(struct tdstNodeInterpret_ *p_stNode, long lVal, enum tdeTypeInterpret_ eTypeInterpret, unsigned char ucDepth);
|
||||
|
||||
/*
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFullInitNodeInterpret(struct tdstIntelligence_ *p_stIntelligence,
|
||||
unsigned long ulNbComport,
|
||||
unsigned char ucNbRules,
|
||||
unsigned short uwNbNode,
|
||||
long lVal,
|
||||
enum tdeTypeInterpret_ eTypeInterpret,
|
||||
unsigned char ucDepth);
|
||||
*/
|
||||
|
||||
|
||||
/**************************************************************/
|
||||
/* AI allocation functions for macros : */
|
||||
/**************************************************************/
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vAllocListOfMacro(struct AI_tdstMind_ *p_stMind, unsigned char ucNbMacro);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vAllocNodeMacro(tdstMacro *p_stMacro, unsigned short ucNbNode);
|
||||
EXTERN_AI_DLL CPA_EXPORT struct tdstListOfMacro_ *fn_p_stAllocListOfMacro(unsigned char ucNbMacro);
|
||||
|
||||
/**************************************************************/
|
||||
/* AI allocation functions : */
|
||||
/**************************************************************/
|
||||
EXTERN_AI_DLL CPA_EXPORT struct AI_tdstAIModel_ *fn_p_stAllocAIModel();
|
||||
EXTERN_AI_DLL CPA_EXPORT struct tdstScriptAI_ *fn_p_stAllocScriptAI(unsigned char ucActionTableNbEntry);
|
||||
EXTERN_AI_DLL CPA_EXPORT struct tdstIntelligence_ *fn_p_stAllocIntelligence(struct tdstScriptAI_ **p_p_stScriptAI,unsigned char ucActionTableNbEntry);
|
||||
EXTERN_AI_DLL CPA_EXPORT struct tdstActionTableEntry_ *fn_p_stAllocActionTableEntry(unsigned char ucActionTableEntry);
|
||||
EXTERN_AI_DLL CPA_EXPORT struct tdstActionTable_ *fn_p_stAllocActionTable(unsigned char ucActionTableNbEntry);
|
||||
EXTERN_AI_DLL CPA_EXPORT struct tdstComport_ *fn_p_stAllocComport(unsigned long ulNbComport);
|
||||
EXTERN_AI_DLL CPA_EXPORT struct tdstTreeInterpret_ *fn_p_stAllocRule(unsigned char ucNbRules);
|
||||
EXTERN_AI_DLL CPA_EXPORT struct tdstNodeInterpret_ *fn_p_stAllocNodeInterpret(unsigned short uwNbNode);
|
||||
EXTERN_AI_DLL CPA_EXPORT struct tdstTreeInterpret_ *fn_p_stAllocSchedule(unsigned short uwNbNode);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vCreateNodeString(struct tdstNodeInterpret_ *p_stNode, char *szString);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vCreateNodeVector(struct tdstNodeInterpret_ *p_stNode);
|
||||
|
||||
#ifdef ACTIVE_EDITOR
|
||||
/**************************************************************/
|
||||
/* AI deallocation functions : */
|
||||
/**************************************************************/
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeNodeContent(struct tdstNodeInterpret_ *p_stNode);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeNodeInterpretAll(struct tdstNodeInterpret_ **p_p_stNode,unsigned short uwNbNodes);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeRuleContent(struct tdstTreeInterpret_ *p_stRules);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeRuleAll(struct tdstTreeInterpret_ **p_p_stRules,unsigned char ucNbRules);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeScheduleContent(struct tdstTreeInterpret_ *p_stSchedule);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeScheduleAll(struct tdstTreeInterpret_ **p_p_stSchedule);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeComportContent(struct tdstComport_ *p_stComport);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeComportAll(struct tdstComport_ **p_p_stComport,unsigned long ulNbComport);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeScriptAIContent(struct tdstScriptAI_ *p_stScriptAI);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeScriptAIAll(struct tdstScriptAI_ **p_p_stScriptAI);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeAIModelContent(struct AI_tdstAIModel_ *p_stAIModel);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeAIModelAll(struct AI_tdstAIModel_ **p_p_stAIModel);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeActionTableEntryContent(struct tdstActionTableEntry_ *p_stActionTableEntry);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeActionTableEntryAll(struct tdstActionTableEntry_ **p_p_stActionTableEntry,unsigned ucActionTableNbEntry);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeActionTableContent(struct tdstActionTable_ *p_stActionTable);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeActionTableAll(struct tdstActionTable_ **p_p_stActionTable);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeIntelligenceContent(struct tdstIntelligence_ *p_stIntelligence);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeIntelligenceAll(struct tdstIntelligence_ **p_p_stIntelligence);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeReflexAll(struct tdstIntelligence_ **p_p_stReflex);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeMindContent(struct AI_tdstMind_ *p_stMind);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeMindAll(struct AI_tdstMind_ **p_p_stMind);
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
|
||||
/*******************************************************************/
|
||||
/* AI allocation and deallocation functions for variable designer: */
|
||||
/*******************************************************************/
|
||||
/* allocations*/
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vAllocVariableDesigner(struct AI_tdstMind_ *p_stMind,unsigned long ulSizeDsgMem,unsigned char ucNbParam);
|
||||
EXTERN_AI_DLL CPA_EXPORT struct tdstDsgVarInfo_ *fn_p_stAllocDsgVarInfo(unsigned char ucNbDsgVar);
|
||||
EXTERN_AI_DLL CPA_EXPORT struct tdstDsgVar_ *fn_p_stAllocDsgVar(unsigned long ulSize,unsigned char ucNbDsgVar);
|
||||
EXTERN_AI_DLL CPA_EXPORT char *fn_p_cAllocDsgMemBuffer(unsigned long ulSize);
|
||||
EXTERN_AI_DLL CPA_EXPORT struct tdstDsgMem_ *fn_p_stAllocDsgMem(struct tdstDsgVar_ **p_p_stDsgVar,unsigned long ulSize);
|
||||
|
||||
|
||||
#ifdef ACTIVE_EDITOR
|
||||
/* deallocations*/
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeDesignerVariable(struct AI_tdstMind_ *p_stMind);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeDsgVarInfoContent(struct tdstDsgVarInfo_ *p_stDsgVarInfo);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeDsgVarInfoAll(struct tdstDsgVarInfo_ **p_p_stDsgVarInfo,unsigned char ucNbDsgVar);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeDsgVarContent(struct tdstDsgVar_ *p_stDsgVar);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeDsgVarAll(struct tdstDsgVar_ **p_p_stDsgVar);
|
||||
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeDsgMemBuffer(char **p_p_cDsgMemBuffer);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeDsgMemContent(struct tdstDsgMem_ *p_stDsgMem);
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vFreeDsgMemAll(struct tdstDsgMem_ **p_p_stDsgMem);
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
|
||||
/*******************************************************************************/
|
||||
#undef EXTERN_AI_DLL
|
||||
|
||||
#endif /* __STRINTEL_H__*/
|
56
Rayman_X/cpa/public/AI/AIBase/VarType.h
Normal file
56
Rayman_X/cpa/public/AI/AIBase/VarType.h
Normal file
@@ -0,0 +1,56 @@
|
||||
#if !defined(__VAR_TYPE_H__)
|
||||
#define __VAR_TYPE_H__
|
||||
|
||||
typedef enum tdeVariableType_{
|
||||
E_vt_None=0,
|
||||
E_vt_Boolean, /*TRUE or FALSE value. a char is used, after we will use a bit field*/
|
||||
E_vt__128To127, /*char */
|
||||
E_vt_0To255, /*unsigned char*/
|
||||
E_vt__32768To32767, /*short*/
|
||||
E_vt_0To65535, /*unsigned short */
|
||||
E_vt_Integer, /*long*/
|
||||
E_vt_PositiveInteger, /*unsigned long*/
|
||||
E_vt_Float, /* MTH_tdxReal for example for store a distance*/
|
||||
E_vt_String, /* char **/
|
||||
E_vt_WayPoint, /* handle to a waypoint*/
|
||||
E_vt_Perso, /* tdstPerso * : pointer at a perso*/
|
||||
E_vt_List, /*List of C_ucSizeOfMinimalList element. E_vt_List+n specifies a list with C_ucSizeOfMinimalList+n-2 elements*/
|
||||
E_vt_1bit, /* 1 bit*/
|
||||
E_vt_2bit, /* 2 bit*/
|
||||
E_vt_3bit, /* 3 bit*/
|
||||
E_vt_4bit, /* 4 bit*/
|
||||
E_vt_5bit, /* 5 bit*/
|
||||
E_vt_6bit, /* 6 bit*/
|
||||
E_vt_7bit, /* 7 bit*/
|
||||
E_vt_MetaActionReturn, /*unsigned char*/
|
||||
E_vt_Vector, /* MTH3D_tdstVector*/
|
||||
E_vt_Module, /* long*/
|
||||
E_vt_DsgVarId, /* long*/
|
||||
E_vt_Action, /* tdxHandleToState*/
|
||||
E_vt_Button,
|
||||
E_vt_Mask, /* GMTMask*/
|
||||
E_vt_Surface,
|
||||
E_vt_LipsSynchro, /* CGHT*/
|
||||
E_vt_ObjectTable, /* CGHT*/
|
||||
/*E_vt_Sector,*/
|
||||
E_vt_SuperObject, /* for object*/
|
||||
E_vt_Environment,
|
||||
E_vt_Family,
|
||||
E_vt_SoundEvent,
|
||||
E_vt_Comport,
|
||||
E_vt_Font,
|
||||
E_vt_Text,
|
||||
E_vt_ParticleGenerator, /* JO 09/10/97*/
|
||||
E_vt_GameMaterial,
|
||||
E_vt_Color,
|
||||
E_vt_Model,
|
||||
E_vt_Array,
|
||||
E_vt_Light,
|
||||
E_vt_Caps,
|
||||
E_vt_Graph,
|
||||
/*********************************/
|
||||
E_Nb_vt /* MUST BE AT END */
|
||||
/*********************************/
|
||||
} tdeVariableType;
|
||||
|
||||
#endif /* __VAR_TYPE_H__*/
|
79
Rayman_X/cpa/public/AI/AIBase/WPEngDsp.h
Normal file
79
Rayman_X/cpa/public/AI/AIBase/WPEngDsp.h
Normal file
@@ -0,0 +1,79 @@
|
||||
/***********************************************************************************************/
|
||||
/* File Name : WPEngDsp.h*/
|
||||
/* Goal : Header file for displaying Waypoints in the 3D Engine*/
|
||||
/* Author : Marc FASCIA*/
|
||||
/* Date : 04/03/98*/
|
||||
/***********************************************************************************************/
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#if !defined(__WP_ENGINE_DISPLAY__)
|
||||
#define __WP_ENGINE_DISPLAY__
|
||||
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
INCLUDE FILES :
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#include "Acp_Base.h"
|
||||
#include "MTH.h"
|
||||
#include "POS.h"
|
||||
#include "GLI.h"
|
||||
#include "GLD.h"
|
||||
#include "SPO.h"
|
||||
|
||||
/***********************************************************************************************/
|
||||
/* Name : WP_SendWaypointsToViewport*/
|
||||
/* Description : Displays the Geo Objs for WP*/
|
||||
/* Author : Marc FASCIA*/
|
||||
/* Date : 04/03/98*/
|
||||
/* Optimized ? : No*/
|
||||
/***********************************************************************************************/
|
||||
void WP_SendWaypointsToViewport( GLD_tdstViewportAttributes * p_stViewport, unsigned long ulDrawMask );
|
||||
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
---------------------- OLD VERSION ---------------------------
|
||||
--------------------------------------------------------------
|
||||
|
||||
#ifndef HieFriend
|
||||
#define HieFriend
|
||||
#endif
|
||||
#include "SPO.h"
|
||||
#include "SPO\HieSpObj.h"
|
||||
|
||||
#include "Acp_Base.h"
|
||||
#include "MTH.h"
|
||||
#include "POS.h"
|
||||
#include "GLI.h"
|
||||
#include "GLD.h"
|
||||
|
||||
#define _WP_D_WAYPOINT_FRIEND_
|
||||
|
||||
// *********************************************************************************************
|
||||
// Name : WP_WPAttachInHierarchy
|
||||
// Description : Adds the WP SPO in the SPO hierarchy
|
||||
// *********************************************************************************************
|
||||
void WP_WPAttachInHierarchy( HIE_tdstSuperObject * p_stRootSPO );
|
||||
|
||||
// *********************************************************************************************
|
||||
// Name : WP_WPIsolateFromHierarchy
|
||||
// Description : Removes the WP SPO in the SPO hierarchy
|
||||
// *********************************************************************************************
|
||||
void WP_WPIsolateFromHierarchy();
|
||||
|
||||
---------------------------------------------------------
|
||||
------------- END OF OLD VERSION ------------------------
|
||||
---------------------------------------------------------*/
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __WP_ENGINE_DISPLAY__*/
|
||||
|
318
Rayman_X/cpa/public/AI/AIBase/WPWayPt.h
Normal file
318
Rayman_X/cpa/public/AI/AIBase/WPWayPt.h
Normal file
@@ -0,0 +1,318 @@
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
HEADER FILE FOR :
|
||||
Definition of functions and sturctures for waypoints
|
||||
------------------------------------------------------------------------------------------
|
||||
File Name :
|
||||
WPWayPt.h
|
||||
------------------------------------------------------------------------------------------
|
||||
Creation :
|
||||
* Date :
|
||||
March 10, 1997
|
||||
* Author :
|
||||
Albert PAIS
|
||||
------------------------------------------------------------------------------------------
|
||||
Contents :
|
||||
This files defines functions and structures for managing waypoints.
|
||||
------------------------------------------------------------------------------------------
|
||||
Remarks :
|
||||
Part of code comes from previous waypoint.c/.h
|
||||
------------------------------------------------------------------------------------------
|
||||
See Also :
|
||||
WPWayPt.c for implementation
|
||||
------------------------------------------------------------------------------------------
|
||||
Module tag :
|
||||
WP
|
||||
------------------------------------------------------------------------------------------
|
||||
Modification :
|
||||
* Date :
|
||||
* Author :
|
||||
* Modify :
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/* in order to compile AI in C++ and link with GAM in C*/
|
||||
#if defined(__cplusplus)
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#if !defined(__WPWAYPT_TYPES__)
|
||||
#define __WPWAYPT_TYPES__
|
||||
|
||||
#if !defined(ONLY_TYPES)
|
||||
#define WPWAYPT_UNDEF
|
||||
#define ONLY_TYPES
|
||||
#endif /* !ONLY_TYPES */
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
INCLUDE FILES :
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
#include "Acp_Base.h"
|
||||
#include "SPO.h"
|
||||
/*#include "SCR.h"*/
|
||||
#include "MTH.h"
|
||||
|
||||
/*
|
||||
----------------------------------------
|
||||
File Name :
|
||||
WP_Handl.h
|
||||
----------------------------------------
|
||||
Required for :
|
||||
Defines waypoint handles.
|
||||
----------------------------------------
|
||||
*/
|
||||
#define _WP_D_DEFINE_WAYPOINTS_
|
||||
#include "WP_Handl.h"
|
||||
#include "WP_Func.h"
|
||||
|
||||
|
||||
#if defined(WPWAYPT_UNDEF)
|
||||
#undef ONLY_TYPES
|
||||
#undef WPWAYPT_UNDEF
|
||||
#endif /* !WPWAYPT_UNDEF */
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
TYPE AND STRUCTURE DEFINITION :
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
/*
|
||||
----------------------------------------
|
||||
Type definition :
|
||||
Waypoint structure and handle
|
||||
----------------------------------------
|
||||
Structure Name :
|
||||
WP_tdstWayPoint_
|
||||
Type def :
|
||||
WP_tdstWayPoint
|
||||
Handle :
|
||||
WP_tdhWayPoint
|
||||
----------------------------------------
|
||||
Creation Date :
|
||||
March 10,1997
|
||||
Author :
|
||||
Albert PAIS
|
||||
----------------------------------------
|
||||
Members :
|
||||
* Type : MTH3D_tdstVector
|
||||
Name : m_stVertex
|
||||
Meaning : The position of the waypoint
|
||||
* Type : MTH_tdxReal
|
||||
Name : m_xRadius
|
||||
Meaning : The raidus of the waypoint
|
||||
* Type : HIE_tdxHandleToSuperObject
|
||||
Name : m_hSuperObject
|
||||
Meaning : The owner of the waypoint
|
||||
(invalid value if the waypoint is
|
||||
static).
|
||||
* Type : unsigned char
|
||||
Name : m_ucUsedCount
|
||||
Meaning : The used count of the waypoint
|
||||
---------------------------------------
|
||||
*/
|
||||
#ifdef _WP_D_WAYPOINT_FRIEND_
|
||||
typedef struct WP_tdstWayPoint_
|
||||
{
|
||||
/* ANNECY AV {*/
|
||||
/* struct GEO_tdstGeometricObject_ *m_p_stGeoObj; Not used anymore*/
|
||||
/* END ANNECY AV }*/
|
||||
MTH3D_tdstVector m_stVertex;
|
||||
MTH_tdxReal m_xRadius;
|
||||
HIE_tdxHandleToSuperObject m_hSuperObject;
|
||||
/* ANNECY AV {*/
|
||||
/* unsigned char m_ucUsedCount; // Not used anymore*/
|
||||
/* END ANNECY AV }*/
|
||||
}WP_tdstWayPoint;
|
||||
#endif /* _WP_D_WAYPOINT_FRIEND_ */
|
||||
/* allready defined in WP_Handl.h
|
||||
typedef struct WP_tdstWayPoint_* WP_tdhWayPoint;
|
||||
*/
|
||||
|
||||
#endif /* !__WPWAYPT_TYPES__ */
|
||||
|
||||
#if !defined(ONLY_TYPES)
|
||||
|
||||
#if !defined(__WPWAYPT_VARS__)
|
||||
#define __WPWAYPT_VARS__
|
||||
|
||||
#undef WP_WAYPOINT_EXTERN
|
||||
#undef extern
|
||||
#if !defined(WP_D_WAYPOINT_GLOBALS_)
|
||||
#define WP_WAYPOINT_EXTERN extern
|
||||
#else /* !WP_D_WAYPOINT_GLOBALS_ */
|
||||
#define WP_WAYPOINT_EXTERN
|
||||
#endif /* !WP_D_WAYPOINT_GLOBALS_ */
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
VARIABLE DECLARATION :
|
||||
<type> <variable name>
|
||||
#if defined(WP_D_WAYPOINT_GLOBALS_)
|
||||
= <initial values>
|
||||
#endif
|
||||
;
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
MACROS-CONSTANT DECLARATION:
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
/* allready defined in WP_Handl.h
|
||||
#define WP_C_hWayPointInvalid ((WP_tdhWayPoint)0)
|
||||
*/
|
||||
|
||||
#undef extern
|
||||
#endif /* !__WPWAYPT_VARS__ */
|
||||
|
||||
#if !defined (__WPWAYPT_PROTOS__)
|
||||
#define __WPWAYPT_PROTOS__
|
||||
|
||||
/****************************************/
|
||||
#if !defined(CPA_EXPORT)
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
|
||||
#endif /*CPA_EXPORT*/
|
||||
/****************************************/
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
MACROS-FUNCTIONS DECLARATION:
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
#if defined(_WP_D_WAYPOINT_FRIEND_)
|
||||
/* Friend modules can access directly to the field :*/
|
||||
#define WP_M_vWayPointGetStructureField(_hWayPt,_pxPointer,_SlotName)\
|
||||
(*(_pxPointer) = (_hWayPt)->m_st##_SlotName)
|
||||
#define WP_M_xWayPointGetScalarField(_hWayPt,_Prefix,_SlotName)\
|
||||
((_hWayPt)->m_##_Prefix ##_SlotName)
|
||||
#define WP_M_vWayPointSetStructureField(_hWayPt,_pxPointer,_SlotName)\
|
||||
((_hWayPt)->m_st##_SlotName = *(_pxPointer))
|
||||
#define WP_M_vWayPointSetScalarField(_hWayPt,_xScalar,_Prefix,_SlotName)\
|
||||
((_hWayPt)->m_##_Prefix ##_SlotName = (_xScalar))
|
||||
|
||||
#define WP_M_uwWayPointSizeOf()\
|
||||
((unsigned short)(sizeof(struct WP_tdstWayPoint_)))
|
||||
|
||||
|
||||
#else /* _WP_D_WAYPOINT_FRIEND_ */
|
||||
/* Non friend modules accesss fields through functions */
|
||||
#define WP_M_vWayPointGetStructureField(_hWayPt,_pxPointer,_SlotName)\
|
||||
(WP_fnv_WayPoint_Get##_SlotName(_hWayPt,_pxPointer))
|
||||
#define WP_M_xWayPointGetScalarField(_hWayPt,_Prefix,_SlotName)\
|
||||
(WP_fn##_Prefix_WayPoint_Get##_SlotName(_hWayPt))
|
||||
#define WP_M_vWayPointSetStructureField(_hWayPt,_pxPointer,_SlotName)\
|
||||
(WP_fnv_WayPoint_Set##_SlotName(_hWayPt,_pxPointer))
|
||||
#define WP_M_vWayPointSetScalarField(_hWayPt,_xScalar,_Prefix,_SlotName)\
|
||||
(WP_fnv_WayPoint_Set##_SlotName(_hWayPt,_xScalar))
|
||||
|
||||
#define WP_M_uwWayPointSizeOf()\
|
||||
WP_fnuw_WayPoint_SizeOf()
|
||||
#endif /* _WP_D_WAYPOINT_FRIEND_ */
|
||||
|
||||
/* accessing to fields :*/
|
||||
#define WP_M_vWayPointGetVertex(_hWayPt,_pstVertex)\
|
||||
WP_M_vWayPointGetStructureField(_hWayPt,_pstVertex,Vertex)
|
||||
#define WP_M_vWayPointSetVertex(_hWayPt,_pstNuevoVertex)\
|
||||
WP_M_vWayPointSetStructureField(_hWayPt,_pstNuevoVertex,Vertex)
|
||||
|
||||
#define WP_M_xWayPointGetRadius(_hWayPt)\
|
||||
WP_M_xWayPointGetScalarField(_hWayPt,x,Radius)
|
||||
#define WP_M_vWayPointSetRadius(_hWayPt,_xNuevoRadius)\
|
||||
WP_M_vWayPointSetScalarField(_hWayPt,_xNuevoRadius,x,Radius)
|
||||
|
||||
#define WP_M_hWayPointGetSuperObject(_hWayPt)\
|
||||
WP_M_xWayPointGetScalarField(_hWayPt,h,SuperObject)
|
||||
#define WP_M_vWayPointSetSuperObject(_hWayPt,_hNuevoSuperObj)\
|
||||
WP_M_vWayPointSetScalarField(_hWayPt,_hNuevoSuperObj,h,SuperObject)
|
||||
|
||||
#define WP_M_ucWayPointGetUsedCount(_hWayPt)\
|
||||
WP_M_xWayPointGetScalarField(_hWayPt,uc,UsedCount)
|
||||
#define WP_M_vWayPointSetUsedCount(_hWayPt,_ucNuevoUsedCount)\
|
||||
WP_M_vWayPointSetScalarField(_hWayPt,_ucNuevoUsedCount,uc,UsedCount)
|
||||
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
FUNCTIONS DECLARATION:
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
CPA_EXPORT void fn_vDrawWayPoint(struct WP_tdstWayPoint_ *p_stWayPt);
|
||||
/* creation function :*/
|
||||
CPA_EXPORT WP_tdhWayPoint WP_fnh_WayPoint_Create(void);
|
||||
/* destruction */
|
||||
CPA_EXPORT void WP_fnv_WayPoint_Destroy(WP_tdhWayPoint);
|
||||
/* add reference and release */
|
||||
CPA_EXPORT void WP_fnv_WayPoint_AddRef(WP_tdhWayPoint);
|
||||
CPA_EXPORT void WP_fnv_WayPoint_Release(WP_tdhWayPoint);
|
||||
/* "constructor" : */
|
||||
CPA_EXPORT WP_tdhWayPoint WP_fnh_WayPoint_Build(MTH3D_tdstVector*,MTH_tdxReal,HIE_tdxHandleToSuperObject);
|
||||
/* duplicate : */
|
||||
CPA_EXPORT WP_tdhWayPoint WP_fnh_WayPoint_Duplicate(WP_tdhWayPoint);
|
||||
/* copy */
|
||||
CPA_EXPORT void WP_fnv_WayPoint_Copy(WP_tdhWayPoint,WP_tdhWayPoint);
|
||||
/* sizeof */
|
||||
CPA_EXPORT unsigned short WP_fnuw_WayPoint_SizeOf(void);
|
||||
/* accessing to members :*/
|
||||
CPA_EXPORT void WP_fnv_WayPoint_GetVertex(WP_tdhWayPoint,MTH3D_tdstVector*);
|
||||
CPA_EXPORT void WP_fnv_WayPoint_SetVertex(WP_tdhWayPoint,MTH3D_tdstVector*);
|
||||
|
||||
CPA_EXPORT MTH_tdxReal WP_fnx_WayPoint_GetRadius(WP_tdhWayPoint);
|
||||
CPA_EXPORT void WP_fnv_WayPoint_SetRadius(WP_tdhWayPoint,MTH_tdxReal);
|
||||
|
||||
CPA_EXPORT HIE_tdxHandleToSuperObject WP_fnh_WayPoint_GetSuperObject(WP_tdhWayPoint);
|
||||
CPA_EXPORT void WP_fnv_WayPoint_SetSuperObject(WP_tdhWayPoint,HIE_tdxHandleToSuperObject);
|
||||
|
||||
CPA_EXPORT unsigned char WP_fnuc_WayPoint_GetUsedCount(WP_tdhWayPoint);
|
||||
CPA_EXPORT void WP_fnv_WayPoint_SetUsedCount(WP_tdhWayPoint,unsigned char);
|
||||
|
||||
/* validity of handles : */
|
||||
CPA_EXPORT void WP_fnv_WayPoint_Invalidate(WP_tdhWayPoint*);
|
||||
CPA_EXPORT ACP_tdxBool WP_fnb_WayPoint_IsValid(WP_tdhWayPoint);
|
||||
CPA_EXPORT ACP_tdxBool WP_fnb_WayPoint_IsInvalid(WP_tdhWayPoint);
|
||||
|
||||
CPA_EXPORT ACP_tdxBool WP_fnb_WayPoint_IsDynamic(WP_tdhWayPoint);
|
||||
CPA_EXPORT ACP_tdxBool WP_fnb_WayPoint_IsStatic(WP_tdhWayPoint);
|
||||
|
||||
/* loading waypoints */
|
||||
#if !defined(U64)
|
||||
CPA_EXPORT SCR_tde_Anl_ReturnValue WP_fne_WayPoint_ScriptCallBackLoad(SCR_tdst_File_Description *,char *,char **, SCR_tde_Anl_Action);
|
||||
CPA_EXPORT SCR_tde_Anl_ReturnValue WP_fne_WayPoint_ScriptSubSectionCallBackLoad(SCR_tdst_File_Description *,char *,char **, SCR_tde_Anl_Action);
|
||||
/*ANNECY Bart 19/01/98 {*/
|
||||
CPA_EXPORT SCR_tde_Anl_ReturnValue WP_fne_WPGraph_ScriptCallBackLoad(SCR_tdst_File_Description *,char *,char **, SCR_tde_Anl_Action);
|
||||
CPA_EXPORT SCR_tde_Anl_ReturnValue WP_fne_WPSommet_ScriptCallBackLoad(SCR_tdst_File_Description *,char *,char **, SCR_tde_Anl_Action);
|
||||
CPA_EXPORT void WP_fn_vReloadWPGraph(char* szNameOfGraph);
|
||||
/*ENDANNECY Bart }*/
|
||||
|
||||
#endif /* U64 */
|
||||
|
||||
/* export link table */
|
||||
CPA_EXPORT struct SCR_tdst_Link_Table_ *WP_fnp_WayPoint_GetLinkTable (void);
|
||||
|
||||
/* add by jt*/
|
||||
/* compute second pass */
|
||||
/*CPA_EXPORT void WP_fnv_WayPoint_LinkTableSecondPass (void);*/
|
||||
|
||||
/* tools */
|
||||
CPA_EXPORT void WP_fnv_WayPoint_ComputeLocation(WP_tdhWayPoint,MTH3D_tdstVector*);
|
||||
|
||||
#endif /* !__WPWAYPT_PROTOS__ */
|
||||
|
||||
#endif /* !ONLY_TYPES */
|
||||
|
||||
|
||||
|
||||
/* in order to compile AI in C++ and link with GAM in C*/
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
245
Rayman_X/cpa/public/AI/AIBase/WP_Edi.h
Normal file
245
Rayman_X/cpa/public/AI/AIBase/WP_Edi.h
Normal file
@@ -0,0 +1,245 @@
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
HEADER FILE FOR :
|
||||
Prototype of waypoints, links and ways exported functions
|
||||
------------------------------------------------------------------------------------------
|
||||
File Name :
|
||||
WP_F_nc.h
|
||||
------------------------------------------------------------------------------------------
|
||||
Creation :
|
||||
* Date :
|
||||
March 14,1997
|
||||
* Author :
|
||||
Albert Pais
|
||||
------------------------------------------------------------------------------------------
|
||||
Contents :
|
||||
defines prototype and functions used for waypoints, links and
|
||||
ways
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/****************************************/
|
||||
#if !defined(CPA_EXPORT)
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
|
||||
#endif /*CPA_EXPORT*/
|
||||
/****************************************/
|
||||
|
||||
|
||||
|
||||
#if !defined(ONLY_TYPES)
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
WAYPOINT FUNCTIONS DECLARATION:
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
#ifdef _WP_D_DEFINE_WAYPOINTS_
|
||||
|
||||
#if !defined (__WP_WAYPOINTS_FUNCTIONS_PROTOS__)
|
||||
#define __WP_WAYPOINTS_FUNCTIONS_PROTOS__
|
||||
|
||||
/* creation function :*/
|
||||
CPA_EXPORT WP_tdhWayPoint WP_fnh_WayPoint_Create(void);
|
||||
/* destruction */
|
||||
CPA_EXPORT void WP_fnv_WayPoint_Destroy(WP_tdhWayPoint);
|
||||
/* add reference and release */
|
||||
CPA_EXPORT void WP_fnv_WayPoint_AddRef(WP_tdhWayPoint);
|
||||
CPA_EXPORT void WP_fnv_WayPoint_Release(WP_tdhWayPoint);
|
||||
|
||||
/* "constructor" : */
|
||||
CPA_EXPORT WP_tdhWayPoint WP_fnh_WayPoint_Build(MTH3D_tdstVector*,MTH_tdxReal,HIE_tdxHandleToSuperObject);
|
||||
/* duplicate : */
|
||||
CPA_EXPORT WP_tdhWayPoint WP_fnh_WayPoint_Duplicate(WP_tdhWayPoint);
|
||||
/* copy */
|
||||
CPA_EXPORT void WP_fnv_WayPoint_Copy(WP_tdhWayPoint,WP_tdhWayPoint);
|
||||
/* sizeof */
|
||||
CPA_EXPORT unsigned short WP_fnuw_WayPoint_SizeOf(void);
|
||||
/* accessing to members :*/
|
||||
CPA_EXPORT void WP_fnv_WayPoint_GetVertex(WP_tdhWayPoint,MTH3D_tdstVector*);
|
||||
CPA_EXPORT void WP_fnv_WayPoint_SetVertex(WP_tdhWayPoint,MTH3D_tdstVector*);
|
||||
|
||||
CPA_EXPORT MTH_tdxReal WP_fnx_WayPoint_GetRadius(WP_tdhWayPoint);
|
||||
CPA_EXPORT void WP_fnv_WayPoint_SetRadius(WP_tdhWayPoint,MTH_tdxReal);
|
||||
|
||||
CPA_EXPORT HIE_tdxHandleToSuperObject WP_fnh_WayPoint_GetSuperObject(WP_tdhWayPoint);
|
||||
CPA_EXPORT void WP_fnv_WayPoint_SetSuperObject(WP_tdhWayPoint,HIE_tdxHandleToSuperObject);
|
||||
|
||||
/* validity of handles : */
|
||||
CPA_EXPORT void WP_fnv_WayPoint_Invalidate(WP_tdhWayPoint*);
|
||||
CPA_EXPORT ACP_tdxBool WP_fnb_WayPoint_IsValid(WP_tdhWayPoint);
|
||||
CPA_EXPORT ACP_tdxBool WP_fnb_WayPoint_IsInvalid(WP_tdhWayPoint);
|
||||
|
||||
CPA_EXPORT ACP_tdxBool WP_fnb_WayPoint_IsDynamic(WP_tdhWayPoint);
|
||||
CPA_EXPORT ACP_tdxBool WP_fnb_WayPoint_IsStatic(WP_tdhWayPoint);
|
||||
|
||||
CPA_EXPORT SCR_tdst_Link_Table* WP_fnp_WayPoint_GetLinkTable (void);
|
||||
|
||||
/* loading waypoints */
|
||||
CPA_EXPORT SCR_tde_Anl_ReturnValue WP_fne_WayPoint_ScriptCallBackLoad
|
||||
(SCR_tdst_File_Description *,char *,char **, SCR_tde_Anl_Action);
|
||||
/* tools */
|
||||
CPA_EXPORT void WP_fnv_WayPoint_ComputeLocation(WP_tdhWayPoint,MTH3D_tdstVector*);
|
||||
|
||||
#endif /*__WP_WAYPOINTS_FUNCTIONS_PROTOS__ */
|
||||
|
||||
#endif /* _WP_D_DEFINE_WAYPOINTS_ */
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
LINK FUNCTIONS DECLARATION:
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
#ifdef _WP_D_DEFINE_LINKS_
|
||||
|
||||
#if !defined (__WP_LINKS_FUNCTIONS_PROTOS__)
|
||||
#define __WP_LINKS_FUNCTIONS_PROTOS__
|
||||
|
||||
/* creation function :*/
|
||||
CPA_EXPORT WP_tdhLink WP_fnh_Link_Create(void);
|
||||
/* destruction */
|
||||
CPA_EXPORT void WP_fnv_Link_Destroy(WP_tdhLink);
|
||||
/* add reference and release */
|
||||
CPA_EXPORT void WP_fnv_Link_AddRef(WP_tdhLink);
|
||||
CPA_EXPORT void WP_fnv_Link_Release(WP_tdhLink);
|
||||
/* "constructor" : */
|
||||
CPA_EXPORT WP_tdhLink WP_fnh_Link_Build(void *,ACP_tdstDynaParam*,WP_tde_ucConnectionType,WP_tde_ucConnectionDynamicType,WP_tduc_SamplingRate);
|
||||
/* duplicate : */
|
||||
CPA_EXPORT WP_tdhLink WP_fnh_Link_Duplicate(WP_tdhLink);
|
||||
/* copy */
|
||||
CPA_EXPORT void WP_fnv_Link_Copy(WP_tdhLink,WP_tdhLink);
|
||||
/* sizeof */
|
||||
CPA_EXPORT unsigned short WP_fnuw_Link_SizeOf(void);
|
||||
/* accessing to members :*/
|
||||
CPA_EXPORT void WP_fnv_Link_GetDynamicParameter(WP_tdhLink,ACP_tdstDynaParam*);
|
||||
CPA_EXPORT void WP_fnv_Link_SetDynamicParameter(WP_tdhLink,ACP_tdstDynaParam*);
|
||||
CPA_EXPORT WP_tde_ucConnectionType WP_fneuc_Link_GetConnectionType(WP_tdhLink);
|
||||
CPA_EXPORT void WP_fnv_Link_SetConnectionType(WP_tdhLink,WP_tde_ucConnectionType);
|
||||
|
||||
CPA_EXPORT WP_tde_ucConnectionDynamicType WP_fneuc_Link_GetConnectionDynamicType(WP_tdhLink);
|
||||
CPA_EXPORT void WP_fnv_Link_SetConnectionDynamicType(WP_tdhLink,WP_tde_ucConnectionDynamicType);
|
||||
|
||||
CPA_EXPORT unsigned char WP_fnuc_Link_GetCurrentSample(WP_tdhLink);
|
||||
CPA_EXPORT void WP_fnv_Link_SetCurrentSample(WP_tdhLink,unsigned char);
|
||||
|
||||
/* validity of handles : */
|
||||
CPA_EXPORT void WP_fnv_Link_Invalidate(WP_tdhLink*);
|
||||
CPA_EXPORT ACP_tdxBool WP_fnb_Link_IsValid(WP_tdhLink);
|
||||
CPA_EXPORT ACP_tdxBool WP_fnb_Link_IsInvalid(WP_tdhLink);
|
||||
|
||||
/* allocate fields :*/
|
||||
CPA_EXPORT void WP_fnv_Link_Allocate(WP_tdhLink,WP_tde_ucConnectionType,WP_tde_ucConnectionDynamicType);
|
||||
/* free structures : */
|
||||
CPA_EXPORT void WP_fnv_Link_Free(WP_tdhLink);
|
||||
|
||||
/* changing connection type :*/
|
||||
CPA_EXPORT void WP_fnv_Link_ChangeConnectionTypeBezier(WP_tdhLink,MTH3D_tdhBezierCurve);
|
||||
CPA_EXPORT MTH3D_tdhBezierCurve WP_fnv_Link_GetConnectionTypeBezierCurve(WP_tdhLink);
|
||||
CPA_EXPORT void WP_fnv_Link_ChangeConnectionTypeCircleArc(WP_tdhLink,MTH3D_tdhCircleArcCurve);
|
||||
CPA_EXPORT MTH3D_tdhCircleArcCurve WP_fnv_Link_GetConnectionTypeCircleArcCurve(WP_tdhLink);
|
||||
CPA_EXPORT void WP_fnv_Link_ChangeConnectionTypeStaticLineObject(WP_tdhLink,WP_tdhWayPoint);
|
||||
CPA_EXPORT WP_tdhWayPoint WP_fnv_Link_GetConnectionTypeStaticLineObjectWayPoint(WP_tdhLink);
|
||||
CPA_EXPORT void WP_fnv_Link_ChangeConnectionTypeDynamicLine(WP_tdhLink,WP_tdhWayPoint);
|
||||
CPA_EXPORT WP_tdhWayPoint WP_fnv_Link_GetConnectionTypeDynamicLineWayPoint(WP_tdhLink);
|
||||
|
||||
CPA_EXPORT void WP_fnv_Link_UpdateDynamicInfo(WP_tdhLink);
|
||||
|
||||
#endif /*__WP_LINKS_FUNCTIONS_PROTOS__ */
|
||||
|
||||
#endif /* _WP_D_DEFINE_LINKS_ */
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
WAY FUNCTIONS DECLARATION:
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
#ifdef _WP_D_DEFINE_WAYS_
|
||||
|
||||
#if !defined (__WP_WAYS_FUNCTIONS_PROTOS__)
|
||||
#define __WP_WAYS_FUNCTIONS_PROTOS__
|
||||
|
||||
/* creation function :*/
|
||||
CPA_EXPORT WP_tdhWay WP_fnh_Way_Create(void);
|
||||
/* destruction */
|
||||
CPA_EXPORT void WP_fnv_Way_Destroy(WP_tdhWay);
|
||||
/* add reference and release */
|
||||
CPA_EXPORT void WP_fnv_Way_AddRef(WP_tdhWay);
|
||||
CPA_EXPORT void WP_fnv_Way_Release(WP_tdhWay);
|
||||
/* current wp index : */
|
||||
CPA_EXPORT void WP_fnv_Way_SetCurrentWPIndex(WP_tdhWay,WP_tduc_WPIndex);
|
||||
|
||||
/* "constructor" : */
|
||||
CPA_EXPORT WP_tdhWay WP_fnh_Way_Build(WP_tduc_WPIndex);
|
||||
/* "Destructor" */
|
||||
CPA_EXPORT void WP_fnv_Way_Free(WP_tdhWay);
|
||||
/* allocate : */
|
||||
CPA_EXPORT void WP_fnv_Way_Alloc(WP_tdhWay,WP_tduc_WPIndex);
|
||||
/* re-size the way : */
|
||||
CPA_EXPORT void WP_fnv_Way_Realloc(WP_tdhWay,WP_tduc_WPIndex);
|
||||
/* duplicate : */
|
||||
CPA_EXPORT WP_tdhWay WP_fnh_Way_Duplicate(WP_tdhWay);
|
||||
/* copy */
|
||||
CPA_EXPORT void WP_fnv_Way_Copy(WP_tdhWay,WP_tdhWay);
|
||||
/* sizeof */
|
||||
CPA_EXPORT unsigned short WP_fnuw_Way_SizeOf(void);
|
||||
/* accessing to members :*/
|
||||
CPA_EXPORT WP_tdhWayPoint* WP_fnd_h_Way_GetWayPointArray(WP_tdhWay);
|
||||
CPA_EXPORT void WP_fnv_Way_SetWayPointArray(WP_tdhWay,WP_tdhWayPoint*);
|
||||
|
||||
CPA_EXPORT WP_tdhLink* WP_fnd_h_Way_GetLinkArray(WP_tdhWay);
|
||||
CPA_EXPORT void WP_fnv_Way_SetLinkArray(WP_tdhWay,WP_tdhLink*);
|
||||
|
||||
CPA_EXPORT WP_tduc_WPIndex WP_fnuc_Way_GetSizeWay(WP_tdhWay);
|
||||
CPA_EXPORT void WP_fnv_Way_SetSizeWay(WP_tdhWay,WP_tduc_WPIndex);
|
||||
|
||||
CPA_EXPORT WP_tduc_WPIndex WP_fnuc_Way_GetCurrentWPIndex(WP_tdhWay);
|
||||
CPA_EXPORT void WP_fnv_Way_SetCurrentWPIndex(WP_tdhWay,WP_tduc_WPIndex);
|
||||
|
||||
CPA_EXPORT unsigned char WP_fnuc_Way_GetUsedCount(WP_tdhWay);
|
||||
CPA_EXPORT void WP_fnv_Way_SetUsedCount(WP_tdhWay,unsigned char);
|
||||
|
||||
CPA_EXPORT WP_tdhWayPoint WP_fnh_Way_GetElementFromWayPointArray(WP_tdhWay,WP_tduc_WPIndex);
|
||||
CPA_EXPORT void WP_fnv_Way_SetElementFromWayPointArray(WP_tdhWay,WP_tduc_WPIndex,WP_tdhWayPoint);
|
||||
|
||||
CPA_EXPORT WP_tdhLink WP_fnh_Way_GetElementFromLinkArray(WP_tdhWay,WP_tduc_WPIndex);
|
||||
CPA_EXPORT void WP_fnv_Way_SetElementFromLinkArray(WP_tdhWay,WP_tduc_WPIndex,WP_tdhLink);
|
||||
|
||||
/* validity of handles : */
|
||||
CPA_EXPORT void WP_fnv_Way_Invalidate(WP_tdhWay*);
|
||||
CPA_EXPORT ACP_tdxBool WP_fnb_Way_IsValid(WP_tdhWay);
|
||||
CPA_EXPORT ACP_tdxBool WP_fnb_Way_IsInvalid(WP_tdhWay);
|
||||
|
||||
/* adding and removing waypoints : */
|
||||
CPA_EXPORT void WP_fnv_Way_InsertWayPoint(WP_tdhWay,WP_tdhWayPoint, WP_tdhLink,WP_tdhLink,WP_tduc_WPIndex);
|
||||
CPA_EXPORT void WP_fnv_Way_DeleteWayPoint(WP_tdhWay,WP_tduc_WPIndex,WP_tdhLink);
|
||||
|
||||
/* retrieving waypoints : */
|
||||
CPA_EXPORT WP_tduc_WPIndex WP_fnuc_Way_PositionWayPoint(WP_tdhWay,WP_tdhWayPoint);
|
||||
CPA_EXPORT WP_tdhWayPoint WP_fnh_Way_NextWayPoint(WP_tdhWay);
|
||||
CPA_EXPORT WP_tdhWayPoint WP_fnh_Way_PrevWayPoint(WP_tdhWay);
|
||||
CPA_EXPORT WP_tdhWayPoint WP_fnh_Way_CurrentWayPoint(WP_tdhWay);
|
||||
|
||||
CPA_EXPORT SCR_tdst_Link_Table* WP_fnp_Way_GetLinkTable (void);
|
||||
|
||||
/* load*/
|
||||
CPA_EXPORT SCR_tde_Anl_ReturnValue WP_fne_Way_ScriptCallBackLoad
|
||||
(SCR_tdst_File_Description*,char*,char**,SCR_tde_Anl_Action);
|
||||
/* Tools :*/
|
||||
CPA_EXPORT void WP_fnv_Way_InitBeforeFollowing(HIE_tdxHandleToSuperObject,WP_tdhWay);
|
||||
/* function called when the specific vertex has been reached */
|
||||
CPA_EXPORT unsigned char WP_fnuc_Way_CurrentVertexReached(HIE_tdxHandleToSuperObject,WP_tdhWay);
|
||||
/* function called to get the speed : */
|
||||
CPA_EXPORT MTH_tdxReal WP_fnx_Way_GetCurrentSpeed(HIE_tdxHandleToSuperObject,WP_tdhWay);
|
||||
/* function called to get the vertex to reach */
|
||||
CPA_EXPORT void WP_fnv_Way_GetNextPoint(HIE_tdxHandleToSuperObject,WP_tdhWay,MTH3D_tdstVector*,MTH_tdxReal*);
|
||||
|
||||
|
||||
#endif /* __WP_WAYS_FUNCTIONS_PROTOS__ */
|
||||
|
||||
#endif /* _WP_D_DEFINE_WAYS_ */
|
||||
|
||||
#endif /* !ONLY_TYPES */
|
89
Rayman_X/cpa/public/AI/AIBase/WP_Func.h
Normal file
89
Rayman_X/cpa/public/AI/AIBase/WP_Func.h
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
HEADER FILE FOR :
|
||||
Prototype of waypoints, links and ways exported functions
|
||||
------------------------------------------------------------------------------------------
|
||||
File Name :
|
||||
WP_F_nc.h
|
||||
------------------------------------------------------------------------------------------
|
||||
Creation :
|
||||
* Date :
|
||||
March 14,1997
|
||||
* Author :
|
||||
Albert Pais
|
||||
------------------------------------------------------------------------------------------
|
||||
Contents :
|
||||
defines prototype and functions used for waypoints, links and
|
||||
ways
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/* in order to compile AI in C++ and link with GAM in C*/
|
||||
#if defined(__cplusplus)
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
|
||||
#if !defined(ONLY_TYPES)
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
WAYPOINT FUNCTIONS DECLARATION:
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
#ifdef _WP_D_DEFINE_WAYPOINTS_
|
||||
|
||||
#if !defined (__WP_WAYPOINTS_FUNCTIONS_PROTOS__)
|
||||
#define __WP_WAYPOINTS_FUNCTIONS_PROTOS__
|
||||
|
||||
/****************************************/
|
||||
#if !defined(CPA_EXPORT)
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
|
||||
#endif /*CPA_EXPORT*/
|
||||
/****************************************/
|
||||
|
||||
/* add reference and release */
|
||||
CPA_EXPORT void WP_fnv_WayPoint_AddRef(WP_tdhWayPoint);
|
||||
CPA_EXPORT void WP_fnv_WayPoint_Release(WP_tdhWayPoint);
|
||||
|
||||
/* retrieve radius : */
|
||||
CPA_EXPORT MTH_tdxReal WP_fnx_WayPoint_GetRadius(WP_tdhWayPoint);
|
||||
/* loading waypoints */
|
||||
|
||||
/* LOL*/
|
||||
#if defined(AI_USE_SCRIPT)
|
||||
CPA_EXPORT SCR_tde_Anl_ReturnValue WP_fne_WayPoint_ScriptCallBackLoad(SCR_tdst_File_Description *,char *,char **, SCR_tde_Anl_Action);
|
||||
CPA_EXPORT SCR_tde_Anl_ReturnValue WP_fne_WayPoint_ScriptSubSectionCallBackLoad(SCR_tdst_File_Description *,char *,char **, SCR_tde_Anl_Action);
|
||||
CPA_EXPORT SCR_tdst_Link_Value* WP_fnh_WayPoint_GetLoaded(char*);
|
||||
#endif /* AI_USE_SCRIPT */
|
||||
|
||||
/* tools */
|
||||
CPA_EXPORT void WP_fnv_WayPoint_ComputeLocation(WP_tdhWayPoint,MTH3D_tdstVector*);
|
||||
|
||||
/* LOL*/
|
||||
#if defined(AI_USE_SCRIPT)
|
||||
CPA_EXPORT void WP_fnv_WayPoint_InitLinkTable(void);
|
||||
CPA_EXPORT void WP_fnv_WayPoint_CloseLinkTable(void);
|
||||
|
||||
CPA_EXPORT SCR_tdst_Link_Table* WP_fnp_WayPoint_GetLinkTable (void);
|
||||
CPA_EXPORT WP_tdhWayPoint WP_fnh_WayPoint_GetHandleFromLinkTable(SCR_tdst_Link_Value*);
|
||||
#endif /* AI_USE_SCRIPT */
|
||||
|
||||
#endif /*__WP_WAYPOINTS_FUNCTIONS_PROTOS__ */
|
||||
|
||||
#endif /* _WP_D_DEFINE_WAYPOINTS_ */
|
||||
|
||||
|
||||
#endif /* !ONLY_TYPES */
|
||||
|
||||
/* in order to compile AI in C++ and link with GAM in C*/
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
78
Rayman_X/cpa/public/AI/AIBase/WP_Handl.h
Normal file
78
Rayman_X/cpa/public/AI/AIBase/WP_Handl.h
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
HEADER FILE FOR :
|
||||
Definitions of waypoints, link and ways handles.
|
||||
------------------------------------------------------------------------------------------
|
||||
File Name :
|
||||
WP_Handl.h
|
||||
------------------------------------------------------------------------------------------
|
||||
Creation :
|
||||
* Date :
|
||||
March 15,1997
|
||||
* Author :
|
||||
Albert Pais
|
||||
------------------------------------------------------------------------------------------
|
||||
Contents :
|
||||
Defines waypoints, links and ways handles
|
||||
Defines some macro-constants
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
/*
|
||||
Waypoint handle definition :
|
||||
*/
|
||||
|
||||
/* in order to compile AI in C++ and link with GAM in C*/
|
||||
#if defined(__cplusplus)
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#if defined(_WP_D_DEFINE_WAYPOINTS_)
|
||||
#if !defined(__WP_WAYPOINT_HANDLE_TYPES__)
|
||||
#define __WP_WAYPOINT_HANDLE_TYPES__
|
||||
|
||||
/*ANNECY JMD {*/
|
||||
typedef struct WP_tdstArc_* WP_tdHandleOfArc;
|
||||
typedef struct WP_tdstListOfArc_ *WP_tdHandleOfListOfArc ;
|
||||
typedef struct WP_tdstGraph_ *WP_tdHandleOfGraph;
|
||||
typedef struct WP_tdstGraphNode_ *WP_tdhGraphNode ;
|
||||
/*ENDANNECY JMD }*/
|
||||
|
||||
|
||||
typedef struct WP_tdstWayPoint_* WP_tdhWayPoint;
|
||||
#define WP_C_hWayPointInvalid ((WP_tdhWayPoint)0)
|
||||
#define C_SectionWayPointDescription "WayPoint"
|
||||
#define C_SubSectionIsolateWayPointDescription "Isolate"
|
||||
#define C_SubSectionInWayWayPointDescription "InWay"
|
||||
#define C_ScriptWayPointSuffixe "wp"
|
||||
|
||||
/*ANNECY Bart 19/01/98 {*/
|
||||
#define C_SectionWPGraphDescription "WPGraph"
|
||||
#define C_SectionWPSommetDescription "WPSommet"
|
||||
/*ENDANNECY Bart }*/
|
||||
|
||||
|
||||
|
||||
#endif /* __WP_WAYPOINT_HANDLE_TYPES__ */
|
||||
#endif /* _WP_D_DEFINE_WAYPOINTS_ */
|
||||
|
||||
/*
|
||||
Link handle definition :
|
||||
*/
|
||||
|
||||
#if defined(_WP_D_DEFINE_LINKS_)
|
||||
|
||||
#if !defined(__WP_LINK_HANDLE_TYPES__)
|
||||
#define __WP_LINK_HANDLE_TYPES__
|
||||
|
||||
typedef struct WP_tdstLink_* WP_tdhLink;
|
||||
#define WP_C_hLinkInvalid ((WP_tdhLink)0)
|
||||
|
||||
#endif /* __WP_LINK_HANDLE_TYPES__ */
|
||||
#endif /* _WP_D_DEFINE_LINKS_ */
|
||||
|
||||
|
||||
/* in order to compile AI in C++ and link with GAM in C*/
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
154
Rayman_X/cpa/public/AI/AIBase/WParc.h
Normal file
154
Rayman_X/cpa/public/AI/AIBase/WParc.h
Normal file
@@ -0,0 +1,154 @@
|
||||
/* in order to compile AI in C++ and link with GAM in C*/
|
||||
#if defined(__cplusplus)
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#if !defined(__WPWAYARC_TYPES__)
|
||||
#define __WPWAYARC_TYPES__
|
||||
|
||||
#if !defined(ONLY_TYPES)
|
||||
#define WPWAYARC_UNDEF
|
||||
#define ONLY_TYPES
|
||||
#endif /* !ONLY_TYPES */
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
INCLUDE FILES :
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
#include "Acp_Base.h"
|
||||
#include <LST.h>
|
||||
|
||||
/*
|
||||
----------------------------------------
|
||||
File Name :
|
||||
WP_Handl.h
|
||||
----------------------------------------
|
||||
Required for :
|
||||
Defines waypoint handles.
|
||||
----------------------------------------
|
||||
*/
|
||||
#include "WP_Handl.h"
|
||||
#include "WP_Func.h"
|
||||
|
||||
|
||||
#if defined(WPWAYARC_UNDEF)
|
||||
#undef ONLY_TYPES
|
||||
#undef WPWAYARC_UNDEF
|
||||
#endif /* !WPWAYARC_UNDEF */
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
TYPE AND STRUCTURE DEFINITION :
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
#ifdef _WP_D_WPARC_FREIND_
|
||||
|
||||
LST2_M_DynamicUseListOf(WP_tdHandleOfArc) ;
|
||||
|
||||
typedef struct WP_tdstListOfArc_ {
|
||||
LST2_M_DynamicAnchorDeclaration(WP_tdHandleOfArc) m_hArc;
|
||||
} WP_tdstListOfArc;
|
||||
|
||||
typedef struct WP_tdstArc_ {
|
||||
LST2_M_DynamicElementDeclaration(WP_tdHandleOfArc)
|
||||
WP_tdhGraphNode m_hNode; /* destination */
|
||||
unsigned long m_ulCapability; /* capabilities needed to go through */
|
||||
unsigned long m_ulCapabilityInit ;
|
||||
long m_lWeight; /* weight of the transition, MUST be positif */
|
||||
long m_lWeightInit;
|
||||
}WP_tdstWayArc;
|
||||
#endif /* _WP_D_WPARC_FREIND_ */
|
||||
|
||||
#endif /* !__WPWAYARC_TYPES__ */
|
||||
|
||||
#if !defined(ONLY_TYPES)
|
||||
|
||||
#if !defined(__WPWAYARC_VARS__)
|
||||
#define __WPWAYARC_VARS__
|
||||
|
||||
#undef WP_WAYPOINT_EXTERN
|
||||
#undef extern
|
||||
#if !defined(WP_D_WAYPOINT_GLOBALS_)
|
||||
#define WP_WAYPOINT_EXTERN extern
|
||||
#else /* !WP_D_WAYPOINT_GLOBALS_ */
|
||||
#define WP_WAYPOINT_EXTERN
|
||||
#endif /* !WP_D_WAYPOINT_GLOBALS_ */
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
VARIABLE DECLARATION :
|
||||
<type> <variable name>
|
||||
#if defined(WP_D_WAYPOINT_GLOBALS_)
|
||||
= <initial values>
|
||||
#endif
|
||||
;
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
MACROS-CONSTANT DECLARATION:
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
/* allready defined in WP_Handl.h
|
||||
#define WP_C_hWayPointInvalid ((WP_tdhWayPoint)0)
|
||||
*/
|
||||
|
||||
#undef extern
|
||||
#endif /* !__WPWAYARC_VARS__ */
|
||||
|
||||
#if !defined (__WPWAYARC_PROTOS__)
|
||||
#define __WPWAYARC_PROTOS__
|
||||
|
||||
/****************************************/
|
||||
#if !defined(CPA_EXPORT)
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
|
||||
#endif /*CPA_EXPORT*/
|
||||
/****************************************/
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
MACROS-FUNCTIONS DECLARATION:
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
FUNCTIONS DECLARATION:
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
CPA_EXPORT WP_tdHandleOfArc WPARC_CreateArc (WP_tdhGraphNode hNode, long lWeight, unsigned long ulCapability) ;
|
||||
CPA_EXPORT void WPARC_fn_vDestroyArc (WP_tdHandleOfArc hArc);
|
||||
CPA_EXPORT long WPARC_fn_lSetWeight (WP_tdHandleOfArc hArc, long lWeight) ;
|
||||
CPA_EXPORT long WPARC_fn_lGetWeight (WP_tdHandleOfArc hArc) ;
|
||||
CPA_EXPORT long WPARC_fn_lSetCapability (WP_tdHandleOfArc hArc, unsigned long ulCapability) ;
|
||||
CPA_EXPORT unsigned long WPARC_fn_ulGetCapability (WP_tdHandleOfArc hArc) ;
|
||||
|
||||
CPA_EXPORT WP_tdHandleOfListOfArc WPARCLST_fn_hInit (void) ;
|
||||
CPA_EXPORT void WPARCLST_fn_vDestroy (WP_tdHandleOfListOfArc hList) ;
|
||||
CPA_EXPORT void WPARCLST_fn_vAdd (WP_tdHandleOfListOfArc hListOfArc, WP_tdhGraphNode hNode, long lWeight, unsigned long ulCapability) ;
|
||||
CPA_EXPORT void WPARCLST_fn_vRemove (WP_tdHandleOfListOfArc hListOfArc, WP_tdhGraphNode hNode) ;
|
||||
|
||||
CPA_EXPORT long WPARCLST_fn_lChangeCapabilities (WP_tdHandleOfListOfArc hListOfArc, WP_tdhGraphNode hNode, unsigned long ulCapability, long lValue) ;
|
||||
CPA_EXPORT long WPARCLST_fn_lGetCapabilities (WP_tdHandleOfListOfArc hListOfArc, WP_tdhGraphNode hNode, unsigned long* p_ulCapability) ;
|
||||
CPA_EXPORT long WPARCLST_fn_lChangeWeight (WP_tdHandleOfListOfArc hListOfArc, WP_tdhGraphNode hNode, long lWeight) ;
|
||||
CPA_EXPORT long WPARCLST_fn_lGetWeight (WP_tdHandleOfListOfArc hListOfArc, WP_tdhGraphNode hNode, long *p_lWeight) ;
|
||||
#endif /* !__WPWAYARC_PROTOS__ */
|
||||
|
||||
#endif /* !ONLY_TYPES */
|
||||
|
||||
|
||||
|
||||
/* in order to compile AI in C++ and link with GAM in C*/
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
239
Rayman_X/cpa/public/AI/AIBase/WPgraphe.h
Normal file
239
Rayman_X/cpa/public/AI/AIBase/WPgraphe.h
Normal file
@@ -0,0 +1,239 @@
|
||||
/* in order to compile AI in C++ and link with GAM in C*/
|
||||
#if defined(__cplusplus)
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#if !defined(__WPGRAPH_TYPES__)
|
||||
#define __WPGRAPH_TYPES__
|
||||
|
||||
#if !defined(ONLY_TYPES)
|
||||
#define WPGRAPH_UNDEF
|
||||
#define ONLY_TYPES
|
||||
#endif /* !ONLY_TYPES */
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
INCLUDE FILES :
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
#include "Acp_Base.h"
|
||||
#include "SPO.h"
|
||||
#include "MTH.h"
|
||||
|
||||
/*
|
||||
----------------------------------------
|
||||
File Name :
|
||||
WP_Handl.h
|
||||
----------------------------------------
|
||||
Required for :
|
||||
Defines waypoint handles.
|
||||
----------------------------------------
|
||||
*/
|
||||
#include "WP_Handl.h"
|
||||
#include "WP_Func.h"
|
||||
|
||||
|
||||
#if defined(WPGRAPH_UNDEF)
|
||||
#undef ONLY_TYPES
|
||||
#undef WPGRAPH_UNDEF
|
||||
#endif /* !WPWAYPT_UNDEF */
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
TYPE AND STRUCTURE DEFINITION :
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/*#ifdef _WP_D_WPGRAPH_FRIEND_*/
|
||||
|
||||
LST2_M_DynamicUseListOf(WP_tdhGraphNode) ;
|
||||
|
||||
typedef struct WP_tdstGraphNode_ {
|
||||
LST2_M_DynamicElementDeclaration(WP_tdhGraphNode)
|
||||
WP_tdhWayPoint m_hWayPoint ; /* reference to the WayPoint */
|
||||
long m_lTypeOfWP; /*BART*/
|
||||
long m_lTypeOfWPInit; /*BART*/
|
||||
WP_tdHandleOfListOfArc m_hListOfArc ; /* list of link of the node */
|
||||
} WP_tdstGraphNode;
|
||||
|
||||
|
||||
typedef struct WP_tdstGraph_ {
|
||||
LST2_M_DynamicAnchorDeclaration(WP_tdhGraphNode) m_hListOfNode ;
|
||||
#ifdef GAM_USE_SCRIPT
|
||||
char* m_szNameOfGraph;
|
||||
char* m_szReferenceSection;
|
||||
#endif
|
||||
} WP_tdstGraph;
|
||||
|
||||
/*#endif /* _WP_D_WPGRAPH_FRIEND_ */
|
||||
|
||||
#endif /* !__WPGRAPH_TYPES__ */
|
||||
|
||||
#if !defined(ONLY_TYPES)
|
||||
|
||||
#if !defined(__WPGRAPH_VARS__)
|
||||
#define __WWPGRAPH_VARS__
|
||||
|
||||
#undef WP_WAYPOINT_EXTERN
|
||||
#undef extern
|
||||
#if !defined(WP_D_WPGRAPH_GLOBALS_)
|
||||
#define WP_WAYPOINT_EXTERN extern
|
||||
#else /* !WP_D_WPGRAPH_GLOBALS_ */
|
||||
#define WP_WAYPOINT_EXTERN
|
||||
#endif /* !WP_D_WPGRAPH_GLOBALS_ */
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
VARIABLE DECLARATION :
|
||||
<type> <variable name>
|
||||
#if defined(WP_D_WAYPOINT_GLOBALS_)
|
||||
= <initial values>
|
||||
#endif
|
||||
;
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
MACROS-CONSTANT DECLARATION:
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
/* allready defined in WP_Handl.h
|
||||
#define WP_C_hWayPointInvalid ((WP_tdhWayPoint)0)
|
||||
*/
|
||||
|
||||
#undef extern
|
||||
#endif /* !__WPWAYPT_VARS__ */
|
||||
|
||||
#if !defined (__WPGRAPH_PROTOS__)
|
||||
#define __WPGRAPH_PROTOS__
|
||||
|
||||
/****************************************/
|
||||
#if !defined(CPA_EXPORT)
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
|
||||
#endif /*CPA_EXPORT*/
|
||||
/****************************************/
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
MACROS-FUNCTIONS DECLARATION:
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
FUNCTIONS DECLARATION:
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
/* list of graph */
|
||||
CPA_EXPORT WP_tdHandleOfGraph WPG_fn_hGetGraph (char* _szName);
|
||||
CPA_EXPORT void WPG_fn_vAddGlobalGraph(WP_tdHandleOfGraph hGraph) ;
|
||||
CPA_EXPORT void WPG_fn_vDestroyAllGraph (void) ;
|
||||
|
||||
/* Graph managment */
|
||||
/*CPA_EXPORT WP_tdHandleOfGraph WPG_fn_hCreate (void) ;*/
|
||||
CPA_EXPORT WP_tdHandleOfGraph WPG_fn_hCreate (char* _szName, char* _szReference) ;
|
||||
|
||||
/*ROMTEAM Network (Gabriela Dumitrascu 15/03/98)*/
|
||||
CPA_EXPORT char* WPG_fn_pGetNameOfGraph(WP_tdHandleOfGraph hGraph);
|
||||
CPA_EXPORT void WPG_fn_vSetNameOfGraph(WP_tdHandleOfGraph hGraph, const char* _szName);
|
||||
CPA_EXPORT char* WPG_fn_pGetReferenceSection(WP_tdHandleOfGraph hGraph);
|
||||
CPA_EXPORT void WPG_fn_vSetReferenceSection(WP_tdHandleOfGraph hGraph, const char* _szReferenceSection);
|
||||
|
||||
CPA_EXPORT void WPG_fn_vCopy (WP_tdHandleOfGraph hDst,WP_tdHandleOfGraph hSrc);
|
||||
/*ENDROMTEAM Network (Gabriela Dumitrascu)*/
|
||||
|
||||
CPA_EXPORT void WPG_fn_vDestroy (WP_tdHandleOfGraph hGraph) ;
|
||||
CPA_EXPORT long WPG_fn_lAddWayPointIfNotExists (WP_tdHandleOfGraph _hGraph,
|
||||
WP_tdhWayPoint _hWayPoint, long _lTypeOfWP); /*BART*/
|
||||
CPA_EXPORT long WPG_fn_lAddWayPoint (WP_tdHandleOfGraph _hGraph,
|
||||
WP_tdhWayPoint _hWayPoint, long _lTypeOfWP); /*BART*/
|
||||
CPA_EXPORT long WPG_fn_lChangeTypeOfWP (WP_tdHandleOfGraph _hGraph, WP_tdhWayPoint _hWayPoint, long _lTypeOfWP); /* BART*/
|
||||
|
||||
CPA_EXPORT long WPG_fn_lRemoveWayPoint (WP_tdHandleOfGraph hGraph,
|
||||
WP_tdhWayPoint hWayPoint) ;
|
||||
CPA_EXPORT long WPG_fn_lAddArcToWayPoint (WP_tdHandleOfGraph hGraph,
|
||||
WP_tdhWayPoint hSrcWayPoint,
|
||||
WP_tdhWayPoint hDstWayPoint,
|
||||
long lWeight, unsigned long ulCapability) ;
|
||||
CPA_EXPORT long WPG_fn_lRemoveArcFromWayPoint (WP_tdHandleOfGraph hGraph,
|
||||
WP_tdhWayPoint hSrcWayPoint,
|
||||
WP_tdhWayPoint hDstWayPoint ) ;
|
||||
|
||||
CPA_EXPORT long WPG_fn_lChangeLinkCapabilities (WP_tdHandleOfGraph hGraph,
|
||||
WP_tdhWayPoint hSrcWayPoint,
|
||||
WP_tdhWayPoint hDstWayPoint,
|
||||
unsigned long ulCapability, long lValue ) ;
|
||||
CPA_EXPORT long WPG_fn_lGetLinkCapabilities (WP_tdHandleOfGraph hGraph,
|
||||
WP_tdhWayPoint hSrcWayPoint,
|
||||
WP_tdhWayPoint hDstWayPoint,
|
||||
unsigned long* p_ulCapability ) ;
|
||||
CPA_EXPORT long WPG_fn_lChangeLinkWeight (WP_tdHandleOfGraph hGraph,
|
||||
WP_tdhWayPoint hSrcWayPoint,
|
||||
WP_tdhWayPoint hDstWayPoint,
|
||||
long lWeight) ;
|
||||
CPA_EXPORT long WPG_fn_lGetLinkWeight (WP_tdHandleOfGraph hGraph,
|
||||
WP_tdhWayPoint hSrcWayPoint,
|
||||
WP_tdhWayPoint hDstWayPoint,
|
||||
long *p_lWeight ) ;
|
||||
|
||||
CPA_EXPORT void WPG_fn_vReinitGraph (WP_tdHandleOfGraph hGraph) ;
|
||||
|
||||
|
||||
CPA_EXPORT WP_tdHandleOfGraph WPG_fn_lShortestPath (WP_tdHandleOfGraph hGraph,
|
||||
WP_tdhWayPoint hSrcWayPoint,
|
||||
WP_tdhWayPoint hDstWayPoint,
|
||||
unsigned long ulCapability) ;
|
||||
/*bart:*/
|
||||
CPA_EXPORT WP_tdHandleOfGraph WPG_fn_lBuildOrderedPath(WP_tdHandleOfGraph hGraph, WP_tdhWayPoint hStartWP);
|
||||
|
||||
CPA_EXPORT WP_tdhWayPoint WPG_fn_hGetFirstWaypointOfGraph (WP_tdHandleOfGraph hGraph) ;
|
||||
CPA_EXPORT WP_tdhWayPoint WPG_fn_hGetLastWaypointOfGraph (WP_tdHandleOfGraph hGraph) ;
|
||||
CPA_EXPORT long WPG_fn_lNumberOfWaypointOfGraph (WP_tdHandleOfGraph hGraph) ;
|
||||
CPA_EXPORT WP_tdhWayPoint WPG_fn_hGetWaypointOfGraph (WP_tdHandleOfGraph hGraph,
|
||||
int iIndex, long* _plTypeOfWP) ; /*BART*/
|
||||
|
||||
CPA_EXPORT char *WPG_fn_szGetReferenceSection (WP_tdHandleOfGraph hGraph) ;
|
||||
|
||||
|
||||
/* Graph node managment */
|
||||
CPA_EXPORT WP_tdhGraphNode WPG_fn_hCreateNode (WP_tdhWayPoint _hWayPoint, long _lTypeOfWP); /*BART*/
|
||||
CPA_EXPORT void WPG_fn_vDestroyNode (WP_tdhGraphNode hNode) ;
|
||||
CPA_EXPORT void WPG_fn_vAddArc (WP_tdhGraphNode hSrcNode, WP_tdhGraphNode hDstNode,
|
||||
unsigned long ulCapability, long lWeight) ;
|
||||
CPA_EXPORT void WPG_fn_vRemoveArc (WP_tdhGraphNode hSrcNode,
|
||||
WP_tdhGraphNode hDstNode ) ;
|
||||
CPA_EXPORT WP_tdHandleOfListOfArc WPG_fn_hGetArcList (WP_tdhGraphNode hSrcNode) ;
|
||||
|
||||
CPA_EXPORT long WPG_fn_lChangeArcCapabilities (WP_tdhGraphNode hSrcNode, WP_tdhGraphNode hDstNode, unsigned long ulCapability, long lValue) ;
|
||||
CPA_EXPORT long WPG_fn_lGetArcCapabilities (WP_tdhGraphNode hSrcNode, WP_tdhGraphNode hDstNode, unsigned long* p_ulCapability) ;
|
||||
CPA_EXPORT long WPG_fn_lChangeArcWeight ( WP_tdhGraphNode hSrcNode, WP_tdhGraphNode hDstNode, long lWeight) ;
|
||||
CPA_EXPORT long WPG_fn_lGetArcWeight ( WP_tdhGraphNode hSrcNode, WP_tdhGraphNode hDstNode, long *p_lWeight) ;
|
||||
|
||||
/*DMJ*/
|
||||
|
||||
/*ROMTEAM Networks (Gabriela Dumitrascu 05/03/98)*/
|
||||
/* export link table */
|
||||
CPA_EXPORT struct SCR_tdst_Link_Table_ *WPG_fnp_Graph_GetLinkTable (void);
|
||||
/*ENDROMTEAM Networks (Gabriela Dumitrascu)*/
|
||||
|
||||
#endif /* !__WPGRAPH_PROTOS__ */
|
||||
|
||||
#endif /* !ONLY_TYPES */
|
||||
|
||||
|
||||
|
||||
/* in order to compile AI in C++ and link with GAM in C*/
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
72
Rayman_X/cpa/public/AI/AIBase/specif/AIOption.h
Normal file
72
Rayman_X/cpa/public/AI/AIBase/specif/AIOption.h
Normal file
@@ -0,0 +1,72 @@
|
||||
/*///////////////////////////////////////////////////////////*/
|
||||
/* //*/
|
||||
/* Management of the Module : AI (Intelligence) //*/
|
||||
/* //*/
|
||||
/*///////////////////////////////////////////////////////////*/
|
||||
/* //*/
|
||||
/* AIOption.h : Generic compilation options for AI //*/
|
||||
/* // //*/
|
||||
/*///////////////////////////////////////////////////////////*/
|
||||
|
||||
#if !defined(__AIOPTION_H__)
|
||||
#define __AIOPTION_H__
|
||||
|
||||
/* important for external use of Ai files*/
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
#if !defined(_AI_LIB_)
|
||||
#define _AI_LIB_
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
// debug infor for AI
|
||||
#if defined(_AI_LIB_)
|
||||
*/
|
||||
#if defined(ACTIVE_EDITOR) || ( defined(VISUAL) && defined(_DEBUG) )
|
||||
#if !defined(__DEBUG_AI__)
|
||||
#define __DEBUG_AI__
|
||||
#endif
|
||||
#else /* release without editor*/
|
||||
#if !defined(OPTIMIZED_COMMAND)
|
||||
#define OPTIMIZED_COMMAND
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* ai debuger is active with editors*/
|
||||
#if defined (ACTIVE_EDITOR) && !defined(ACTIVE_AIDEBUG)
|
||||
#define ACTIVE_AIDEBUG /*** DR ***/
|
||||
#endif
|
||||
|
||||
/* IA debug errors and warnings*/
|
||||
#define __FATAL_ERR_AI__
|
||||
#define __WARNING_ERR_AI__
|
||||
|
||||
/* script or binary options */
|
||||
#define AI_USE_SCRIPT
|
||||
|
||||
/* OPTIMIZATION FLAGS */
|
||||
/* to activate SwapParameters optimizations : it seems to work*/
|
||||
#define OPTIMIZE_SWAP_PARAMETER
|
||||
|
||||
/* to activate Action table optimizations : not tested yet*/
|
||||
#define OPTIMIZE_ACTION_TABLE
|
||||
|
||||
/* to activate Nb Nodes optimizations : don't use uwNbNode anymore : it seems to work too*/
|
||||
#if !defined(ACTIVE_EDITOR)
|
||||
#define OPTIMIZE_NB_NODES
|
||||
#endif
|
||||
/*
|
||||
#else
|
||||
#if !defined(OPTIMIZED_COMMAND)
|
||||
#define OPTIMIZED_COMMAND
|
||||
#endif
|
||||
#if !defined(__DEBUG_AI__)
|
||||
#define __DEBUG_AI__
|
||||
#endif
|
||||
#if !defined(AI_USE_SCRIPT)
|
||||
#define AI_USE_SCRIPT
|
||||
#endif
|
||||
#endif
|
||||
*/
|
||||
|
||||
#endif /*__AIOPTION_H__*/
|
120
Rayman_X/cpa/public/AI/AIDebug/BreakPts.h
Normal file
120
Rayman_X/cpa/public/AI/AIDebug/BreakPts.h
Normal file
@@ -0,0 +1,120 @@
|
||||
/**************************************
|
||||
|
||||
BreakPoints for AI Debugger
|
||||
|
||||
header file
|
||||
|
||||
***************************************/
|
||||
|
||||
/* To avoid unnecessary includes : */
|
||||
#ifndef __BREAKPOINTS_H
|
||||
#define __BREAKPOINTS_H
|
||||
|
||||
|
||||
/**************************************/
|
||||
#if !defined(CPA_EXPORT)
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
|
||||
#endif /*CPA_EXPORT*/
|
||||
/**************************************/
|
||||
/*#undef extern*/
|
||||
#define EXTERN_AID extern
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus *
|
||||
|
||||
|
||||
/* For Global declaration in C files : */
|
||||
#ifdef AID_GLOBALS
|
||||
#define __AID_EXTERN extern
|
||||
#else /* !AID_GLOBALS */
|
||||
#define __AID_EXTERN
|
||||
#endif /* !AID_GLOBALS */
|
||||
|
||||
/*
|
||||
-----------------------------------------------------------------------------
|
||||
INCLUDES FILES :
|
||||
Include here any other header files of your module you need !
|
||||
Ex :
|
||||
#include "toto.h"
|
||||
Note : Do Not include header files from other Modules (do this in C files
|
||||
only)
|
||||
-----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
#if defined(ACTIVE_AIDEBUG)
|
||||
|
||||
/*
|
||||
-----------------------------------------------------------------------------
|
||||
CONSTANT DECLARATION:
|
||||
Ex :
|
||||
#define AID_C_LMAX 100
|
||||
-----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/*
|
||||
-----------------------------------------------------------------------------
|
||||
TYPES DEFINITION :
|
||||
Declare here any type you need, and constant you need to do this :
|
||||
Ex : typedef struct AID_tdstToto_
|
||||
{
|
||||
long aLMAX_lBuffer[AID_C_LMAX];
|
||||
...
|
||||
} AID_tdst_Toto ;
|
||||
-----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/*
|
||||
-----------------------------------------------------------------------------
|
||||
GLOBAL VARIABLE DECLARATION :
|
||||
Ex :
|
||||
__AID_EXTERN <type> <variable name>
|
||||
#ifdef AID_GLOBALS
|
||||
= <initial values>
|
||||
#endif
|
||||
;
|
||||
-----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/*
|
||||
-----------------------------------------------------------------------------
|
||||
PUBLIC FUNCTIONS DECLARATION:
|
||||
Ex :
|
||||
extern CPA_EXPORT void AID_fn_vMyPublicFunction(void);
|
||||
Note : Public functions declaration must be done in PUBLIC HEADER files (.h)
|
||||
in your Inc directory
|
||||
-----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
EXTERN_AID CPA_EXPORT struct tdstNodeInterpret_ * fn_pstSetValidBreakPoint( tdstNodeInterpret*, tdstScriptAI*, unsigned long );
|
||||
|
||||
/*
|
||||
-----------------------------------------------------------------------------
|
||||
PRIVATE FUNCTIONS DECLARATION:
|
||||
Ex :
|
||||
extern void AID_fn_vMyPrivateFunction(void);
|
||||
Note : Private functions MUST appear ONLY in PRIVATE HEADER files (.h) in
|
||||
your Src directory with source files (.c)
|
||||
-----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
ACP_tdxBool fn_bIsBreakableNode( tdstNodeInterpret* );
|
||||
tdstTreeInterpret * fn_pstFindTreeWithNode( tdstScriptAI*, unsigned long, tdstNodeInterpret* );
|
||||
|
||||
|
||||
#endif /*ACTIVE_AIDEBUG*/
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __BREAKPOINTS_H */
|
413
Rayman_X/cpa/public/AI/AIDebug/specif/AID_Trac.h
Normal file
413
Rayman_X/cpa/public/AI/AIDebug/specif/AID_Trac.h
Normal file
@@ -0,0 +1,413 @@
|
||||
/*
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
AI Debug trace file
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
File Name : AID_Trac.h
|
||||
Date : September 29, 1997
|
||||
Author : David Reizer
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
Purpose :
|
||||
This file defines structures and prototypes for AI engine debug trace
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
*/
|
||||
|
||||
#if !defined(__AID_TRACE_TYPES__)
|
||||
#define __AID_TRACE_TYPES__
|
||||
|
||||
#if !defined(ONLY_TYPES)
|
||||
#define AID_TRACE_UNDEF
|
||||
#define ONLY_TYPES
|
||||
#endif /* !ONLY_TYPES */
|
||||
|
||||
#if defined(AID_TRACE_UNDEF)
|
||||
#undef ONLY_TYPES
|
||||
#undef AID_TRACE_UNDEF
|
||||
#endif /* AID_TRACE_UNDEF */
|
||||
|
||||
#if defined(ACTIVE_AIDEBUG)
|
||||
|
||||
#include "AI\AIBASE\GSParam.h"
|
||||
|
||||
/* Different types of SectionEntry */
|
||||
typedef enum AIDebug_tdeSectionType_
|
||||
{
|
||||
AIDebug_E_SecTyp_EngineLoop,
|
||||
AIDebug_E_SecTyp_ReflexOrAI,
|
||||
AIDebug_E_SecTyp_CurrentComport,
|
||||
AIDebug_E_SecTyp_Field,
|
||||
AIDebug_E_SecTyp_Constant,
|
||||
AIDebug_E_SecTyp_DsgVarId,
|
||||
AIDebug_E_SecTyp_DsgVar,
|
||||
AIDebug_E_SecTyp_Button,
|
||||
AIDebug_E_SecTyp_EnvRef,
|
||||
AIDebug_E_SecTyp_SectorRef,
|
||||
AIDebug_E_SecTyp_SurfaceRef,
|
||||
AIDebug_E_SecTyp_PersoRef,
|
||||
AIDebug_E_SecTyp_ActionRef,
|
||||
AIDebug_E_SecTyp_Real,
|
||||
AIDebug_E_SecTyp_Vector,
|
||||
AIDebug_E_SecTyp_ConstantVector,
|
||||
AIDebug_E_SecTyp_WayPoint,
|
||||
AIDebug_E_SecTyp_Module,
|
||||
AIDebug_E_SecTyp_Mask,
|
||||
AIDebug_E_SecTyp_String,
|
||||
AIDebug_E_SecTyp_LipsSynchroRef,
|
||||
AIDebug_E_SecTyp_SoundEventRef,
|
||||
AIDebug_E_SecTyp_FamilyRef,
|
||||
AIDebug_E_SecTyp_BeginMacro,
|
||||
AIDebug_E_SecTyp_EndMacro,
|
||||
AIDebug_E_SecTyp_Comport,
|
||||
AIDebug_E_SecTyp_KeyWord,
|
||||
AIDebug_E_SecTyp_Condition,
|
||||
AIDebug_E_SecTyp_Function,
|
||||
AIDebug_E_SecTyp_Operator,
|
||||
AIDebug_E_SecTyp_Procedure,
|
||||
AIDebug_E_SecTyp_MetaAction,
|
||||
AIDebug_E_SecTyp_MacroRef,
|
||||
AIDebug_E_SecTyp_BeginMetaAction,
|
||||
AIDebug_E_SecTyp_TextRef,
|
||||
AIDebug_E_SecTyp_FontRef,
|
||||
AIDebug_E_SecTyp_ParticleGenerator,
|
||||
AIDebug_E_SecTyp_ObjectTableRef,
|
||||
AIDebug_E_SecTyp_GameMaterialRef,
|
||||
AIDebug_E_SecTyp_NbOfSectionType
|
||||
} AIDebug_tdeSectionType;
|
||||
|
||||
|
||||
/*
|
||||
* A Section Entry contains :
|
||||
* a Type of Section
|
||||
* a GetSetParam field (value and type of the data)
|
||||
* an optional Id
|
||||
* the depth in the Ai tree
|
||||
* the optionnal adress of the corresponding node
|
||||
*/
|
||||
typedef struct AIDebug_tdstSectionEntry_
|
||||
{
|
||||
AIDebug_tdeSectionType m_eSectionType;
|
||||
tdstGetSetParam m_stGetSetParam;
|
||||
tdstNodeInterpret *m_p_stNode;
|
||||
} AIDebug_tdstSectionEntry;
|
||||
|
||||
/*
|
||||
* A trace contains :
|
||||
* an array of SectionEntry
|
||||
* a pointer to the position to insert a new SectionEntry
|
||||
* a flag indicating if whole the array is used
|
||||
* the number of EngineLoop
|
||||
* the first EngineLoop recorded in the buffer
|
||||
* a flag to enable/desable the trace for a perso
|
||||
* an index for the exploitation of the trace
|
||||
*/
|
||||
typedef struct AIDebug_tdstTrace_
|
||||
{
|
||||
struct AIDebug_tdstSectionEntry_ *m_d_stBuffer ;
|
||||
unsigned short m_uwSizeOfBuffer;
|
||||
unsigned short m_uwCurrentIndex;
|
||||
unsigned short m_b_uwBufferIsFull;
|
||||
/* unsigned short m_uwCurrentEngineLoop;*/
|
||||
/* unsigned short m_uwFirstEngineLoop;*/
|
||||
unsigned short m_b_uwIsEnable;
|
||||
unsigned short m_uwExplIndex;
|
||||
} AIDebug_tdstTrace;
|
||||
|
||||
#endif /*ACTIVE_AIDEBUG*/
|
||||
|
||||
#endif /* !__AID_TRACE_TYPES__ */
|
||||
|
||||
|
||||
#if !defined(ONLY_TYPES)
|
||||
|
||||
#if !defined(__AID_TRACE_VARS__)
|
||||
#define __AID_TRACE_VARS__
|
||||
|
||||
#undef AID_TRACE_EXTERN
|
||||
#undef extern
|
||||
#if !defined(AID_TRACE_GLOBALS)
|
||||
#define AID_TRACE_EXTERN extern
|
||||
#else
|
||||
#define AID_TRACE_EXTERN
|
||||
#endif /* AID_TRACE_GLOBALS */
|
||||
|
||||
#if defined(ACTIVE_AIDEBUG)
|
||||
|
||||
#define AIDebug_C_uwInvalidPosition ((unsigned short)-1)
|
||||
#define AIDebug_C_uwDefaultSizeOfBuffer ((unsigned short)10000)
|
||||
#define AIDebug_C_ucMaxSectionNameLength ((unsigned char)250)
|
||||
|
||||
|
||||
/*
|
||||
* MACRO Declarations
|
||||
*/
|
||||
|
||||
/* check a Section Type */
|
||||
#define AIDebug_M_bIsValidSectionType(_eType)\
|
||||
(\
|
||||
((_eType)>=AIDebug_E_SecTyp_EngineLoop)\
|
||||
&&((_eType)<AIDebug_E_SecTyp_NbOfSectionType)\
|
||||
)
|
||||
|
||||
/* to access the fields of a trace */
|
||||
#define AIDebug_M_d_stGetBuffer(_pstTrace) ((_pstTrace)->m_d_stBuffer)
|
||||
#define AIDebug_M_uwGetSizeOfBuffer(_pstTrace) ((_pstTrace)->m_uwSizeOfBuffer)
|
||||
#define AIDebug_M_uwGetCurrentIndex(_pstTrace) ((_pstTrace)->m_uwCurrentIndex)
|
||||
#define AIDebug_M_bBufferIsFull(_pstTrace) ((_pstTrace)->m_b_uwBufferIsFull)
|
||||
/*#define AIDebug_M_uwGetCurrentEngineLoop(_pstTrace) ((_pstTrace)->m_uwCurrentEngineLoop)*/
|
||||
/*#define AIDebug_M_uwGetFirstEngineLoop(_pstTrace) ((_pstTrace)->m_uwFirstEngineLoop)*/
|
||||
#define AIDebug_M_bIsEnable(_pstTrace) ((_pstTrace)->m_b_uwIsEnable)
|
||||
#define AIDebug_M_uwGetExplIndex(_pstTrace) ((_pstTrace)->m_uwExplIndex)
|
||||
|
||||
#define AIDebug_M_bBufferIsEmpty(_p_stTrace)\
|
||||
((!AIDebug_M_bBufferIsFull(_p_stTrace))&&(AIDebug_M_uwGetCurrentIndex(_p_stTrace)==0))
|
||||
|
||||
#define AIDebug_M_bIsValidIndex(_p_stTrace,_uwIndex)\
|
||||
( (_uwIndex<AIDebug_M_uwGetCurrentIndex(_p_stTrace))\
|
||||
||( (_uwIndex>=AIDebug_M_uwGetCurrentIndex(_p_stTrace))\
|
||||
&&(AIDebug_M_bBufferIsFull(_p_stTrace))\
|
||||
&&(_uwIndex<AIDebug_M_uwGetSizeOfBuffer(_p_stTrace)) ) )
|
||||
|
||||
#define AIDebug_M_uwGetPrevIndex(_p_stTrace,_uwIndex)\
|
||||
((unsigned short)( _uwIndex == 0 ? (AIDebug_M_uwGetSizeOfBuffer(_p_stTrace) - 1) : (_uwIndex - 1)))
|
||||
|
||||
#define AIDebug_M_uwGetBeginData(_p_stTrace)\
|
||||
(AIDebug_M_bBufferIsFull(_p_stTrace) ? AIDebug_M_uwGetCurrentIndex(_p_stTrace) : 0 )
|
||||
|
||||
/* to access the buffer */
|
||||
#define AIDebug_M_eGetNSectionType(_pstTrace,_nb)\
|
||||
(AIDebug_M_d_stGetBuffer(_pstTrace)[_nb].m_eSectionType)
|
||||
#define AIDebug_M_stGetNGetSetParam(_pstTrace,_nb)\
|
||||
(AIDebug_M_d_stGetBuffer(_pstTrace)[_nb].m_stGetSetParam)
|
||||
#define AIDebug_M_p_stGetNNode(_pstTrace,_nb)\
|
||||
(AIDebug_M_d_stGetBuffer(_pstTrace)[_nb].m_p_stNode)
|
||||
|
||||
/* initialize the trace */
|
||||
#define AIDebug_M_InitTrace(_p_stMind)\
|
||||
AIDebug_fn_vInitTrace(_p_stMind);\
|
||||
if(Erm_M_uwCheckError(AIDebug,C_ucErmDefaultChannel))\
|
||||
Erm_M_ClearLastError(C_ucErmDefaultChannel);
|
||||
|
||||
#define AIDebug_M_InitBuffer(_p_stMind)\
|
||||
AIDebug_fn_vInitBuffer(_p_stMind);\
|
||||
if(Erm_M_uwCheckError(AIDebug,C_ucErmDefaultChannel))\
|
||||
Erm_M_ClearLastError(C_ucErmDefaultChannel);
|
||||
|
||||
#define AIDebug_M_FreeBuffer(_p_stMind)\
|
||||
AIDebug_fn_vFreeBuffer(_p_stMind);\
|
||||
if(Erm_M_uwCheckError(AIDebug,C_ucErmDefaultChannel))\
|
||||
Erm_M_ClearLastError(C_ucErmDefaultChannel);
|
||||
|
||||
/* add inforamtions in the trace */
|
||||
#define AIDebug_M_EnterEngineLoop(_p_stMind)\
|
||||
AIDebug_fn_uwEnterEngineLoop(_p_stMind);\
|
||||
if(Erm_M_uwCheckError(AIDebug,C_ucErmDefaultChannel))\
|
||||
Erm_M_ClearLastError(C_ucErmDefaultChannel);
|
||||
|
||||
#define AIDebug_M_SetCurrentComport(_p_stMind,_p_stCurrentComport)\
|
||||
AIDebug_fn_uwSetCurrentComport(_p_stMind,_p_stCurrentComport);\
|
||||
if(Erm_M_uwCheckError(AIDebug,C_ucErmDefaultChannel))\
|
||||
Erm_M_ClearLastError(C_ucErmDefaultChannel);
|
||||
|
||||
#define AIDebug_M_uwAddSectionEntry(_pstMind,_eSecTyp,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_fn_uwAddSectionEntry(_pstMind,_eSecTyp,_pGetSetParam,_p_stNode);\
|
||||
if(Erm_M_uwCheckError(AIDebug,C_ucErmDefaultChannel))\
|
||||
Erm_M_ClearLastError(C_ucErmDefaultChannel);
|
||||
|
||||
#define AIDebug_M_uwAddSectionEntryUsingLong(_pstMind,_eSecTyp,_lValue,_p_stNode)\
|
||||
AIDebug_fn_uwAddSectionEntryUsingLong(_pstMind,_eSecTyp,_lValue,_p_stNode);\
|
||||
if(Erm_M_uwCheckError(AIDebug,C_ucErmDefaultChannel))\
|
||||
Erm_M_ClearLastError(C_ucErmDefaultChannel);
|
||||
|
||||
#define AIDebug_M_UpdateGetSetParam(_pstMind,_uwIndex,_pGetSetParam)\
|
||||
AIDebug_fn_vUpdateGetSetParam(_pstMind,_uwIndex,_pGetSetParam);\
|
||||
if(Erm_M_uwCheckError(AIDebug,C_ucErmDefaultChannel))\
|
||||
Erm_M_ClearLastError(C_ucErmDefaultChannel);
|
||||
|
||||
#define AIDebug_M_SetReflexOrAI(_p_stMind,_uwReflexOrAI)\
|
||||
AIDebug_M_uwAddSectionEntryUsingLong(_p_stMind,AIDebug_E_SecTyp_ReflexOrAI,(long)_uwReflexOrAI,0);
|
||||
|
||||
#define AIDebug_M_SetField(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_Field,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetConstant(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_Constant,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetDsgVar(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_DsgVar,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetButton(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_Button,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetEnvironmentRef(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_EnvRef,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetSectorRef(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_SectorRef,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetSurfaceRef(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_SurfaceRef,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetPersoRef(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_PersoRef,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetActionRef(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_ActionRef,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetReal(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_Real,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetVector(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_Vector,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetConstantVector(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_ConstantVector,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetWayPoint(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_WayPoint,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetModule(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_Module,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetDsgVarId(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_DsgVarId,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetMask(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_Mask,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetString(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_String,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetLipsSynchroRef(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_LipsSynchroRef,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetSoundEventRef(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_SoundEventRef,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetFamilyRef(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_FamilyRef,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetBeginMacro(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_BeginMacro,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetEndMacro(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_EndMacro,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetComport(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_Comport,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetKeyWord(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_KeyWord,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_PrepareCondition(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_Condition,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_PrepareFunction(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_Function,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_PrepareOperator(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_Operator,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetProcedure(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_Procedure,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_PrepareMetaAction(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_MetaAction,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_PrepareMacroRef(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_MacroRef,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_PrepareBeginMetaAction(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_BeginMetaAction,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetTextRef(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_TextRef,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetFontRef(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_FontRef,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetParticleGenerator(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_ParticleGenerator,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetObjectTableRef(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_ObjectTableRef,_pGetSetParam,_p_stNode);
|
||||
|
||||
#define AIDebug_M_SetGameMaterialRef(_p_stMind,_pGetSetParam,_p_stNode)\
|
||||
AIDebug_M_uwAddSectionEntry(_p_stMind,AIDebug_E_SecTyp_GameMaterialRef,_pGetSetParam,_p_stNode);
|
||||
|
||||
#endif /*ACTIVE_AIDEBUG*/
|
||||
|
||||
#endif /* __AID_TRACE_VARS__ */
|
||||
|
||||
#if !defined (__AID_TRACE_PROTOS__)
|
||||
#define __AID_TRACE_PROTOS__
|
||||
|
||||
#if defined(ACTIVE_AIDEBUG)
|
||||
|
||||
/**************************************/
|
||||
#if !defined(CPA_EXPORT)
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
|
||||
#endif /*CPA_EXPORT*/
|
||||
/**************************************/
|
||||
#undef extern
|
||||
#define EXTERN_AI_DLL extern
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* Initialisation */
|
||||
void AIDebug_fn_vInitTrace( struct AI_tdstMind_* );
|
||||
void AIDebug_fn_vInitBuffer( struct AI_tdstMind_* );
|
||||
void AIDebug_fn_vFreeBuffer( struct AI_tdstMind_* );
|
||||
|
||||
unsigned short AIDebug_fn_uwAddSectionEntry( struct AI_tdstMind_*, AIDebug_tdeSectionType, tdstGetSetParam*, tdstNodeInterpret* );
|
||||
/*unsigned short AIDebug_fn_uwPeekSectionEntry( struct AI_tdstMind_*, unsigned short, AIDebug_tdeSectionType*, tdstGetSetParam* );*/
|
||||
unsigned short AIDebug_fn_uwAddSectionEntryUsingLong( struct AI_tdstMind_*, AIDebug_tdeSectionType, long, tdstNodeInterpret* );
|
||||
unsigned short AIDebug_fn_uwEnterEngineLoop( struct AI_tdstMind_* );
|
||||
unsigned short AIDebug_fn_uwSetCurrentComport( struct AI_tdstMind_*, tdstComport* );
|
||||
void AIDebug_fn_vUpdateGetSetParam( struct AI_tdstMind_*, unsigned short, tdstGetSetParam* );
|
||||
|
||||
unsigned short AIDebug_fn_uwFindNextSection( AIDebug_tdstTrace*, unsigned short, AIDebug_tdeSectionType );
|
||||
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned short AIDebug_fn_bGetEnable( struct AI_tdstMind_* );
|
||||
EXTERN_AI_DLL CPA_EXPORT void AIDebug_fn_vSetEnable( struct AI_tdstMind_*, unsigned short );
|
||||
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned short AIDebug_fn_bInitExploitation
|
||||
(
|
||||
struct AI_tdstMind_*,
|
||||
AIDebug_tdeSectionType*,
|
||||
long*,
|
||||
tdstGetSetParam*,
|
||||
unsigned char*,
|
||||
tdstNodeInterpret**
|
||||
);
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned short AIDebug_fn_bGetNextEntry
|
||||
(
|
||||
struct AI_tdstMind_*,
|
||||
AIDebug_tdeSectionType*,
|
||||
long*,
|
||||
tdstGetSetParam*,
|
||||
unsigned char*,
|
||||
tdstNodeInterpret**
|
||||
);
|
||||
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned short AIDebug_fn_uwGetSizeOfTrace( struct AI_tdstMind_* );
|
||||
EXTERN_AI_DLL CPA_EXPORT void AIDebug_fn_vResizeTrace( struct AI_tdstMind_*, unsigned short );
|
||||
EXTERN_AI_DLL CPA_EXPORT void AIDebug_fn_vReinitTrace( struct AI_tdstMind_* );
|
||||
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#undef EXTERN_AI_DLL
|
||||
|
||||
#endif /*ACTIVE_AIDEBUG*/
|
||||
|
||||
#endif /* !__AID_TRACE_PROTOS__ */
|
||||
|
||||
#endif /* !ONLY_TYPES */
|
59
Rayman_X/cpa/public/AI/AIGame/ConvAct.h
Normal file
59
Rayman_X/cpa/public/AI/AIGame/ConvAct.h
Normal file
@@ -0,0 +1,59 @@
|
||||
#if !defined(__CONV_ACT_H__)
|
||||
#define __CONV_ACT_H__
|
||||
|
||||
#include "..\AiBase\Specif\AiOption.h"
|
||||
|
||||
/**************************************/
|
||||
#if !defined(CPA_EXPORT)
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
|
||||
#endif /*CPA_EXPORT*/
|
||||
/**************************************/
|
||||
#undef extern
|
||||
#define EXTERN_AI_DLL extern
|
||||
|
||||
/************************************************************************************************************************/
|
||||
/* Meta-Action for editor and/or debugger + readrule.c*/
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szGetMetaActionTypeInParamFromId(enum tdeMetaActionId_ eMetaActionId);
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szGetMetaActionTypeOutParamFromId(enum tdeMetaActionId_ eMetaActionId);
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeMetaActionId_ fn_eFindMetaActionIdFromEditorName(char *szMetaAction);
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szFindMetaActionEditorNameFromId(enum tdeMetaActionId_ eMetaActionId);
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szFindMetaActionScriptNameFromId(enum tdeMetaActionId_ eMetaActionId);
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeMetaActionId_ fn_eFindMetaActionIdFromScriptName(char *szMetaAction);
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeMetaActionId_ fn_eGetNbMetaAction(void);
|
||||
#define M_IsMetaActionIdValid(eMetaActionId) ((eMetaActionId)<fn_eGetNbMetaAction())
|
||||
|
||||
#if defined(_AI_LIB_)
|
||||
tdp_fn_p_stMetaActionInitFunctionPtr fn_p_fn_pGetMetaActionInitFunctionPtr(enum tdeMetaActionId_ eMetaActionId);
|
||||
tdp_fn_ucMetaActionFunctionPtr fn_p_fn_pGetMetaActionFunctionPtr(enum tdeMetaActionId_ eMetaActionId);
|
||||
#endif /* _AI_LIB_*/
|
||||
|
||||
#if !defined(OPTIMIZED_COMMAND)
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
#define M_METAACTION_ENTRY(a,b,english,c,d,e,f) a,b,english,c,d,e,f
|
||||
void fn_vDefineMetaActionEntry(enum tdeMetaActionId_ eMetaActionId,char *szMetaActionEditorName,char *szMetaActionEditorName_En,char *szMetaActionScriptName,tdp_fn_p_stMetaActionInitFunctionPtr p_fn_p_stMetaActionInitFunction,tdp_fn_ucMetaActionFunctionPtr p_fn_ucMetaActionFunction,char *szMetaActionTypeParam);
|
||||
#elif defined(_AI_LIB_)
|
||||
#define M_METAACTION_ENTRY(a,b,english,c,d,e,f) a,c,d,e,f
|
||||
void fn_vDefineMetaActionEntry(enum tdeMetaActionId_ eMetaActionId,char *szMetaActionScriptName,tdp_fn_p_stMetaActionInitFunctionPtr p_fn_p_stMetaActionInitFunction,tdp_fn_ucMetaActionFunctionPtr p_fn_ucMetaActionFunction,char *szMetaActionTypeParam);
|
||||
#endif
|
||||
|
||||
#if defined(__DEBUG_AI__)
|
||||
void fn_vInitMetaActionTable(tdp_fn_p_stMetaActionInitFunctionPtr fn_p_stDefaultActionInitFunctionPointer,tdp_fn_ucMetaActionFunctionPtr fn_ucDefaultActionFunctionPointer);
|
||||
void fn_vCheckMetaActionTable(tdp_fn_p_stMetaActionInitFunctionPtr fn_p_stDefaultActionInitFunctionPointer,tdp_fn_ucMetaActionFunctionPtr fn_ucDefaultActionFunctionPointer);
|
||||
#endif /* __DEBUG_AI__*/
|
||||
#endif /* OPTIMIZED_COMMAND*/
|
||||
|
||||
/*******************************************************************************/
|
||||
#undef EXTERN_AI_DLL
|
||||
|
||||
#endif /* __CONV_ACT_H__*/
|
68
Rayman_X/cpa/public/AI/AIGame/ConvCond.h
Normal file
68
Rayman_X/cpa/public/AI/AIGame/ConvCond.h
Normal file
@@ -0,0 +1,68 @@
|
||||
#if !defined(__CONV_COND_H__)
|
||||
#define __CONV_COND_H__
|
||||
|
||||
#include "..\AiBase\Specif\AiOption.h"
|
||||
|
||||
#ifdef CODEWARRIOR
|
||||
#include"AI\AIGame\TypePtr.h"
|
||||
#endif
|
||||
|
||||
/**************************************/
|
||||
#if !defined(CPA_EXPORT)
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
|
||||
#endif /*CPA_EXPORT*/
|
||||
/**************************************/
|
||||
#undef extern
|
||||
#define EXTERN_AI_DLL extern
|
||||
|
||||
/************************************************************************************************************************/
|
||||
|
||||
/* Condition*/
|
||||
/* for editor and/or debugger + readrule.c*/
|
||||
#if defined(__DEBUG_AI__) || defined (U64_AIDEBUG)
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szGetConditionTypeInParamFromId(enum tdeCondId_ eCondId);
|
||||
#endif /* __DEBUG_AI__*/
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szGetConditionTypeOutParamFromId(enum tdeCondId_ eCondId);
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeCondId_ fn_eFindConditionIdFromEditorName(char *szCondition);
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szFindConditionEditorNameFromId(enum tdeCondId_ eCondId);
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szFindConditionScriptNameFromId(enum tdeCondId_ eCondId);
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeCondId_ fn_eFindConditionIdFromScriptName(char *szCondition);
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeCondId_ fn_eGetNbCond();
|
||||
#define M_IsConditionIdValid(eCondId) ((eCondId)<fn_eGetNbCond())
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned char fn_ucGetConditionUltraOperator(enum tdeCondId_ eCondId);
|
||||
|
||||
#if defined(_AI_LIB_)
|
||||
tdp_fn_p_stConditionFunctionPtr fn_p_fn_pGetConditionFunctionPtr(enum tdeCondId_ eCondId);
|
||||
#endif
|
||||
|
||||
#if !defined(OPTIMIZED_COMMAND)
|
||||
void fn_vSetConditionUltraOperator(enum tdeCondId_ eCondId,unsigned char bFlag);
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
#define M_CONDITION_ENTRY(a,b,g,c,d,e) a,b,g,c,d,e
|
||||
void fn_vDefineConditionEntry(enum tdeCondId_ eCondId,char *szConditionEditorName,char *szConditionEditorName_En,char *szConditionScriptName,tdp_fn_p_stConditionFunctionPtr p_fn_p_stConditionFunction,char *szConditionTypeInParam);
|
||||
#elif defined(_AI_LIB_)
|
||||
#define M_CONDITION_ENTRY(a,b,g,c,d,e) a,c,d,e
|
||||
void fn_vDefineConditionEntry(enum tdeCondId_ eCondId,char *szConditionScriptName,tdp_fn_p_stConditionFunctionPtr p_fn_p_stConditionFunction,char *szConditionTypeInParam);
|
||||
#endif /* ACTIVE_EDITOR _AI_LIB_*/
|
||||
|
||||
#if defined(__DEBUG_AI__)
|
||||
void fn_vInitConditionTable(tdp_fn_p_stConditionFunctionPtr p_fn_p_stDefaultConditionFunctionPointer);
|
||||
void fn_vCheckConditionTable(tdp_fn_p_stConditionFunctionPtr p_fn_p_stDefaultConditionFunctionPointer);
|
||||
#endif /* __DEBUG_AI__*/
|
||||
#endif /* OPTIMIZED_COMMAND*/
|
||||
|
||||
/*******************************************************************************/
|
||||
#undef EXTERN_AI_DLL
|
||||
|
||||
#endif /* __CONV_COND_H__*/
|
287
Rayman_X/cpa/public/AI/AIGame/ConvCst.h
Normal file
287
Rayman_X/cpa/public/AI/AIGame/ConvCst.h
Normal file
@@ -0,0 +1,287 @@
|
||||
#if !defined(__CONV_CST_H__)
|
||||
#define __CONV_CST_H__
|
||||
|
||||
#define C_MAX_LENGTH_STRING 200
|
||||
|
||||
#define ULTRA_ABLE 1
|
||||
#define NOT_ULTRA_ABLE 0
|
||||
|
||||
#define STRING1_TO_CHAR(str1) ((char) (*((char *)str1)))
|
||||
|
||||
/* maximum number of parameters for meta-actions, functions, conditions, operators*/
|
||||
/* XB 25/05/99 */
|
||||
#ifndef U64
|
||||
#define C_MAX_NB_PARAM 8
|
||||
#else /* U64 */
|
||||
#if defined(AI_EXCLUDE_NEVER_USED) && defined(FINAL_VERSION)
|
||||
#define C_MAX_NB_PARAM 1
|
||||
#else
|
||||
#define C_MAX_NB_PARAM 6
|
||||
#endif
|
||||
#endif /* U64 */
|
||||
/* End XB 25/05/99 */
|
||||
|
||||
/**************************************************************** //
|
||||
* WARNING : Letters used * * //
|
||||
* ABCDEFGHIJKLMNOPQRSTUVWXYZ * * ======================================\
|
||||
* 11101111111111111111111111 * <======== PLEASE FILL THIS LINE * \\ |
|
||||
**************************************************************** \\ |
|
||||
!!! |
|
||||
!!! |
|
||||
WWWW WWWW AAAA RRRRRRR NNN NNN III NNN NNN GGGGGGG !!! |
|
||||
WWWW WWWW AA AA RRR RRR NNNNN NNN III NNNNN NNN GGG !!! |
|
||||
WWWW WWWW AAA AAA RRR RRR NNNNNN NNN III NNNNNN NNN GGG GGGG !!! |
|
||||
WWWWW WWWWW AAAAAAAAAA RRRRRRR NNN NNNNNN III NNN NNNNNN GGG GGG !!! ========/
|
||||
WWWWWWWWW AAA AAA RRR RRR NNN NNNNN III NNN NNNNN GGGGGGGGGG
|
||||
WWW WWW AAA AAA RRR RRR NNN NNN III NNN NNN GGGGGGGG 000
|
||||
|
||||
|
||||
**********************************************************************
|
||||
* DON'T USE C_..._PARAM, USE USE_...._PARAM INSTEAD *
|
||||
**********************************************************************
|
||||
|
||||
|
||||
PLEASE FILL szAutorizedTypeParam[] IN CONVERT.C
|
||||
|
||||
*/
|
||||
|
||||
/*******************************************************/
|
||||
/* WARNING : DON'T USE THE SAME LETTER TWICE ..........*/
|
||||
/*******************************************************/
|
||||
|
||||
/* must be uppercase*/
|
||||
#define C_NO_PARAM ""
|
||||
#define C_ACTION_PARAM "A" /* for editor*/
|
||||
#define C_ADDR_ACTION_PARAM "a"
|
||||
#define C_BOOLEAN_PARAM "B" /* for editor*/
|
||||
#define C_ADDR_BOOLEAN_PARAM "b"
|
||||
#define C_GMT_PARAM "C"
|
||||
#define C_ADDR_GMT_PARAM "c"
|
||||
#define C_ARRAY_PARAM "D"
|
||||
#define C_ADDR_ARRAY_PARAM "d"
|
||||
#define C_ZDE_PERSO_PARAM "E" /* for editor*/
|
||||
#define C_SURFACE_PARAM "F" /* for SRF_tdxHandleToSurface*/
|
||||
#define C_FAMILY_PARAM "G" /* hFamily = tdxHandleToFamilyList*/
|
||||
#define C_ENV_PARAM "H" /* hEnvironment = ENV_tdxHandleToEnvironment*/
|
||||
#define C_LIST_PARAM "I" /* for editor*/
|
||||
#define C_ADDR_LIST_PARAM "i"
|
||||
#define C_OBJECTTABLE_PARAM "J" /* hObjectTable*/
|
||||
#define C_MASK_PARAM "K" /* for GMT_mask*/
|
||||
#define C_LONG_PARAM "L" /* for integers (lValue)*/
|
||||
#define C_ADDR_LONG_PARAM "l"
|
||||
#define C_CHANNEL_PARAM "M"
|
||||
#define C_MODULE_PARAM C_CHANNEL_PARAM /* for Module (Id long)*/
|
||||
#define C_ZDE_MODULE_PARAM C_MODULE_PARAM /* for editor*/
|
||||
#define C_ZDD_MODULE_PARAM C_MODULE_PARAM /* for editor*/
|
||||
#define C_POWER_PARAM "N" /* for power in inventory */
|
||||
#define C_LIPSYNCHRO_PARAM "O" /* hLipSynchro*/
|
||||
#define C_PERSO_PARAM "P" /* for perso (p_stSuperObjValue)*/
|
||||
#define C_ALWAYS_PARAM C_PERSO_PARAM /*"?"*/
|
||||
#define C_PERSO_PARAM_ONLY "!"
|
||||
#define C_ADDR_PERSO_PARAM "p"
|
||||
#define C_COMPORT_PARAM "Q"
|
||||
#define C_ADDR_COMPORT_PARAM "q"
|
||||
#define C_SECTOR_PARAM "R" /* hSector = HIE_tdxHandleToSuperObject*/
|
||||
#define C_STRING_PARAM "S"
|
||||
#define C_MAP_PARAM C_STRING_PARAM
|
||||
#define C_TEXT_PARAM "T" /* for text*/
|
||||
#define C_ADDR_TEXT_PARAM "t"
|
||||
#define C_ZDM_PERSO_PARAM "U" /* for editor*/
|
||||
#define C_VECTOR_PARAM "V" /* for Vertex (stVertex)*/
|
||||
#define C_ADDR_VECTOR_PARAM "v"
|
||||
#define C_WAYPOINT_PARAM "W" /* for editor*/
|
||||
#define C_ADDR_WAYPOINT_PARAM "w"
|
||||
#define C_REAL_PARAM "X" /* for reals (xValue) */
|
||||
#define C_ADDR_REAL_PARAM "x"
|
||||
#define C_ZDD_PERSO_PARAM "Z" /* for editor*/
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
/* for Xavier only*/
|
||||
#define C_MY_REFLEX_COMPORT_PARAM "1"
|
||||
#define C_MY_INTELL_COMPORT_PARAM "2"
|
||||
#define C_REFLEX_COMPORT_PARAM "3"
|
||||
#define C_INTELL_COMPORT_PARAM "4"
|
||||
#else
|
||||
#define C_MY_REFLEX_COMPORT_PARAM C_COMPORT_PARAM
|
||||
#define C_MY_INTELL_COMPORT_PARAM C_COMPORT_PARAM
|
||||
#define C_REFLEX_COMPORT_PARAM C_COMPORT_PARAM
|
||||
#define C_INTELL_COMPORT_PARAM C_COMPORT_PARAM
|
||||
#endif
|
||||
|
||||
#define C_FONT_PARAM "5"
|
||||
#define C_BUTTON_PARAM "6" /* for button*/
|
||||
#define C_PARTICLEGENERATOR_PARAM "7"
|
||||
|
||||
#define C_MODEL_PARAM "8" /* for model*/
|
||||
#define C_SUPEROBJECT_PARAM "9"
|
||||
|
||||
#define C_SOUNDEVENT_PARAM "0"
|
||||
#define C_LIGHT_PARAM "<22>"
|
||||
#define C_CAPS_PARAM "#"
|
||||
#define C_ADDR_CAPS_PARAM C_CAPS_PARAM
|
||||
#define C_GRAPH_PARAM "$"
|
||||
#define C_ADDR_GRAPH_PARAM C_GRAPH_PARAM
|
||||
#define C_ZDR_PERSO_PARAM "r"
|
||||
|
||||
/* macros to use in defining meta-actions, functions, conditions, procedures (fn_vDefine....Entry)*/
|
||||
/* very simple in fact to do string concatenation with some defines*/
|
||||
/* comments prevent Lint information message 786 from raising during macro expansion*/
|
||||
#define USE_NO_PARAM C_NO_PARAM
|
||||
|
||||
#define USE_SUPEROBJECT_PARAM C_SUPEROBJECT_PARAM
|
||||
|
||||
#define USE_GMT_PARAM C_GMT_PARAM
|
||||
#define USE_RGB_PARAM C_LONG_PARAM C_LONG_PARAM C_LONG_PARAM
|
||||
#define USE_RGBA_PARAM USE_RGB_PARAM C_LONG_PARAM
|
||||
#define USE_COLOR_PARAM C_LONG_PARAM
|
||||
|
||||
#define USE_MODEL_PARAM C_MODEL_PARAM
|
||||
#define USE_ARRAY_PARAM C_ARRAY_PARAM
|
||||
|
||||
#define USE_MY_REFLEX_COMPORT_PARAM C_MY_REFLEX_COMPORT_PARAM
|
||||
#define USE_REFLEX_COMPORT_PARAM C_REFLEX_COMPORT_PARAM
|
||||
#define USE_MY_INTELL_COMPORT_PARAM C_MY_INTELL_COMPORT_PARAM
|
||||
#define USE_INTELL_COMPORT_PARAM C_INTELL_COMPORT_PARAM
|
||||
|
||||
#define USE_FAMILY_PARAM C_FAMILY_PARAM
|
||||
#define USE_CHANNEL_PARAM C_CHANNEL_PARAM
|
||||
#define USE_MASK_PARAM C_MASK_PARAM
|
||||
#define USE_BUTTON_PARAM C_BUTTON_PARAM
|
||||
#define USE_MAP_PARAM C_MAP_PARAM
|
||||
#define USE_STRING_PARAM C_STRING_PARAM
|
||||
#define USE_SURFACE_PARAM C_SURFACE_PARAM
|
||||
#define USE_POWER_PARAM C_POWER_PARAM
|
||||
|
||||
/* CGHT*/
|
||||
#define USE_LIPSYNCHRO_PARAM C_LIPSYNCHRO_PARAM
|
||||
#define USE_OBJECTTABLE_PARAM C_OBJECTTABLE_PARAM
|
||||
#define USE_SECTOR_PARAM C_SECTOR_PARAM
|
||||
#define USE_ENV_PARAM C_ENV_PARAM
|
||||
|
||||
#define USE_PERSO_PARAM C_PERSO_PARAM
|
||||
#define USE_ALWAYS_PARAM C_ALWAYS_PARAM
|
||||
/*#define USE_PERSO_PARAM_ONLY C_PERSO_PARAM_ONLY*/
|
||||
#define USE_PERSO_PARAM_ONLY C_PERSO_PARAM
|
||||
|
||||
#define USE_CONSTANT_PARAM C_LONG_PARAM
|
||||
#define USE_REAL_PARAM C_REAL_PARAM
|
||||
#define USE_VECTOR_PARAM C_VECTOR_PARAM
|
||||
#define USE_MODULE_PARAM C_MODULE_PARAM
|
||||
|
||||
#define USE_ZDM_PERSO_PARAM C_ZDM_PERSO_PARAM
|
||||
#define USE_ZDD_PERSO_PARAM C_ZDD_PERSO_PARAM
|
||||
#define USE_ZDD_MODULE_PARAM C_ZDD_MODULE_PARAM
|
||||
#define USE_ZDE_PERSO_PARAM C_ZDE_PERSO_PARAM
|
||||
#define USE_ZDE_MODULE_PARAM C_ZDE_MODULE_PARAM
|
||||
#define USE_ZDR_PERSO_PARAM C_ZDR_PERSO_PARAM
|
||||
|
||||
#define USE_WAYPOINT_PARAM C_WAYPOINT_PARAM
|
||||
#define USE_LIST_PARAM C_LIST_PARAM
|
||||
#define USE_ADDR_LIST_PARAM C_ADDR_LIST_PARAM
|
||||
|
||||
#define USE_ACTION_PARAM C_ACTION_PARAM
|
||||
#define USE_ADDR_LONG_PARAM C_ADDR_LONG_PARAM
|
||||
#define USE_ADDR_REAL_PARAM C_ADDR_REAL_PARAM
|
||||
#define USE_ADDR_WAY_PARAM C_ADDR_WAY_PARAM
|
||||
#define USE_ADDR_VECTOR_PARAM C_ADDR_VECTOR_PARAM
|
||||
#define USE_ADDR_PERSO_PARAM C_ADDR_PERSO_PARAM
|
||||
#define USE_ADDR_ARRAY_PARAM C_ADDR_ARRAY_PARAM
|
||||
|
||||
|
||||
#define USE_SOUNDEVENT_PARAM C_SOUNDEVENT_PARAM
|
||||
|
||||
#define USE_BOOLEAN_PARAM C_BOOLEAN_PARAM
|
||||
#define USE_2_BOOLEANS_PARAM /*lint -save -e786*/ USE_BOOLEAN_PARAM USE_BOOLEAN_PARAM /*lint -restore*/
|
||||
|
||||
#define USE_SURFACE_REAL_PARAM /*lint -save -e786*/ USE_SURFACE_PARAM USE_REAL_PARAM /*lint -restore*/
|
||||
#define USE_PERSO_CONSTANT_PARAM /*lint -save -e786*/ USE_PERSO_PARAM USE_CONSTANT_PARAM /*lint -restore*/
|
||||
#define USE_PERSO_REAL_PARAM /*lint -save -e786*/ USE_PERSO_PARAM USE_REAL_PARAM /*lint -restore*/
|
||||
#define USE_PERSO_2_REALS_PARAM /*lint -save -e786*/ USE_PERSO_REAL_PARAM USE_REAL_PARAM /*lint -restore*/
|
||||
#define USE_PERSO_3_REALS_PARAM /*lint -save -e786*/ USE_PERSO_2_REALS_PARAM USE_REAL_PARAM /*lint -restore*/
|
||||
#define USE_PERSO_CONSTANT_3_REALS_PARAM /*lint -save -e786*/ USE_PERSO_CONSTANT_PARAM USE_3_REALS_PARAM /*lint -restore*/
|
||||
|
||||
#define USE_PERSO_MY_REFLEX_COMPORT_PARAM /*lint -save -e786*/ USE_PERSO_PARAM_ONLY USE_MY_REFLEX_COMPORT_PARAM /*lint -restore*/
|
||||
#define USE_PERSO_REFLEX_COMPORT_PARAM /*lint -save -e786*/ USE_PERSO_PARAM_ONLY USE_REFLEX_COMPORT_PARAM /*lint -restore*/
|
||||
#define USE_PERSO_MY_INTELL_COMPORT_PARAM /*lint -save -e786*/ USE_PERSO_PARAM_ONLY USE_MY_INTELL_COMPORT_PARAM /*lint -restore*/
|
||||
#define USE_PERSO_INTELL_COMPORT_PARAM /*lint -save -e786*/ USE_PERSO_PARAM_ONLY USE_INTELL_COMPORT_PARAM /*lint -restore*/
|
||||
|
||||
#define USE_PERSO_CONSTANT_VECTOR_PARAM /*lint -save -e786*/ USE_PERSO_CONSTANT_PARAM USE_VECTOR_PARAM /*lint -restore*/
|
||||
#define USE_PERSO_VECTOR_PARAM /*lint -save -e786*/ USE_PERSO_PARAM USE_VECTOR_PARAM /*lint -restore*/
|
||||
|
||||
#define USE_2_CONSTANTS_PARAM /*lint -save -e786*/ USE_CONSTANT_PARAM USE_CONSTANT_PARAM /*lint -restore*/
|
||||
#define USE_3_CONSTANTS_PARAM /*lint -save -e786*/ USE_2_CONSTANTS_PARAM USE_CONSTANT_PARAM /*lint -restore*/
|
||||
#define USE_4_CONSTANTS_PARAM /*lint -save -e786*/ USE_3_CONSTANTS_PARAM USE_CONSTANT_PARAM /*lint -restore*/
|
||||
|
||||
#define USE_2_REALS_PARAM /*lint -save -e786*/ USE_REAL_PARAM USE_REAL_PARAM /*lint -restore*/
|
||||
#define USE_3_REALS_PARAM /*lint -save -e786*/ USE_2_REALS_PARAM USE_REAL_PARAM /*lint -restore*/
|
||||
#define USE_4_REALS_PARAM /*lint -save -e786*/ USE_3_REALS_PARAM USE_REAL_PARAM /*lint -restore*/
|
||||
|
||||
#define USE_2_PERSOS_PARAM /*lint -save -e786*/ USE_PERSO_PARAM USE_PERSO_PARAM /*lint -restore*/
|
||||
#define USE_3_PERSOS_PARAM /*lint -save -e786*/ USE_2_PERSOS_PARAM USE_PERSO_PARAM /*lint -restore*/
|
||||
#define USE_4_PERSOS_PARAM /*lint -save -e786*/ USE_3_PERSOS_PARAM USE_PERSO_PARAM /*lint -restore*/
|
||||
|
||||
/* Vertex param */
|
||||
#define USE_VECTOR_CONSTANT_PARAM /*lint -save -e786*/ USE_VECTOR_PARAM USE_CONSTANT_PARAM /*lint -restore*/
|
||||
#define USE_VECTOR_REAL_PARAM /*lint -save -e786*/ USE_VECTOR_PARAM USE_REAL_PARAM /*lint -restore*/
|
||||
#define USE_VECTOR_2_REALS_PARAM /*lint -save -e786*/ USE_VECTOR_REAL_PARAM USE_REAL_PARAM /*lint -restore*/
|
||||
#define USE_2_VECTORS_PARAM /*lint -save -e786*/ USE_VECTOR_PARAM USE_VECTOR_PARAM /*lint -restore*/
|
||||
#define USE_3_VECTORS_PARAM /*lint -save -e786*/ USE_2_VECTORS_PARAM USE_VECTOR_PARAM /*lint -restore*/
|
||||
|
||||
#define USE_VECTORID_PARAM /*lint -save -e786*/ USE_ADDR_VECTOR_PARAM /*lint -restore*/
|
||||
#define USE_2_VECTORIDS_PARAM /*lint -save -e786*/ USE_VECTORID_PARAM USE_VECTORID_PARAM /*lint -restore*/
|
||||
#define USE_3_VECTORIDS_PARAM /*lint -save -e786*/ USE_2_VECTORIDS_PARAM USE_VECTORID_PARAM /*lint -restore*/
|
||||
|
||||
/* CGHT */
|
||||
#define USE_MVV_PARAM /*lint -save -e786*/ USE_MODULE_PARAM USE_VECTOR_PARAM USE_VECTOR_PARAM /*lint -restore*/
|
||||
#define USE_MPV_PARAM /*lint -save -e786*/ USE_MODULE_PARAM USE_PERSO_PARAM USE_VECTOR_PARAM /*lint -restore*/
|
||||
|
||||
/* fonction de list*/
|
||||
#define USE_DSGVARIDLIST_CONSTANT_PARAM /*lint -save -e786*/ USE_ADDR_LIST_PARAM USE_CONSTANT_PARAM /*lint -restore*/
|
||||
#define USE_DSGVARIDLIST_ZDD_MODULE_PARAM /*lint -save -e786*/ USE_ADDR_LIST_PARAM USE_ZDD_MODULE_PARAM /*lint -restore*/
|
||||
#define USE_DSGVARIDLIST_ZDD_PERSO_PARAM /*lint -save -e786*/ USE_ADDR_LIST_PARAM USE_ZDD_PERSO_PARAM /*lint -restore*/
|
||||
#define USE_DSGVARIDLIST_PERSO_PARAM /*lint -save -e786*/ USE_ADDR_LIST_PARAM USE_PERSO_PARAM /*lint -restore*/
|
||||
|
||||
#define USE_DSGVARIDLIST_ZDE_PERSO_PARAM /*lint -save -e786*/ USE_ADDR_LIST_PARAM USE_ZDE_PERSO_PARAM /*lint -restore*/
|
||||
#define USE_DSGVARIDLIST_ZDE_MODULE_PARAM /*lint -save -e786*/ USE_ADDR_LIST_PARAM USE_ZDE_MODULE_PARAM /*lint -restore*/
|
||||
|
||||
#define USE_DSGVARIDLIST_ZDE_PERSO_MASK_PARAM /*lint -save -e786*/ USE_DSGVARIDLIST_ZDE_PERSO_PARAM USE_MASK_PARAM /*lint -restore*/
|
||||
#define USE_DSGVARIDLIST_ZDE_MODULE_MASK_PARAM /*lint -save -e786*/ USE_DSGVARIDLIST_ZDE_MODULE_PARAM USE_MASK_PARAM /*lint -restore*/
|
||||
#define USE_DSGVARIDLIST_PERSO_CONSTANT_PARAM /*lint -save -e786*/ USE_DSGVARIDLIST_PERSO_PARAM USE_CONSTANT_PARAM /*lint -restore*/
|
||||
#define USE_DSGVARIDLIST_2_CONSTANTS_PARAM /*lint -save -e786*/ USE_DSGVARIDLIST_CONSTANT_PARAM USE_CONSTANT_PARAM /*lint -restore*/
|
||||
|
||||
#define USE_DSGVARIDLIST_PARAM /*lint -save -e786*/ USE_ADDR_LIST_PARAM /*lint -restore*/
|
||||
#define USE_DSGVARIDLIST_FAMILY_PARAM /*lint -save -e786*/ USE_DSGVARIDLIST_PARAM USE_FAMILY_PARAM /*lint -restore*/
|
||||
#define USE_DSGVARIDLIST_MODEL_PARAM /*lint -save -e786*/ USE_DSGVARIDLIST_PARAM USE_MODEL_PARAM /*lint -restore*/
|
||||
#define USE_2_DSGVARIDLISTS_PARAM /*lint -save -e786*/ USE_DSGVARIDLIST_PARAM USE_DSGVARIDLIST_PARAM /*lint -restore*/
|
||||
#define USE_3_DSGVARIDLISTS_PARAM /*lint -save -e786*/ USE_2_DSGVARIDLISTS_PARAM USE_DSGVARIDLIST_PARAM /*lint -restore*/
|
||||
|
||||
/* ZDD + ZDE*/
|
||||
#define USE_PERSO_ZDD_PERSO_PARAM /*lint -save -e786*/ USE_PERSO_PARAM USE_ZDD_PERSO_PARAM /*lint -restore*/
|
||||
#define USE_PERSO_ZDE_PERSO_PARAM /*lint -save -e786*/ USE_PERSO_PARAM USE_ZDE_PERSO_PARAM /*lint -restore*/
|
||||
#define USE_PERSO_ZDD_MODULE_PARAM /*lint -save -e786*/ USE_PERSO_PARAM USE_ZDD_MODULE_PARAM /*lint -restore*/
|
||||
#define USE_PERSO_ZDE_MODULE_PARAM /*lint -save -e786*/ USE_PERSO_PARAM USE_ZDE_MODULE_PARAM /*lint -restore*/
|
||||
#define USE_PERSO_MASK_PARAM /*lint -save -e786*/ USE_PERSO_PARAM USE_MASK_PARAM /*lint -restore*/
|
||||
#define USE_ZDM_PERSO_VECTOR_PARAM /*lint -save -e786*/ USE_ZDM_PERSO_PARAM USE_VECTOR_PARAM /*lint -restore*/
|
||||
#define USE_PERSO_ZDM_PERSO_PARAM /*lint -save -e786*/ USE_PERSO_PARAM USE_ZDM_PERSO_PARAM /*lint -restore*/
|
||||
#define USE_PERSO_ZDR_PERSO_PARAM /*lint -save -e786*/ USE_PERSO_PARAM USE_ZDR_PERSO_PARAM /*lint -restore*/
|
||||
|
||||
#define USE_FONT_PARAM C_FONT_PARAM
|
||||
|
||||
#define USE_TEXT_PARAM C_TEXT_PARAM
|
||||
#define USE_ADDR_TEXT_PARAM C_ADDR_TEXT_PARAM
|
||||
|
||||
#define USE_PARTICLEGENERATOR_PARAM C_PARTICLEGENERATOR_PARAM
|
||||
|
||||
/*ANNECY CT 22/01/98 {*/
|
||||
#define USE_LIGHT_PARAM C_LIGHT_PARAM
|
||||
/*ENDANNECY CT}*/
|
||||
|
||||
/*ANNECY Bart 02/02/98 {*/
|
||||
#define USE_CAPS_PARAM C_CAPS_PARAM
|
||||
#define USE_GRAPH_PARAM C_GRAPH_PARAM
|
||||
|
||||
#define USE_ADDR_CAPS_PARAM C_ADDR_CAPS_PARAM
|
||||
#define USE_ADDR_GRAPH_PARAM C_ADDR_GRAPH_PARAM
|
||||
/*ENDANNECY Bart }*/
|
||||
|
||||
#endif /* __CONV_CST_H__*/
|
62
Rayman_X/cpa/public/AI/AIGame/ConvFild.h
Normal file
62
Rayman_X/cpa/public/AI/AIGame/ConvFild.h
Normal file
@@ -0,0 +1,62 @@
|
||||
#if !defined(__CONV_FILD_H__)
|
||||
#define __CONV_FILD_H__
|
||||
|
||||
#include "..\AiBase\Specif\AiOption.h"
|
||||
|
||||
/**************************************/
|
||||
#if !defined(CPA_EXPORT)
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
|
||||
#endif /*CPA_EXPORT*/
|
||||
/**************************************/
|
||||
#undef extern
|
||||
#define EXTERN_AI_DLL extern
|
||||
|
||||
/************************************************************************************************************************/
|
||||
/* Field for editor and/or debugger + readrule.c*/
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeFieldId_ fn_eFindFieldIdFromEditorName(char *szField);
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szFindFieldScriptNameFromId(enum tdeFieldId_ eFieldId);
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szFindFieldEditorNameFromId(enum tdeFieldId_ eFieldId);
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeVariableType_ fn_eGetFieldType(enum tdeFieldId_ eFieldId);
|
||||
enum tdeFieldTypeId_ fn_eGetEngineFieldType(enum tdeFieldId_ eFieldId);
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeFieldId_ fn_eFindFieldIdFromScriptName(char *szField);
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeFieldId_ fn_eGetNbField(void);
|
||||
#define M_IsFieldIdValid(eFieldId) ((eFieldId)<fn_eGetNbField())
|
||||
|
||||
#if defined(_AI_LIB_)
|
||||
tdp_fn_vGetTypeFunctionPtr fn_p_fn_pGetFieldTypeGetFunctionPtr(enum tdeFieldTypeId_ eFieldTypeId);
|
||||
tdp_fn_vSetTypeFunctionPtr fn_p_fn_pGetFieldTypeSetFunctionPtr(enum tdeFieldTypeId_ eFieldTypeId);
|
||||
tdp_fn_cGetFunctionPtr fn_p_fn_pGetFieldGetFunctionPtr(enum tdeFieldId_ eFieldId);
|
||||
tdp_fn_cSetFunctionPtr fn_p_fn_pGetFieldSetFunctionPtr(enum tdeFieldId_ eFieldId);
|
||||
#endif
|
||||
|
||||
#if !defined(OPTIMIZED_COMMAND)
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
#define M_FIELD_ENTRY(a,b,english,c,d,e,f) a,b,english,c,d,e,f
|
||||
void fn_vDefineFieldEntry(enum tdeFieldId_ eFieldId,char *szFieldEditorName,char *szFieldEditorName_En,char *szFieldScriptName,enum tdeFieldTypeId_ eType,tdp_fn_cGetFunctionPtr p_fn_cGetFieldFunction,tdp_fn_cSetFunctionPtr p_fn_cSetFieldFunction);
|
||||
#elif defined(_AI_LIB_)
|
||||
#define M_FIELD_ENTRY(a,b,english,c,d,e,f) a,c,d,e,f
|
||||
void fn_vDefineFieldEntry(enum tdeFieldId_ eFieldId,char *szFieldScriptName,enum tdeFieldTypeId_ eType,tdp_fn_cGetFunctionPtr p_fn_cGetFieldFunction,tdp_fn_cSetFunctionPtr p_fn_cSetFieldFunction);
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
|
||||
#if defined(__DEBUG_AI__)
|
||||
void fn_vInitFieldTable(tdp_fn_cGetFunctionPtr fn_cGetFieldDefaultFunctionPointer,tdp_fn_cSetFunctionPtr fn_cSetFieldDefaultFunctionPointer);
|
||||
void fn_vCheckFieldTable(tdp_fn_cGetFunctionPtr fn_cGetFieldDefaultFunctionPointer,tdp_fn_cSetFunctionPtr fn_cSetFieldDefaultFunctionPointer);
|
||||
#endif /* __DEBUG_AI__*/
|
||||
|
||||
#endif /* OPTIMIZED_COMMAND*/
|
||||
|
||||
|
||||
/*******************************************************************************/
|
||||
#undef EXTERN_AI_DLL
|
||||
|
||||
#endif /* __CONV_FILD_H__*/
|
64
Rayman_X/cpa/public/AI/AIGame/ConvFunc.h
Normal file
64
Rayman_X/cpa/public/AI/AIGame/ConvFunc.h
Normal file
@@ -0,0 +1,64 @@
|
||||
#if !defined(__CONV_FUNC_H__)
|
||||
#define __CONV_FUNC_H__
|
||||
|
||||
#include "..\AiBase\Specif\AiOption.h"
|
||||
|
||||
/**************************************/
|
||||
#if !defined(CPA_EXPORT)
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
|
||||
#endif /*CPA_EXPORT*/
|
||||
/**************************************/
|
||||
#undef extern
|
||||
#define EXTERN_AI_DLL extern
|
||||
|
||||
/************************************************************************************************************************/
|
||||
/* Function for editor and/or debugger + readrule.c*/
|
||||
#if defined(__DEBUG_AI__) || defined(ACTIVE_EDITOR)
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szFindFunctionScriptNameFromId(enum tdeFuncId_ eFuncId);
|
||||
#endif /* __DEBUG_AI__ ACTIVE_EDITOR*/
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szGetFunctionTypeOutParamFromId(enum tdeFuncId_ eFuncId);
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeFuncId_ fn_eFindFunctionIdFromEditorName(char *szFunction);
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szFindFunctionEditorNameFromId(enum tdeFuncId_ eFuncId);
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szGetFunctionTypeInParamFromId(enum tdeFuncId_ eFuncId);
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeFuncId_ fn_eGetNbFunc();
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeFuncId_ fn_eFindFunctionIdFromScriptName(char *szFunction);
|
||||
#define M_IsFuncIdValid(eFuncId) ((eFuncId)<fn_eGetNbFunc())
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned char fn_ucGetFunctionUltraOperator(enum tdeFuncId_ eFuncId);
|
||||
|
||||
#if defined(_AI_LIB_)
|
||||
tdp_fn_p_stFunctionFunctionPtr fn_p_fn_pGetFunctionFunctionPtr(enum tdeFuncId_ eFuncId);
|
||||
#endif /* _AI_LIB_*/
|
||||
|
||||
#if !defined(OPTIMIZED_COMMAND)
|
||||
|
||||
void fn_vSetFunctionUltraOperator(enum tdeFuncId_ eFuncId,unsigned char bFlag);
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
#define M_FUNCTION_ENTRY(a,b,english,c,d,e,f) a,b,english,c,d,e,f
|
||||
void fn_vDefineFunctionEntry(enum tdeFuncId_ eFuncId,char *szFunctionEditorName,char *szFunctionEditorName_En,char *szFunctionScriptName,tdp_fn_p_stFunctionFunctionPtr p_fn_p_stFunctionFunction,char *szFunctionTypeInParam,char *szFunctionTypeOutParam);
|
||||
#elif defined(_AI_LIB_)
|
||||
#define M_FUNCTION_ENTRY(a,b,english,c,d,e,f) a,c,d,e,f
|
||||
void fn_vDefineFunctionEntry(enum tdeFuncId_ eFuncId,char *szFunctionScriptName,tdp_fn_p_stFunctionFunctionPtr p_fn_p_stFunctionFunction,char *szFunctionTypeInParam,char *szFunctionTypeOutParam);
|
||||
#endif /* ACTIVE_EDITOR _AI_LIB_*/
|
||||
|
||||
#if defined(__DEBUG_AI__)
|
||||
void fn_vInitFunctionTable(tdp_fn_p_stFunctionFunctionPtr fn_p_stDefaultFunctionFunctionPointer);
|
||||
void fn_vCheckFunctionTable(tdp_fn_p_stFunctionFunctionPtr fn_p_stDefaultFunctionFunctionPointer);
|
||||
#endif /* __DEBUG_AI__*/
|
||||
|
||||
#endif /* OPTIMIZED_COMMAND*/
|
||||
|
||||
/*******************************************************************************/
|
||||
#undef EXTERN_AI_DLL
|
||||
|
||||
#endif /* __CONV_FUNC_H__*/
|
65
Rayman_X/cpa/public/AI/AIGame/ConvKey.h
Normal file
65
Rayman_X/cpa/public/AI/AIGame/ConvKey.h
Normal file
@@ -0,0 +1,65 @@
|
||||
#if !defined(__CONV_KEY_H__)
|
||||
#define __CONV_KEY_H__
|
||||
|
||||
#include "..\AIBase\specif\AiOption.h"
|
||||
#ifdef CODEWARRIOR
|
||||
#include"AI\AIGame\TypePtr.h"
|
||||
#endif
|
||||
|
||||
/**************************************/
|
||||
#if !defined(CPA_EXPORT)
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
|
||||
#endif /*CPA_EXPORT*/
|
||||
/**************************************/
|
||||
#undef extern
|
||||
#define EXTERN_AI_DLL extern
|
||||
|
||||
/************************************************************************************************************************/
|
||||
/* KeyWord for editor and/or debugger + readrule.c*/
|
||||
#if defined(ACTIVE_EDITOR) || defined (U64_AIDEBUG)
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szGetKeyWordTypeInParamFromId(enum tdeKeyWordId_ eKeyWordId);
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szGetKeyWordTypeOutParamFromId(enum tdeKeyWordId_ eKeyWordId);
|
||||
#endif /* ACTIVE_EDITOR || defined (U64_AIDEBUG)*/
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szFindKeyWordScriptNameFromId(enum tdeKeyWordId_ eKeyWordId);
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szFindKeyWordEditorNameFromId(enum tdeKeyWordId_ eKeyWordId);
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeKeyWordId_ fn_eFindKeyWordIdFromEditorName(char *szKeyWord);
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeKeyWordId_ fn_eFindKeyWordIdFromScriptName(char *szKeyWord);
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeKeyWordId_ fn_eGetNbKeyWord();
|
||||
#define M_IsKeyWordIdValid(eKeyWordId) ((eKeyWordId)<fn_eGetNbKeyWord())
|
||||
|
||||
#if defined(_AI_LIB_)
|
||||
tdp_fn_p_stKeyWordFunctionPtr fn_p_fn_pGetKeyWordFunctionPtr(enum tdeKeyWordId_ eKeyWordId);
|
||||
#endif /* _AI_LIB_*/
|
||||
|
||||
#if !defined(OPTIMIZED_COMMAND)
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
#define M_KEYWORD_ENTRY(a,b,g,c,d,e,f) a,b,g,c,d,e,f
|
||||
void fn_vDefineKeyWordEntry(enum tdeKeyWordId_ eKeyWordId,char *szKeyWordEditorName,char *szKeyWordEditorName_En,char *szKeyWordScriptName,tdp_fn_p_stKeyWordFunctionPtr p_fn_p_stKeyWordFunction,char *szKeyWordTypeInParam,char *szKeyWordTypeOutParam);
|
||||
#elif defined(_AI_LIB_)
|
||||
#define M_KEYWORD_ENTRY(a,b,g,c,d,e,f) a,c,d,e,f
|
||||
void fn_vDefineKeyWordEntry(enum tdeKeyWordId_ eKeyWordId,char *szKeyWordScriptName,tdp_fn_p_stKeyWordFunctionPtr p_fn_p_stKeyWordFunction,char *szKeyWordTypeInParam,char *szKeyWordTypeOutParam);
|
||||
#endif /* ACTIVE_EDITOR _AI_LIB_*/
|
||||
|
||||
#if defined(__DEBUG_AI__)
|
||||
void fn_vInitKeyWordTable(tdp_fn_p_stKeyWordFunctionPtr fn_p_stDefaultKeyWordFunctionPointer);
|
||||
void fn_vCheckKeyWordTable(tdp_fn_p_stKeyWordFunctionPtr fn_p_stDefaultKeyWordFunctionPointer);
|
||||
#endif /* __DEBUG_AI__*/
|
||||
|
||||
#endif /* OPTIMIZED_COMMAND*/
|
||||
|
||||
|
||||
/*******************************************************************************/
|
||||
#undef EXTERN_AI_DLL
|
||||
|
||||
#endif /* __CONV_KEY_H__*/
|
62
Rayman_X/cpa/public/AI/AIGame/ConvOper.h
Normal file
62
Rayman_X/cpa/public/AI/AIGame/ConvOper.h
Normal file
@@ -0,0 +1,62 @@
|
||||
#if !defined(__CONV_OPER_H__)
|
||||
#define __CONV_OPER_H__
|
||||
|
||||
#include "..\AiBase\Specif\AiOption.h"
|
||||
|
||||
/**************************************/
|
||||
#if !defined(CPA_EXPORT)
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
|
||||
#endif /*CPA_EXPORT*/
|
||||
/**************************************/
|
||||
#undef extern
|
||||
#define EXTERN_AI_DLL extern
|
||||
|
||||
/************************************************************************************************************************/
|
||||
|
||||
/*************************************************************************************/
|
||||
/* Converted in function pointers */
|
||||
/* Operator*/
|
||||
/* for editor and/or debugger + readrule.c*/
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szGetOperatorTypeInParamFromId(enum tdeOperatorId_ eOperatorId);
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szGetOperatorTypeOutParamFromId(enum tdeOperatorId_ eOperatorId);
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeOperatorId_ fn_eFindOperatorIdFromEditorName(char *szOperator);
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szFindOperatorEditorNameFromId(enum tdeOperatorId_ eOperatorId);
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szFindOperatorScriptNameFromId(enum tdeOperatorId_ eOperatorId);
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeOperatorId_ fn_eFindOperatorIdFromScriptName(char *szOperator);
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeOperatorId_ fn_eGetNbOperator();
|
||||
#define M_IsOperatorIdValid(eOperatorId) ((eOperatorId)<fn_eGetNbOperator())
|
||||
|
||||
#if defined(_AI_LIB_)
|
||||
tdp_fn_p_stOperatorFunctionPtr fn_p_fn_pGetOperatorFunctionPtr(enum tdeOperatorId_ eOperatorId);
|
||||
#endif /* _AI_LIB_*/
|
||||
|
||||
#if !defined(OPTIMIZED_COMMAND)
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
#define M_OPERATOR_ENTRY(a,b,c,d,e,f) a,b,c,d,e,f
|
||||
void fn_vDefineOperatorEntry(enum tdeOperatorId_ eOperatorId,char *szOperatorEditorName,char *szOperatorScriptName,tdp_fn_p_stOperatorFunctionPtr p_fn_p_stOperatorFunction,char *szOperatorTypeInParam,char *szOperatorTypeOutParam);
|
||||
#elif defined(_AI_LIB_)
|
||||
#define M_OPERATOR_ENTRY(a,b,c,d,e,f) a,c,d,e,f
|
||||
void fn_vDefineOperatorEntry(enum tdeOperatorId_ eOperatorId,char *szOperatorScriptName,tdp_fn_p_stOperatorFunctionPtr p_fn_p_stOperatorFunction,char *szOperatorTypeInParam,char *szOperatorTypeOutParam);
|
||||
#endif /* ACTIVE_EDITOR _AI_LIB_*/
|
||||
|
||||
#if defined(__DEBUG_AI__)
|
||||
void fn_vInitOperatorTable(tdp_fn_p_stOperatorFunctionPtr fn_p_stDefaultOperatorFunctionPointer);
|
||||
void fn_vCheckOperatorTable(tdp_fn_p_stOperatorFunctionPtr fn_p_stDefaultOperatorFunctionPointer);
|
||||
#endif /* __DEBUG_AI__*/
|
||||
|
||||
#endif /* OPTIMIZED_COMMAND*/
|
||||
|
||||
/*******************************************************************************/
|
||||
#undef EXTERN_AI_DLL
|
||||
|
||||
#endif /* __CONV_OPER_H__*/
|
64
Rayman_X/cpa/public/AI/AIGame/ConvProc.h
Normal file
64
Rayman_X/cpa/public/AI/AIGame/ConvProc.h
Normal file
@@ -0,0 +1,64 @@
|
||||
#if !defined(__CONV_PROC_H__)
|
||||
#define __CONV_PROC_H__
|
||||
|
||||
#include "..\AiBase\Specif\AiOption.h"
|
||||
|
||||
/**************************************/
|
||||
#if !defined(CPA_EXPORT)
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
|
||||
#endif /*CPA_EXPORT*/
|
||||
/**************************************/
|
||||
#undef extern
|
||||
#define EXTERN_AI_DLL extern
|
||||
|
||||
/************************************************************************************************************************/
|
||||
|
||||
/* Procedure for editor and/or debugger + readrule.c*/
|
||||
#if defined(__DEBUG_AI__) || defined(ACTIVE_EDITOR) || defined (U64_AIDEBUG)
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szGetProcedureTypeInParamFromId(enum tdeProcedureId_ eProcedureId);
|
||||
#endif /* __DEBUG_AI__ ACTIVE_EDITOR*/
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szGetProcedureTypeOutParamFromId(enum tdeProcedureId_ eProcedureId);
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeProcedureId_ fn_eFindProcedureIdFromEditorName(char *szProcedure);
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szFindProcedureEditorNameFromId(enum tdeProcedureId_ eProcedureId);
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szFindProcedureScriptNameFromId(enum tdeProcedureId_ eProcedureId);
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeProcedureId_ fn_eFindProcedureIdFromScriptName(char *szFunction);
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeProcedureId_ fn_eGetNbProcedure();
|
||||
#define M_IsProcedureIdValid(eProcId) ((eProcId) < fn_eGetNbProcedure())
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned char fn_ucGetProcedureUltraOperator(enum tdeProcedureId_ eProcId);
|
||||
|
||||
#if defined(_AI_LIB_)
|
||||
tdp_fn_p_stProcedureFunctionPtr fn_p_fn_pGetProcedureFunctionPtr(enum tdeProcedureId_ eProcedureId);
|
||||
#endif /* _AI_LIB_*/
|
||||
|
||||
#if !defined(OPTIMIZED_COMMAND)
|
||||
void fn_vSetProcedureUltraOperator(enum tdeProcedureId_ eProcId,unsigned char bFlag);
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
#define M_PROCEDURE_ENTRY(a,b,english,c,d,e) a,b,english,c,d,e
|
||||
void fn_vDefineProcedureEntry(enum tdeProcedureId_ eProcedureId,char *szProcedureEditorName,char *szProcedureEditorName_En,char *szProcedureScriptName,tdp_fn_p_stProcedureFunctionPtr p_fn_p_stProcedureFunction,char *szProcedureTypeInParam);
|
||||
#elif defined(_AI_LIB_)
|
||||
#define M_PROCEDURE_ENTRY(a,b,english,c,d,e) a,c,d,e
|
||||
void fn_vDefineProcedureEntry(enum tdeProcedureId_ eProcedureId,char *szProcedureScriptName,tdp_fn_p_stProcedureFunctionPtr p_fn_p_stProcedureFunction,char *szProcedureTypeInParam);
|
||||
#endif /* ACTIVE_EDITOR _AI_LIB_*/
|
||||
|
||||
#if defined(__DEBUG_AI__)
|
||||
void fn_vInitProcedureTable(tdp_fn_p_stProcedureFunctionPtr fn_p_stDefaultProcedureFunctionPointer);
|
||||
void fn_vCheckProcedureTable(tdp_fn_p_stProcedureFunctionPtr fn_p_stDefaultProcedureFunctionPointer);
|
||||
#endif /* __DEBUG_AI__*/
|
||||
|
||||
#endif /* OPTIMIZED_COMMAND*/
|
||||
|
||||
/*******************************************************************************/
|
||||
#undef EXTERN_AI_DLL
|
||||
|
||||
#endif /* __CONV_PROC_H__*/
|
94
Rayman_X/cpa/public/AI/AIGame/ConvVar.h
Normal file
94
Rayman_X/cpa/public/AI/AIGame/ConvVar.h
Normal file
@@ -0,0 +1,94 @@
|
||||
#if !defined(__CONV_VAR_H__)
|
||||
#define __CONV_VAR_H__
|
||||
|
||||
#include "..\AiBase\Specif\AiOption.h"
|
||||
|
||||
/**************************************/
|
||||
#if !defined(CPA_EXPORT)
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
|
||||
#endif /*CPA_EXPORT*/
|
||||
/**************************************/
|
||||
#undef extern
|
||||
#define EXTERN_AI_DLL extern
|
||||
|
||||
/************************************************************************************************************************/
|
||||
/* DsgVar*/
|
||||
#if defined(__DEBUG_AI__)
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szFindDsgVarTypeScriptNameFromId(enum tdeDsgVarTypeId_ eDsgVarTypeId);
|
||||
#endif
|
||||
|
||||
#if defined(_AI_LIB_)
|
||||
tdp_fn_ucGetDsgVarFunctionPtr fn_p_fn_pGetDsgVarGetFunctionPtr(enum tdeDsgVarTypeId_ eDsgVarTypeId);
|
||||
tdp_fn_ucSetDsgVarFunctionPtr fn_p_fn_pGetDsgVarSetFunctionPtr(enum tdeDsgVarTypeId_ eDsgVarTypeId);
|
||||
#endif
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeDsgVarTypeId_ fn_eFindDsgVarTypeIdFromEditorName(char *szDsgVarType);
|
||||
EXTERN_AI_DLL CPA_EXPORT char *szFindDsgVarTypeEditorNameFromId(enum tdeDsgVarTypeId_ eDsgVarTypeId);
|
||||
|
||||
EXTERN_AI_DLL CPA_EXPORT char *fn_szFindStringTypeFromVariableType(enum tdeVariableType_ eType);
|
||||
EXTERN_AI_DLL CPA_EXPORT char *fn_szFindStringTypeFromDsgVarType(enum tdeDsgVarTypeId_ eDsgVarTypeId);
|
||||
EXTERN_AI_DLL CPA_EXPORT char *fn_szFindStringSubTypeFromDsgVarType(enum tdeDsgVarTypeId_ eDsgVarTypeId);
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeVariableType_ fn_GetDsgVarType(enum tdeDsgVarTypeId_ eDsgVarTypeId);
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeDsgVarTypeId_ fn_eFindDsgVarTypeIdFromScriptName(char *szDsgVarType);
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeDsgVarTypeId_ fn_eGetNbDsgVarType();
|
||||
#define M_IsDsgVarTypeIdValid(eDsgVarTypeId) ((eDsgVarTypeId)<fn_eGetNbDsgVarType())
|
||||
/*************************************************************************************/
|
||||
|
||||
/*************************************************************************************/
|
||||
/* SAI save type*/
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned char fn_ucDefaultSaveTypeNumber();
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned char fn_ucGetSaveTypeNumber();
|
||||
EXTERN_AI_DLL CPA_EXPORT char *fn_szFindScriptNameFromSaveTypeNumber(unsigned char ucSaveTypeNumber);
|
||||
|
||||
#if defined(_AI_LIB_)
|
||||
EXTERN_AI_DLL CPA_EXPORT SAI_tdeFlags fn_eFindSaveTypeFromScriptName(char *szSaveType, char *_p_szPersoName, unsigned char _ucVarId);
|
||||
EXTERN_AI_DLL CPA_EXPORT SAI_tdeFlags fn_eFindSaveTypeFromSaveTypeNumber(unsigned char ucSaveTypeNumber);
|
||||
#endif /* _AI_LIB_*/
|
||||
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
EXTERN_AI_DLL CPA_EXPORT char *fn_szFindEditorNameFromSaveTypeNumber(unsigned char ucSaveTypeNumber);
|
||||
#if defined(_AI_LIB_)
|
||||
EXTERN_AI_DLL CPA_EXPORT SAI_tdeFlags fn_eFindSaveTypeFromEditorName(char *szSaveType);
|
||||
EXTERN_AI_DLL CPA_EXPORT char *fn_szFindEditorNameFromSaveType(SAI_tdeFlags eFlags);
|
||||
EXTERN_AI_DLL CPA_EXPORT char *fn_szFindScriptNameFromSaveType(SAI_tdeFlags eFlags);
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned char fn_ucFindSaveTypeNumberFromScriptName(char *szSaveType);
|
||||
#endif /* _AI_LIB_*/
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
/*************************************************************************************/
|
||||
|
||||
/*************************************************************************************/
|
||||
/* OTI init type*/
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned char fn_ucDefaultInitTypeNumber();
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned char fn_ucGetInitTypeNumber();
|
||||
EXTERN_AI_DLL CPA_EXPORT char *fn_szFindScriptNameFromInitTypeNumber(unsigned char ucInitTypeNumber);
|
||||
|
||||
#if defined(_AI_LIB_)
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeObjectTreeInit_ fn_eFindInitTypeFromScriptName(char *szInitType);
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeObjectTreeInit_ fn_eFindInitTypeFromInitTypeNumber(unsigned char ucInitTypeNumber);
|
||||
#endif /* _AI_LIB_*/
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
EXTERN_AI_DLL CPA_EXPORT char *fn_szFindEditorNameFromInitTypeNumber(unsigned char ucInitTypeNumber);
|
||||
#if defined(_AI_LIB_)
|
||||
EXTERN_AI_DLL CPA_EXPORT enum tdeObjectTreeInit_ fn_eFindInitTypeFromEditorName(char *szInitType);
|
||||
EXTERN_AI_DLL CPA_EXPORT char *fn_szFindEditorNameFromInitType(enum tdeObjectTreeInit_ eFlags);
|
||||
EXTERN_AI_DLL CPA_EXPORT char *fn_szFindScriptNameFromInitType(enum tdeObjectTreeInit_ eFlags);
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned char fn_ucFindInitTypeNumberFromScriptName(char *szInitType);
|
||||
#endif /* _AI_LIB_*/
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
/*************************************************************************************/
|
||||
|
||||
/*******************************************************************************/
|
||||
#undef EXTERN_AI_DLL
|
||||
|
||||
#endif /* __CONV_VAR_H__*/
|
135
Rayman_X/cpa/public/AI/AIGame/Convert.h
Normal file
135
Rayman_X/cpa/public/AI/AIGame/Convert.h
Normal file
@@ -0,0 +1,135 @@
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Convert.h : Convert Id <-> string (mainly usefull for editor)*/
|
||||
/* creation : 17/01/1997 (Olivier Couvreur)*/
|
||||
/* modify : 29/01/1997 (Fabien Morales) Vertex param*/
|
||||
/* modify : 31/01/1997 (Olivier Couvreur) Lint verification + tdstInfoParamTableEntry_ struct*/
|
||||
/* modify : 04/02/1997 (Olivier Couvreur) Lint 0 Warnings*/
|
||||
/* modify : 05/02/1997 (Fabien Morales) add special param defines*/
|
||||
/* modify : 12/02/1997 (Fabien Morales) Module & DsgVarId param types*/
|
||||
/* modify : 18/02/1997 (Olivier Couvreur) Function List param types*/
|
||||
/* modify : 21/02/1997 (Olivier Couvreur) new param types for editor*/
|
||||
/* modify : 25/03/1997 (Olivier Couvreur) ACTIVE_EDITOR support*/
|
||||
/* modify : 27/05/1997 (Olivier Couvreur) ZDD + ZDE stuff*/
|
||||
/* modify : 26/06/1997 (Olivier Couvreur) function pointers for operators*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(__CONVERT_H__)
|
||||
#define __CONVERT_H__
|
||||
|
||||
#include "..\AIBase\Specif\AIOption.h"
|
||||
#include "TypePtr.h"
|
||||
|
||||
#if defined(U64)
|
||||
#include "EnumKey.h"
|
||||
#include "EnumCond.h"
|
||||
#include "EnumFunc.h"
|
||||
#include "EnumOper.h"
|
||||
#include "EnumProc.h"
|
||||
#include "EnumAct.h"
|
||||
#include "EnumFild.h"
|
||||
#include "EnumVar.h"
|
||||
#endif /* U64 */
|
||||
|
||||
|
||||
#include "ConvCst.h"
|
||||
|
||||
#include "ConvKey.h"
|
||||
#include "ConvCond.h"
|
||||
#include "ConvFunc.h"
|
||||
#include "ConvOper.h"
|
||||
#include "ConvProc.h"
|
||||
#include "ConvAct.h"
|
||||
#include "ConvFild.h"
|
||||
#include "ConvVar.h"
|
||||
|
||||
|
||||
|
||||
/**************************************/
|
||||
#if !defined(CPA_EXPORT)
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
|
||||
#endif /*CPA_EXPORT*/
|
||||
/**************************************/
|
||||
#undef extern
|
||||
#define EXTERN_AI_DLL extern
|
||||
|
||||
/************************************************************************************************************************/
|
||||
|
||||
#if !defined(OPTIMIZED_COMMAND)
|
||||
EXTERN_AI_DLL CPA_EXPORT char *fn_szGetAutorizedTypeParam(void);
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned char fn_ucCheckTypeParam(char *szTypeParam);
|
||||
#endif /* OPTIMIZED_COMMAND*/
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
EXTERN_AI_DLL CPA_EXPORT ACP_tdxBool fn_bIsCompatibleTypeForAffect(char c1,char c2);
|
||||
EXTERN_AI_DLL CPA_EXPORT ACP_tdxBool fn_bIsCompatibleType(char c1,char c2);
|
||||
EXTERN_AI_DLL CPA_EXPORT ACP_tdxBool fn_bIsCompatibleStringType(char *szType1,char *szType2);
|
||||
EXTERN_AI_DLL CPA_EXPORT ACP_tdxBool fn_bIsCompatibleStringTypeForAffect(char *szType1,char *szType2);
|
||||
|
||||
/*EXTERN_AI_DLL CPA_EXPORT char fn_cGetCompatibleType(char c1,char c2);*/
|
||||
/*EXTERN_AI_DLL CPA_EXPORT char *fn_szGetCompatibleStringType(char *szType1,char *szType2);*/
|
||||
/*EXTERN_AI_DLL CPA_EXPORT char *fn_szFindStringTypeFromVariableType(enum tdeVariableType_ eType);*/
|
||||
EXTERN_AI_DLL CPA_EXPORT ACP_tdxBool IsADDRType(char cType);
|
||||
EXTERN_AI_DLL CPA_EXPORT char fn_cConvertToADDRType(char cType);
|
||||
EXTERN_AI_DLL CPA_EXPORT char fn_cConvertFromADDRType(char cType);
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
|
||||
/**********************************************************************************************************/
|
||||
/* Nb Entries in action table*/
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned char fn_ucGetDefaultActionTableNbEntries();
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned char fn_ucGetMinActionTableNbEntries();
|
||||
EXTERN_AI_DLL CPA_EXPORT unsigned char fn_ucGetMaxActionTableNbEntries();
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
/**********************************************************************************************************/
|
||||
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vReSetStopAIEngineFlag(); /*** DR ***/
|
||||
|
||||
|
||||
/**********************************************************************************************************/
|
||||
/* To generate the multilanguage file very soon used by XB */
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
#define AI_MULTI_LANGUAGE_SCRIPT "AILANGUE.TXT"
|
||||
|
||||
#define AI_ALL_METAACTIONS "CreateAllMetaActions"
|
||||
#define AI_ONE_METAACTION "CreateOneMetaAction"
|
||||
|
||||
#define AI_ALL_PROCEDURES "CreateAllProcedures"
|
||||
#define AI_ONE_PROCEDURE "CreateOneProcedure"
|
||||
|
||||
#define AI_ALL_FUNCTIONS "CreateAllFunctions"
|
||||
#define AI_ONE_FUNCTION "CreateOneFunction"
|
||||
|
||||
#define AI_ALL_CONDITIONS "CreateAllConditions"
|
||||
#define AI_ONE_CONDITION "CreateOneCondition"
|
||||
|
||||
#define AI_ALL_KEYWORDS "CreateAllKeyWords"
|
||||
#define AI_ONE_KEYWORD "CreateOneKeyWord"
|
||||
|
||||
#define AI_ALL_FIELDS "CreateAllFields"
|
||||
#define AI_ONE_FIELD "CreateOneField"
|
||||
|
||||
#define AI_ALL_DSGVAR_TYPES "CreateAllDsgVarTypes"
|
||||
#define AI_ONE_DSGVAR_TYPE "CreateOneDsgVarType"
|
||||
|
||||
#define AI_ALL_DSGVAR_INIT_TYPES "CreateAllDsgVarInitTypes"
|
||||
#define AI_ONE_DSGVAR_INIT_TYPE "CreateOneDsgVarInitType"
|
||||
|
||||
#define AI_ALL_DSGVAR_SAVE_TYPES "CreateAllDsgVarSaveTypes"
|
||||
#define AI_ONE_DSGVAR_SAVE_TYPE "CreateOneDsgVarSaveType"
|
||||
|
||||
#define AI_FRENCH "French"
|
||||
#define AI_ENGLISH "English"
|
||||
|
||||
EXTERN_AI_DLL CPA_EXPORT void fn_vWriteAILangue();
|
||||
#endif /*ACTIVE_EDITOR*/
|
||||
/**********************************************************************************************************/
|
||||
|
||||
#undef EXTERN_AI_DLL
|
||||
|
||||
#endif /* __CONVERT_H__*/
|
35
Rayman_X/cpa/public/AI/AIGame/DefAct.h
Normal file
35
Rayman_X/cpa/public/AI/AIGame/DefAct.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#if !defined(M_DEFINE_METAACTION)
|
||||
#error You should define M_DEFINE_METAACTION accordingly before including this file !
|
||||
#endif
|
||||
|
||||
/*
|
||||
* 6 parameters to define a metaaction : enum , editor name, script name, functions pointers init next in actmain.c, in params.
|
||||
*/
|
||||
|
||||
/************************************************************************************************
|
||||
* le #ifdef suivant permet d'exclure les fonctions inutilis<69>es
|
||||
* Merci
|
||||
* Marc
|
||||
************************************************************************************************/
|
||||
#if defined(_AI_EXCLUDE_NEVER_USED_) /* MT {*/
|
||||
#define NU_M_DEFINE_METAACTION(a,b,english,c,d,e,f)
|
||||
#else
|
||||
#define NU_M_DEFINE_METAACTION M_DEFINE_METAACTION
|
||||
#endif /* _AI_EXCLUDE_NEVER_USED_ }*/
|
||||
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_METAACTION(eMetaAction_FrozenWait ,"Temps_AttenteFigee", "TIME_FrozenWait", "Action_FrozenWait", fn_p_stFrozenWaitInit,fn_ucFrozenWait,USE_CONSTANT_PARAM)
|
||||
M_DEFINE_METAACTION(eMetaAction_ExecuteAction ,"ExecuteAction", "ACTION_ExecuteAction", "Action_ExecuteAction", fn_p_stExecuteActionInit,fn_ucExecuteAction,USE_ACTION_PARAM)
|
||||
M_DEFINE_METAACTION(eMetaAction_WaitEndOfAction ,"AttendFinAction", "ACTION_WaitEndOfAction", "Action_WaitEndOfAction", fn_p_stDefaultActionInit,fn_ucWaitEndOfAction,USE_NO_PARAM)
|
||||
M_DEFINE_METAACTION(eMetaAction_WaitEndOfAnim ,"AttendFinAnim", "ACTION_WaitEndOfAnim", "Action_WaitEndOfAnim", fn_p_stDefaultActionInit,fn_ucWaitEndOfAnim,USE_NO_PARAM)
|
||||
#ifdef D_USE_LIPSYNC
|
||||
NU_M_DEFINE_METAACTION(eMetaAction_SpeakAndWaitEnd ,"ParleEtAttendLaFin", "ACTION_SpeakAndWaitEnd", "Action_SpeakAndWaitEnd", fn_p_stSpeakAndWaitEndInit,fn_ucSpeakAndWaitEnd,USE_LIPSYNCHRO_PARAM)
|
||||
#endif /*D_USE_LIPSYNC*/
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
|
||||
#include "DefActCa.h"
|
||||
|
||||
#if defined(M_DEFINE_METAACTION)
|
||||
#undef M_DEFINE_METAACTION
|
||||
#endif
|
9
Rayman_X/cpa/public/AI/AIGame/DefActCa.h
Normal file
9
Rayman_X/cpa/public/AI/AIGame/DefActCa.h
Normal file
@@ -0,0 +1,9 @@
|
||||
NU_M_DEFINE_METAACTION(eMetaAction_CamCineMoveAToBTgtC, "CAM_CineMoveAToBTgtC", "CAM_CineMoveAToBTgtC", "Action_CAM_CineMoveAToBTgtC", fn_p_stCamCineInit, fn_ucCamCineMoveAToBTgtC, USE_3_VECTORS_PARAM USE_3_CONSTANTS_PARAM)
|
||||
NU_M_DEFINE_METAACTION(eMetaAction_CamCineMoveAToBTgtAC, "CAM_CineMoveAToBTgtAC", "CAM_CineMoveAToBTgtAC", "Action_CAM_CineMoveAToBTgtAC", fn_p_stCamCineInit, fn_ucCamCineMoveAToBTgtAC, USE_3_VECTORS_PARAM USE_3_CONSTANTS_PARAM)
|
||||
NU_M_DEFINE_METAACTION(eMetaAction_CamCinePosATgtB, "CAM_CinePosATgtB", "CAM_CinePosATgtB", "Action_CAM_CinePosATgtB", fn_p_stCamCineInit, fn_ucCamCinePosATgtB, USE_2_VECTORS_PARAM USE_2_CONSTANTS_PARAM)
|
||||
NU_M_DEFINE_METAACTION(eMetaAction_CamCinePosAMoveTgtBToC, "CAM_CinePosAMoveTgtBToC", "CAM_CinePosAMoveTgtBToC", "Action_CAM_CinePosAMoveTgtBToC", fn_p_stCamCineInit, fn_ucCamCinePosAMoveTgtBToC, USE_3_VECTORS_PARAM USE_3_CONSTANTS_PARAM)
|
||||
|
||||
NU_M_DEFINE_METAACTION(eMetaAction_CamCinePosATgtBTurnPosH, "CAM_CinePosATgtBTurnPosH", "CAM_CinePosATgtBTurnPosH", "Action_CAM_CinePosATgtBTurnPosH", fn_p_stCamCineInit, fn_ucCamCinePosATgtBTurnPosH, USE_2_VECTORS_PARAM USE_REAL_PARAM USE_3_CONSTANTS_PARAM)
|
||||
NU_M_DEFINE_METAACTION(eMetaAction_CamCinePosATgtBTurnTgtH, "CAM_CinePosATgtBTurnTgtH", "CAM_CinePosATgtBTurnTgtH", "Action_CAM_CinePosATgtBTurnTgtH", fn_p_stCamCineInit, fn_ucCamCinePosATgtBTurnTgtH, USE_2_VECTORS_PARAM USE_REAL_PARAM USE_3_CONSTANTS_PARAM)
|
||||
NU_M_DEFINE_METAACTION(eMetaAction_CamCinePosATgtBTurnPosV, "CAM_CinePosATgtBTurnPosV", "CAM_CinePosATgtBTurnPosV", "Action_CAM_CinePosATgtBTurnPosV", fn_p_stCamCineInit, fn_ucCamCinePosATgtBTurnPosV, USE_2_VECTORS_PARAM USE_REAL_PARAM USE_3_CONSTANTS_PARAM)
|
||||
NU_M_DEFINE_METAACTION(eMetaAction_CamCinePosATgtBTurnTgtV, "CAM_CinePosATgtBTurnTgtV", "CAM_CinePosATgtBTurnTgtV", "Action_CAM_CinePosATgtBTurnTgtV", fn_p_stCamCineInit, fn_ucCamCinePosATgtBTurnTgtV, USE_2_VECTORS_PARAM USE_REAL_PARAM USE_3_CONSTANTS_PARAM)
|
24
Rayman_X/cpa/public/AI/AIGame/DefConCa.h
Normal file
24
Rayman_X/cpa/public/AI/AIGame/DefConCa.h
Normal file
@@ -0,0 +1,24 @@
|
||||
NU_M_DEFINE_CONDITION (eCond_Cam_IsActive, "Cam_IsActive", "Cam_IsActive", "Cond_Cam_IsActive", CAM_fn_p_stIs, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION (eCond_Cam_IsViewportOwner, "Cam_IsViewportOwner", "Cam_IsViewportOwner", "Cond_Cam_IsViewportOwner", CAM_fn_p_stIs, USE_2_CONSTANTS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
/* IA FLAGS */
|
||||
NU_M_DEFINE_CONDITION (eCond_Cam_IsFlagNoDynamicTarget, "Cam_IsFlagNoDynamicTarget", "Cam_IsFlagNoDynamicTarget", "Cond_Cam_IsFlagNoDynamicTarget", CAM_fn_p_stIs, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION (eCond_Cam_IsFlagNoAverageMoveTgtPerso, "Cam_IsFlagNoAverageMoveTgtPerso", "Cam_IsFlagNoAverageMoveTgtPerso", "Cond_Cam_IsFlagNoAverageMoveTgtPerso", CAM_fn_p_stIs, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION (eCond_Cam_IsFlagNoParseCutAngle, "Cam_IsFlagNoParseCutAngle", "Cam_IsFlagNoParseCutAngle", "Cond_Cam_IsFlagNoParseCutAngle", CAM_fn_p_stIs, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION (eCond_Cam_IsFlagNoVisibility, "Cam_IsFlagNoVisibility", "Cam_IsFlagNoVisibility", "Cond_Cam_IsFlagNoVisibility", CAM_fn_p_stIs, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION (eCond_Cam_IsFlagNoVisibilityWithDynHie, "Cam_IsFlagNoVisibilityWithDynHie", "Cam_IsFlagNoVisibilityWithDynHie", "Cond_Cam_IsFlagNoVisibilityWithDynHie", CAM_fn_p_stIs, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION (eCond_Cam_IsFlagNoDynChangeTheta, "Cam_IsFlagNoDynChangeTheta", "Cam_IsFlagNoDynChangeTheta", "Cond_Cam_IsFlagNoDynChangeTheta", CAM_fn_p_stIs, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION (eCond_Cam_IsFlagNoShiftUntilPosReached, "Cam_IsFlagNoShiftUntilPosReached", "Cam_IsFlagNoShiftUntilPosReached", "Cond_Cam_IsFlagNoShiftUntilPosReached", CAM_fn_p_stIs, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION (eCond_Cam_IsFlagNoDynSpeed, "Cam_IsFlagNoDynSpeed", "Cam_IsFlagNoDynSpeed", "Cond_Cam_IsFlagNoDynSpeed", CAM_fn_p_stIs, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
/* DNM FLAGS */
|
||||
NU_M_DEFINE_CONDITION (eCond_Cam_IsFlagNoLinearParsing, "Cam_IsFlagNoLinearParsing", "Cam_IsFlagNoLinearParsing", "Cond_Cam_IsFlagNoLinearParsing", CAM_fn_p_stIs, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION (eCond_Cam_IsFlagNoLinearInertia, "Cam_IsFlagNoLinearInertia", "Cam_IsFlagNoLinearInertia", "Cond_Cam_IsFlagNoLinearInertia", CAM_fn_p_stIs, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION (eCond_Cam_IsFlagNoAngularParsing, "Cam_IsFlagNoAngularParsing", "Cam_IsFlagNoAngularParsing", "Cond_Cam_IsFlagNoAngularParsing", CAM_fn_p_stIs, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION (eCond_Cam_IsFlagNoAngularInertia, "Cam_IsFlagNoAngularInertia", "Cam_IsFlagNoAngularInertia", "Cond_Cam_IsFlagNoAngularInertia", CAM_fn_p_stIs, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION (eCond_Cam_IsFlagNoTargetParsing, "Cam_IsFlagNoTargetParsing", "Cam_IsFlagNoTargetParsing", "Cond_Cam_IsFlagNoTargetParsing", CAM_fn_p_stIs, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION (eCond_Cam_IsFlagNoTargetInertia, "Cam_IsFlagNoTargetInertia", "Cam_IsFlagNoTargetInertia", "Cond_Cam_IsFlagNoTargetInertia", CAM_fn_p_stIs, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION (eCond_Cam_IsFlagNoObstacle, "Cam_IsFlagNoObstacle", "Cam_IsFlagNoObstacle", "Cond_Cam_IsFlagNoObstacle", CAM_fn_p_stIs, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION (eCond_Cam_IsFlagFixedOrientation, "Cam_IsFlagFixedOrientation", "Cam_IsFlagFixedOrientation", "Cond_Cam_IsFlagFixedOrientation", CAM_fn_p_stIs, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
|
||||
M_DEFINE_CONDITION (eCond_Cam_IsFlagForcedPosition, "Cam_IsFlagForcedPosition", "Cam_IsFlagForcedPosition", "Cond_Cam_IsFlagForcedPosition", CAM_fn_p_stIs, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION (eCond_Cam_IsFlagForcedTarget, "Cam_IsFlagForcedTarget", "Cam_IsFlagForcedTarget", "Cond_Cam_IsFlagForcedTarget", CAM_fn_p_stIs, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION (eCond_Cam_IsFlagForcedAxis, "Cam_IsFlagForcedAxis", "Cam_IsFlagForcedAxis", "Cond_Cam_IsFlagForcedAxis", CAM_fn_p_stIs, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
148
Rayman_X/cpa/public/AI/AIGame/DefCond.h
Normal file
148
Rayman_X/cpa/public/AI/AIGame/DefCond.h
Normal file
@@ -0,0 +1,148 @@
|
||||
/*-------------------------------------------------------------------------------------
|
||||
DefCond.h : Conditions definitions
|
||||
Author : Olivier Couvreur 21/08/97
|
||||
--------------------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(M_DEFINE_CONDITION)
|
||||
#error You should define M_DEFINE_CONDITION accordingly before including this file !
|
||||
#endif
|
||||
|
||||
/* 6 parameters to define a condition : enum , editor name, script name, function pointers in Cond.c, in params ,ultra-able */
|
||||
|
||||
/************************************************************************************************
|
||||
* le #ifdef suivant permet d'exclure les fonctions inutilis<69>es
|
||||
* Merci
|
||||
* Marc
|
||||
************************************************************************************************/
|
||||
#if defined(_AI_EXCLUDE_NEVER_USED_) /* MT {*/
|
||||
#define NU_M_DEFINE_CONDITION(a,b,english,c,d,e,f)
|
||||
#else
|
||||
#define NU_M_DEFINE_CONDITION M_DEFINE_CONDITION
|
||||
#endif /* _AI_EXCLUDE_NEVER_USED_ }*/
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Boolean conditions */
|
||||
M_DEFINE_CONDITION(eCond_Et ,"Et" ,"And" ,"Cond_And" ,fn_p_stBooleanCondition,USE_2_BOOLEANS_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_Ou ,"Ou" ,"Or" ,"Cond_Or" ,fn_p_stBooleanCondition,USE_2_BOOLEANS_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_Not ,"Non" ,"Not" ,"Cond_Not" ,fn_p_stBooleanCondition,USE_BOOLEAN_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION(eCond_XOr ,"OuExclusif" ,"XOr" ,"Cond_XOr" ,fn_p_stBooleanCondition,USE_2_BOOLEANS_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Comparison conditions */
|
||||
M_DEFINE_CONDITION(eCond_Equal ,"=" ,"=" ,"Cond_Equal" ,fn_p_stComparisonCondition,USE_2_REALS_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_Different ,"<>" ,"<>" ,"Cond_Different" ,fn_p_stComparisonCondition,USE_2_REALS_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_Lesser ,"<" ,"<" ,"Cond_Lesser" ,fn_p_stComparisonCondition,USE_2_REALS_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_Greater ,">" ,">" ,"Cond_Greater" ,fn_p_stComparisonCondition,USE_2_REALS_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_LesserOrEqual ,"<=" ,"<=" ,"Cond_LesserOrEqual" ,fn_p_stComparisonCondition,USE_2_REALS_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_GreaterOrEqual ,">=" ,">=" ,"Cond_GreaterOrEqual" ,fn_p_stComparisonCondition,USE_2_REALS_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* ZDD conditions */
|
||||
M_DEFINE_CONDITION(eCond_CollidePersoZDDNoWithPerso ,"Col_CollisionZDDPersoAvecPerso" ,"COL_CollidePersoZDDWithPerso" ,"Cond_CollidePersoZDDWithPerso" ,fn_p_stZDDCondition,USE_PERSO_ZDD_PERSO_PARAM USE_PERSO_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION(eCond_CollideModuleZDDNoWithPerso ,"Col_CollisionZDDModuleAvecPerso" ,"COL_CollideModuleZDDWithPerso" ,"Cond_CollideModuleZDDWithPerso" ,fn_p_stZDDCondition,USE_PERSO_ZDD_MODULE_PARAM USE_PERSO_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_CollidePersoAllZDDWithPerso ,"Col_CollisionPersoTouteZDDAvecPerso" ,"COL_CollidePersoAllZDDWithPersoAllZDD" ,"Cond_CollidePersoAllZDDWithPersoAllZDD" ,fn_p_stZDDCondition,USE_2_PERSOS_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION(eCond_CollidePersoZDDWithAnyPerso ,"Col_CollisionZDDPersoAvecNimporteQuelPerso" ,"COL_CollidePersoZDDWithAnyPErso" ,"Cond_CollidePersoZDDWithAnyPErso" ,fn_p_stZDDCondition,USE_PERSO_ZDD_PERSO_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION(eCond_CollideModuleZDDWithAnyPerso ,"Col_CollisionZDDModuleAvecNimporteQuelPerso" ,"COL_CollideModuleZDDWithAnyPerso" ,"Cond_CollideModuleZDDWithAnyPerso" ,fn_p_stZDDCondition,USE_PERSO_ZDD_MODULE_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
/* ZDE conditions */
|
||||
M_DEFINE_CONDITION(eCond_CollidePersoZDENoWithPersoZDENo ,"Col_CollisionZDEPersoAvecZDEPerso" ,"COL_CollidePersoZDEWithPersoZDE" ,"Cond_CollidePersoZDEWithPersoZDE" ,fn_p_stZDECondition,USE_PERSO_ZDE_PERSO_PARAM USE_PERSO_ZDE_PERSO_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION(eCond_CollideModuleZDENoWithPersoZDENo ,"Col_CollisionZDEModuleAvecZDEPerso" ,"COL_CollideModuleZDEWithPersoZDE" ,"Cond_CollideModuleZDEWithPersoZDE" ,fn_p_stZDECondition,USE_PERSO_ZDE_MODULE_PARAM USE_PERSO_ZDE_PERSO_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION(eCond_CollidePersoZDENoWithModuleZDENo ,"Col_CollisionZDEPersoAvecZDEModule" ,"COL_CollidePersoZDEWithModuleZDE" ,"Cond_CollidePersoZDEWithModuleZDE" ,fn_p_stZDECondition,USE_PERSO_ZDE_PERSO_PARAM USE_PERSO_ZDE_MODULE_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION(eCond_CollideModuleZDENoWithModuleZDENo ,"Col_CollisionZDEModuleAvecZDEModule" ,"COL_CollideModuleZDEWithModuleZDE" ,"Cond_CollideModuleZDEWithModuleZDE" ,fn_p_stZDECondition,USE_PERSO_ZDE_MODULE_PARAM USE_PERSO_ZDE_MODULE_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_CollidePersoZDENoWithPersoTypeZDE ,"Col_CollisionZDEPersoAvecPersoTypeZDE" ,"COL_CollidePersoZDEWithPersoTypeZDE" ,"Cond_CollidePersoZDEWithPersoTypeZDE" ,fn_p_stZDECondition,USE_PERSO_ZDE_PERSO_PARAM USE_PERSO_MASK_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION(eCond_CollideModuleZDENoWithPersoTypeZDE ,"Col_CollisionZDEModuleAvecPersoTypeZDE" ,"COL_CollideModuleZDEWithPersoTypeZDE" ,"Cond_CollideModuleZDEWithPersoTypeZDE" ,fn_p_stZDECondition,USE_PERSO_ZDE_MODULE_PARAM USE_PERSO_MASK_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION(eCond_CollidePersoTypeZDEWithPersoTypeZDE ,"Col_CollisionPersoTypeZDEAvecPersoTypeZDE" ,"COL_CollidePersoTypeZDEWithPersoTypeZDE" ,"Cond_CollidePersoTypeZDEWithPersoTypeZDE",fn_p_stZDECondition,USE_PERSO_MASK_PARAM USE_PERSO_MASK_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_CollidePersoAllZDEWithPersoAllZDE ,"Col_CollisionPersoTouteZDEAvecPersoTouteZDE" ,"COL_CollidePersoAllZDEWithPersoAllZDE" ,"Cond_CollidePersoAllZDEWithPersoAllZDE" ,fn_p_stZDECondition,USE_2_PERSOS_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION(eCond_CollidePersoTypeZDEWithPersoAllZDE ,"Col_CollisionPersoTypeZDEAvecPersoTouteZDE" ,"COL_CollidePersoTypeZDEWithPersoAllZDE" ,"Cond_CollidePersoTypeZDEWithPersoAllZDE" ,fn_p_stZDECondition,USE_PERSO_MASK_PARAM USE_PERSO_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_CollidePersoAllZDEWithPersoTypeZDE ,"Col_CollisionPersoTouteZDEAvecPersoTypeZDE" ,"COL_CollidePersoAllZDEWithPersoTypeZDE" ,"Cond_CollidePersoAllZDEWithPersoTypeZDE" ,fn_p_stZDECondition,USE_PERSO_PARAM USE_PERSO_MASK_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION(eCond_CollidePersoZDENoWithTypeZDE ,"Col_CollisionPersoZDEAvecTypeZDE" ,"COL_CollidePersoZDENoWithTypeZDE" ,"Cond_CollidePersoZDENoWithTypeZDE" ,fn_p_stZDECondition,USE_PERSO_ZDE_PERSO_PARAM USE_MASK_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION(eCond_CollideModuleZDENoWithTypeZDE ,"Col_CollisionModuleZDEAvecTypeZDE" ,"COL_CollideModuleZDENoWithTypeZDE" ,"Cond_CollideModuleZDENoWithTypeZDE" ,fn_p_stZDECondition,USE_PERSO_ZDE_MODULE_PARAM USE_MASK_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
/* ZDM Collision Test */
|
||||
/* M_DEFINE_CONDITION(eCond_CollideMovingZDM ,"Col_CollisionAvecZDMDeplacee" ,"Cond_CollideMovingZDM",fn_p_stCollisionTestCondition, USE_ZDM_PERSO_VECTOR_PARAM,/* NOT_ULTRA_ABLE /* )*/
|
||||
/* Collision conditions : ULTRA */
|
||||
M_DEFINE_CONDITION(eCond_CollideWithGround ,"Col_CollisionAvecSol" ,"COL_CollideWithGround" ,"Cond_CollideWithGround" ,fn_p_stReportOnSurfaceCondition, USE_NO_PARAM,/**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_CollideWithWall ,"Col_CollisionAvecMur" ,"COL_CollideWithWall" ,"Cond_CollideWithWall" ,fn_p_stReportOnSurfaceCondition, USE_NO_PARAM,/**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_CollideWithNothing ,"Col_PasDeCollision" ,"COL_CollideWithNothing" ,"Cond_CollideWithNothing",fn_p_stReportOnSurfaceCondition, USE_NO_PARAM,/**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_CollideWithCeiling ,"Col_CollisionAvecPlafond" ,"COL_CollideWithCeiling" ,"Cond_CollideWithCeiling",fn_p_stReportOnSurfaceCondition, USE_NO_PARAM,/**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_CollideWithPerso ,"Col_CollisionAvecPerso" ,"COL_CollideWithPerso" ,"Cond_CollideWithPerso" ,fn_p_stReportOnSurfaceCondition, USE_NO_PARAM,/**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_CollideWithWater ,"Col_CollisionAvecEau" ,"COL_CollideWithWater" ,"Cond_CollideWithWater" ,fn_p_stReportOnSurfaceCondition, USE_NO_PARAM,/**/ ULTRA_ABLE /**/)
|
||||
|
||||
M_DEFINE_CONDITION(eCond_CollideWithThisPerso ,"Col_CollisionAvecCePerso" ,"COL_CollideWithThisPerso" ,"Cond_CollideWithThisPerso" ,fn_p_stReportThisPerso, USE_PERSO_PARAM,/**/ ULTRA_ABLE /**/)
|
||||
|
||||
/*ANNECY BBB*/
|
||||
/*M_DEFINE_CONDITION(eCond_CollideWithTrap ,"Col_CollisionAvecTrappe" ,"Cond_CollideWithTrap" ,fn_p_stReportOnSurfaceCondition, USE_NO_PARAM,/* ULTRA_ABLE /* )*/
|
||||
/*M_DEFINE_CONDITION(eCond_CollideWithSlope ,"Col_CollisionAvecPente" ,"Cond_CollideWithSlope" ,fn_p_stReportOnSurfaceCondition, USE_NO_PARAM,/* ULTRA_ABLE /* )*/
|
||||
/*M_DEFINE_CONDITION(eCond_CollideWithAttic ,"Col_CollisionAvecMansarde" ,"Cond_CollideWithAttic" ,fn_p_stReportOnSurfaceCondition, USE_NO_PARAM,/* ULTRA_ABLE /* )*/
|
||||
|
||||
/* ZDM Collision conditions : ULTRA */
|
||||
M_DEFINE_CONDITION(eCond_ZDMCollideWithGround ,"Col_ZDMCollisionAvecSol" ,"COL_ZDMCollideWithGround" ,"Cond_ZDMCollideWithGround" ,fn_p_stReportOnZDMSurfaceCondition,USE_MASK_PARAM,/**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION(eCond_ZDMCollideWithWall ,"Col_ZDMCollisionAvecMur" ,"COL_ZDMCollideWithWall" ,"Cond_ZDMCollideWithWall" ,fn_p_stReportOnZDMSurfaceCondition,USE_MASK_PARAM,/**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION(eCond_ZDMCollideWithNothing ,"Col_ZDMPasDeCollision" ,"COL_ZDMCollideWithNothing" ,"Cond_ZDMCollideWithNothing",fn_p_stReportOnZDMSurfaceCondition, USE_MASK_PARAM,/**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION(eCond_ZDMCollideWithCeiling ,"Col_ZDMCollisionAvecPlafond" ,"COL_ZDMCollideWithCeiling" ,"Cond_ZDMCollideWithCeiling",fn_p_stReportOnZDMSurfaceCondition, USE_MASK_PARAM,/**/ ULTRA_ABLE /**/)
|
||||
|
||||
/*M_DEFINE_CONDITION(eCond_ZDMCollideWithSlope ,"Col_ZDMCollisionAvecPente" ,"Cond_ZDMCollideWithSlope" ,fn_p_stReportOnZDMSurfaceCondition, USE_MASK_PARAM,/* ULTRA_ABLE /* )*/
|
||||
/*M_DEFINE_CONDITION(eCond_ZDMCollideWithAttic ,"Col_ZDMCollisionAvecMansarde" ,"Cond_ZDMCollideWithAttic" ,fn_p_stReportOnZDMSurfaceCondition, USE_MASK_PARAM,/* ULTRA_ABLE /* )*/
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* List conditions */
|
||||
M_DEFINE_CONDITION(eCond_IsPersoInList ,"LST_PersoExisteDansListe" ,"LST_IsPersoInList" ,"Cond_IsPersoInList" ,fn_p_stListCondition,USE_DSGVARIDLIST_PERSO_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION(eCond_IsModelInList ,"LST_ModeleExisteDansListe" ,"LST_IsModelInList" ,"Cond_IsModelInList" ,fn_p_stListCondition,USE_DSGVARIDLIST_MODEL_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION(eCond_IsFamilyInList ,"LST_FamilleExisteDansListe" ,"LST_IsFamilyInList" ,"Cond_IsFamilyInList" ,fn_p_stListCondition,USE_DSGVARIDLIST_FAMILY_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_ListEmptyTest ,"LST_ListeVide" ,"LST_ListEmptyTest" ,"Cond_ListEmptyTest" ,fn_p_stListCondition,USE_DSGVARIDLIST_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* UserEvent */
|
||||
M_DEFINE_CONDITION(eCond_UserEvent_IsSet ,"UserEvent_IsSet" ,"UserEvent_IsSet" ,"Cond_UserEvent_IsSet" ,fn_p_st_UserEvent_IsSet, USE_CONSTANT_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_UserEvent_IsSet2 ,"UserEvent_IsSet2" ,"UserEvent_IsSet2" ,"Cond_UserEvent_IsSet2",fn_p_st_UserEvent_IsSet, USE_CONSTANT_PARAM USE_ADDR_VECTOR_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* NO FAMILY */
|
||||
M_DEFINE_CONDITION(eCond_PressedBut ,"BoutonAppuye" ,"BUT_PressedBut" ,"Cond_PressedBut" ,fn_p_stButtonCondition,USE_BUTTON_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_JustPressedBut ,"BoutonJusteAppuye" ,"BUT_JustPressedBut" ,"Cond_JustPressedBut" ,fn_p_stButtonCondition,USE_BUTTON_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_ReleasedBut ,"BoutonRelache" ,"BUT_ReleasedBut" ,"Cond_ReleasedBut" ,fn_p_stButtonCondition,USE_BUTTON_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_JustReleasedBut ,"BoutonJusteRelache" ,"BUT_JustReleasedBut" ,"Cond_JustReleasedBut" ,fn_p_stButtonCondition,USE_BUTTON_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Time conditions */
|
||||
M_DEFINE_CONDITION(eCond_IsTimeElapsed ,"TempsDepasse" ,"TIME_IsTimeElapsed" ,"Cond_IsTimeElapsed" ,fn_p_stTimeCondition,USE_CONSTANT_PARAM USE_CONSTANT_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Validity condition */
|
||||
M_DEFINE_CONDITION(eCond_IsValidObject ,"ObjetValide" ,"SPO_IsValidObject" ,"Cond_IsValidObject" ,fn_p_stValidityCondition,USE_PERSO_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_IsValidWayPoint ,"Reseau_WayPointValide" ,"NET_IsValidWayPoint" ,"Cond_IsValidWayPoint" ,fn_p_stValidityCondition,USE_WAYPOINT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION(eCond_IsValidGMT ,"GMTValide" ,"GMT_IsValidGMT" ,"Cond_IsValidGMT" ,fn_p_stValidityCondition,USE_GMT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION(eCond_IsValidAction ,"ActionValide" ,"ACT_IsValidAction" ,"Cond_IsValidAction" ,fn_p_stValidityCondition,USE_ACTION_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_IsValidText ,"TexteValide" ,"TEXT_IsValidText" ,"Cond_IsValidText" ,fn_p_stValidityCondition,USE_TEXT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Lips_Synchro : ULTRA */
|
||||
#ifdef D_USE_LIPSYNC
|
||||
NU_M_DEFINE_CONDITION(eCond_IsSpeechOver ,"DiscoursTermine" ,"SPEEK_IsSpeechOver" ,"Cond_IsSpeechOver" ,fn_p_stLipsSynchroCondition,USE_NO_PARAM,/**/ ULTRA_ABLE /**/)
|
||||
#endif /* D_USE_LIPSYNC*/
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Sector : ULTRA for eCond_SeePerso */
|
||||
M_DEFINE_CONDITION(eCond_SeePerso ,"VoitPerso" ,"ACT_SeePerso" ,"Cond_SeePerso" ,fn_p_stSectorCondition,USE_PERSO_PARAM,/**/ ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* activation */
|
||||
M_DEFINE_CONDITION(eCond_IsActivable ,"EstActivable" ,"ACT_IsActivable" ,"Cond_IsActivable" ,fn_p_st_ActivationCondition,USE_NO_PARAM,/**/ ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* traitement */
|
||||
M_DEFINE_CONDITION(eCond_IsAlreadyHandled ,"ACT_EstDejaTraite" ,"ACT_IsAlreadyHandled","Cond_IsAlreadyHandled" ,fn_p_st_HandledCondition,USE_PERSO_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Always condition */
|
||||
M_DEFINE_CONDITION(eCond_Alw_IsMine ,"Alw_EstAMoi" ,"ALW_IsMain" ,"Cond_Alw_IsMain" ,fn_p_stAlw_IsMine,USE_PERSO_PARAM,/**/ ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Lights */
|
||||
NU_M_DEFINE_CONDITION(eCond_IsPersoLightOn ,"LumierePersoAllumee" ,"LIGHT_IsPersoLightOn" ,"Cond_IsPersoLightOn" ,fn_p_stLightCondition,USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION(eCond_IsPersoLightPulseOn ,"PulseLumierePersoAllumee" ,"LIGHT_IsPersoLightPulseOn" ,"Cond_IsPersoLightPulseOn" ,fn_p_stLightCondition,USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION(eCond_IsPersoLightGyroPhareOn ,"GyroPhareLumierePersoAllumee" ,"LIGHT_IsPersoLightGyroPhareOn" ,"Cond_IsPersoLightGyroPhareOn" ,fn_p_stLightCondition,USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
//KWN : Add a New AI Function
|
||||
M_DEFINE_CONDITION(eCond_StyletJustPressed ,"DS_StyletJustPressed" ,"DS_StyletJustPressed" ,"Cond_DS_StyletJustPressed" ,fn_p_stStyletCondition ,USE_NO_PARAM ,NOT_ULTRA_ABLE)
|
||||
M_DEFINE_CONDITION(eCond_StyletPressed ,"DS_StyletPressed" ,"DS_StyletPressed" ,"Cond_DS_StyletPressed" ,fn_p_stStyletCondition ,USE_NO_PARAM ,NOT_ULTRA_ABLE)
|
||||
M_DEFINE_CONDITION(eCond_StyletJustReleased ,"DS_StyletJustReleased" ,"DS_StyletJustReleased" ,"Cond_DS_StyletJustReleased" ,fn_p_stStyletCondition ,USE_NO_PARAM ,NOT_ULTRA_ABLE)
|
||||
M_DEFINE_CONDITION(eCond_StyletSlice ,"DS_StyletSlice" ,"DS_StyletSlice" ,"Cond_DS_StyletSlice" ,fn_p_stStyletSlice ,USE_2_VECTORS_PARAM ,NOT_ULTRA_ABLE)
|
||||
M_DEFINE_CONDITION(eCond_StyletRotation ,"DS_CheckStyletRotation" ,"CheckStyletRotation" ,"Cond_DS_CheckStyletRotation" ,fn_p_stCheckStyletRotation ,USE_VECTOR_PARAM USE_CONSTANT_PARAM USE_BOOLEAN_PARAM ,NOT_ULTRA_ABLE)
|
||||
M_DEFINE_CONDITION(eCond_StyletGratter ,"DS_CheckStyletGratter" ,"CheckStyletGratter" ,"Cond_DS_CheckStyletGratter" ,fn_p_stCheckStyletGratter ,USE_2_VECTORS_PARAM USE_CONSTANT_PARAM,NOT_ULTRA_ABLE)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
|
||||
#include "DefCond1.h"
|
||||
#include "DefConCa.h"
|
||||
|
||||
#if defined(M_DEFINE_CONDITION)
|
||||
#undef M_DEFINE_CONDITION
|
||||
#endif
|
110
Rayman_X/cpa/public/AI/AIGame/DefCond1.h
Normal file
110
Rayman_X/cpa/public/AI/AIGame/DefCond1.h
Normal file
@@ -0,0 +1,110 @@
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_CONDITION(eCond_IsZDMCollideWithObstacle ,"ZON_ZDMCollisionAvecObstacle" ,"ZON_ZDMCollideWithObstacle" ,"Cond_ZDMCollideWithObstacle" ,fn_p_stZDMCollideWithObstacle,USE_MASK_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_IsZDMCollideWithWall ,"ZON_ZDMContreMur" ,"ZON_IsZDMCollideWithWall" ,"Cond_IsZDMCollideWithWall" ,fn_p_stZDMCollideWithObstacle,USE_MASK_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_IsZDMCollideWithGround ,"ZON_ZDMContreSol" ,"ZON_IsZDMCollideWithGround" ,"Cond_IsZDMCollideWithGround" ,fn_p_stZDMCollideWithObstacle,USE_MASK_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_IsZDMCollideWithCeiling ,"ZON_ZDMContrePlafond" ,"ZON_IsZDMCollideWithCeiling" ,"Cond_IsZDMCollideWithCeiling" ,fn_p_stZDMCollideWithObstacle,USE_MASK_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* collision communication management : NOT ULTRA */
|
||||
M_DEFINE_CONDITION(eCond_CmtIdentifierContainsMask ,"COL_TesteCmtContreMasque" ,"COL_CmtIdentifierContainsMask" ,"Cond_CmtIdentifierContainsMask" ,fn_p_stMiscCondition ,USE_MASK_PARAM USE_MASK_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_HitByCollider ,"COL_CollisionneurTouche" ,"COL_HitByCollider" ,"Cond_HitByCollider" ,fn_p_stMiscCondition ,USE_NO_PARAM,/**/ NOT_ULTRA_ABLE /**/) /*la fct est dans Cond.c*/
|
||||
NU_M_DEFINE_CONDITION(eCond_IsTypeOfGMTCollide ,"TypeGMTCollision" ,"COL_IsTypeOfGMTCollide" ,"Cond_IsTypeOfGMTCollide" ,fn_p_stMiscCondition ,USE_MASK_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
|
||||
M_DEFINE_CONDITION(eCond_IsInComport ,"EstDansComportement" ,"ACT_IsInComport" ,"Cond_IsInComport" ,fn_p_stMiscCondition ,USE_PERSO_INTELL_COMPORT_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_IsInReflexComport ,"EstDansComportementReflexe" ,"ACT_IsInReflexComport" ,"Cond_IsInReflexComport" ,fn_p_stMiscCondition ,USE_PERSO_REFLEX_COMPORT_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_IsInAction ,"EstDansAction" ,"ACT_IsInAction" ,"Cond_IsInAction" ,fn_p_stMiscCondition ,USE_ACTION_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_ChangeActionEnable ,"ChangeActionPossible" ,"ACT_ChangeActionEnable" ,"Cond_ChangeActionEnable" ,fn_p_stMiscCondition ,USE_ACTION_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_EngineReinitRequested ,"ReinitMoteurDemande" ,"ReinitMoteurDemande" ,"Cond_EngineReinitRequested" ,fn_p_stMiscCondition , USE_NO_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_CONDITION(eCond_IsThereMechEvent ,"EvenementMecanique" ,"MEC__IsThereMechEvent" ,"Cond_IsThereMechEvent" ,fn_p_stMiscCondition ,USE_ADDR_LONG_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_CollisionWP ,"COL_CollisionWP" ,"COL_CollisionWP" ,"Cond_CollisionWP" ,fn_p_stCollisionWP ,USE_PERSO_PARAM USE_WAYPOINT_PARAM, NOT_ULTRA_ABLE )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Acteurs */
|
||||
M_DEFINE_CONDITION(eCond_IsCustomBitSet ,"ACT_TestCustomBit" ,"ACT_IsCustomBitSet" ,"Cond_IsCustomBitSet" ,fn_p_stCustomBitsCond,USE_CONSTANT_PARAM,/**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_CONDITION(eCond_IsPersoActive ,"ACT_EstActif" ,"ACT_IsPersoActive" ,"Cond_IsPersoActive" ,fn_p_stIsPersoActive,USE_PERSO_PARAM,NOT_ULTRA_ABLE)
|
||||
M_DEFINE_CONDITION(eCond_CheckActionEnd ,"ACT_TestFinAction" ,"ACT_CheckActionEnd" ,"Cond_CheckActionEnd" ,fn_p_stCheckAnimEnd,USE_NO_PARAM,ULTRA_ABLE)
|
||||
M_DEFINE_CONDITION(eCond_IsCurrentStateCustomBitSet ,"ACT_TestCustomBitDEtatCourant" ,"ACT_IsCurrentStateCustomBitSet" ,"Cond_IsCurrentStateCustomBitSet" ,fn_p_stCustomBitsCond,USE_CAPS_PARAM,/**/ ULTRA_ABLE /**/)
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Meca */
|
||||
M_DEFINE_CONDITION(eCond_IsGiBlock ,"MEC_GiBloque" ,"MEC_GiBlock" ,"Cond_GiBlock" ,fn_p_stMechanicOption, USE_NO_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_CONDITION(eCond_IsMechanicBlock ,"MEC_MecaniqueBloque" ,"MEC_MechanicBlock" ,"Cond_MechanicBlock" ,fn_p_stMechanicOption, USE_NO_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_CONDITION(eCond_IsMechanicAnimation ,"MEC_OptionAnimation" ,"MEC_IsMechanicAnimatino" ,"Cond_IsMechanicAnimatino" ,fn_p_stMechanicOption, USE_NO_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_CONDITION(eCond_IsMechanicCollide ,"MEC_OptionCollision" ,"MEC_IsMechanicCollide" ,"Cond_IsMechanicCollide" ,fn_p_stMechanicOption, USE_NO_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_CONDITION(eCond_IsMechanicGravity ,"MEC_OptionGravite" ,"MEC_IsMechanicGravity" ,"Cond_IsMechanicGravity" ,fn_p_stMechanicOption, USE_NO_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_CONDITION(eCond_IsMechanicTilt ,"MEC_OptionTilt" ,"MEC_IsMechanicTilt" ,"Cond_IsMechanicTilt" ,fn_p_stMechanicOption, USE_NO_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_CONDITION(eCond_IsMechanicGi ,"MEC_OptionGi" ,"MEC_IsMechanicGi" ,"Cond_IsMechanicGi" ,fn_p_stMechanicOption, USE_NO_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_CONDITION(eCond_IsMechanicClimb ,"MEC_OptionVarappe" ,"MEC_IsMechanicClimb" ,"Cond_IsMechanicClimb" ,fn_p_stMechanicOption, USE_NO_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_CONDITION(eCond_IsMechanicOnGround ,"MEC_OptionPlaqueAuSol" ,"MEC_IsMechanicOnGround" ,"Cond_IsMechanicOnGround" ,fn_p_stMechanicOption, USE_NO_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_CONDITION(eCond_IsMechanicSpider ,"MEC_OptionAraignee" ,"MEC_IsMechanicSpider" ,"Cond_IsMechanicSpider" ,fn_p_stMechanicOption, USE_NO_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_CONDITION(eCond_IsMechanicShoot ,"MEC_OptionShoot" ,"MEC_IsMechanicShoot" ,"Cond_IsMechanicShoot" ,fn_p_stMechanicOption, USE_NO_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_CONDITION(eCond_IsMechanicSwim ,"MEC_OptionNage" ,"MEC_IsMechanicSwim" ,"Cond_IsMechanicSwim" ,fn_p_stMechanicOption, USE_NO_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_CONDITION(eCond_IsMechanicNeverFall ,"MEC_OptionNeTombePas" ,"MEC_IsMechanicNeverFall" ,"Cond_IsMechanicNeverFall" ,fn_p_stMechanicOption, USE_NO_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_CONDITION(eCond_IsMechanicCollisionControl ,"MEC_OptionControleCollision" ,"MEC_IsMechanicCollisionControl" ,"Cond_IsMechanicCollisionControl" ,fn_p_stMechanicOption, USE_NO_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_CONDITION(eCond_IsMechanicKeepSpeedZ ,"MEC_OptionConserveVitesseZ" ,"MEC_IsMechanicKeepSpeedZ" ,"Cond_IsMechanicKeepSpeedZ" ,fn_p_stMechanicOption, USE_NO_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_CONDITION(eCond_IsMechanicSpeedLimit ,"MEC_OptionLimiteVitesse" ,"MEC_IsMechanicSpeedLimit" ,"Cond_IsMechanicSpeedLimit" ,fn_p_stMechanicOption, USE_NO_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_CONDITION(eCond_IsMechanicInertia ,"MEC_OptionInertie" ,"MEC_IsMechanicInertia" ,"Cond_IsMechanicInertia" ,fn_p_stMechanicOption, USE_NO_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_CONDITION(eCond_IsMechanicStream ,"MEC_OptionFlux" ,"MEC_IsMechanicStream" ,"Cond_IsMechanicStream" ,fn_p_stMechanicOption, USE_NO_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_CONDITION(eCond_IsMechanicStickOnPlatform ,"MEC_OptionCollerAuxPlateformes" ,"MEC_IsMechanicStickOnPlatform" ,"Cond_IsMechanicStickOnPlatform" ,fn_p_stMechanicOption, USE_NO_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_CONDITION(eCond_IsMechanicPatformCrash ,"MEC_EcraseParPlateforme" ,"MEC_MechanicPatformCrash" ,"Cond_MechanicPatformCrash" ,fn_p_stMechanicOption, USE_NO_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_CONDITION(eCond_IsMechanicScale ,"MEC_OptionScale" ,"MEC_IsMechanicScale" ,"Cond_IsMechanicScale" ,fn_p_stMechanicOption, USE_NO_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_CONDITION(eCond_IsMechanicExec ,"MEC_Execution" ,"MEC_IsMechanicExec" ,"Cond_IsMechanicExec" ,fn_p_stMechanicOption, USE_NO_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_CONDITION(eCond_CanFall ,"MEC_PeutTomber" ,"MEC_CanFall" ,"Cond_CanFall" ,fn_p_stMechanicOption, USE_ADDR_VECTOR_PARAM , ULTRA_ABLE )
|
||||
M_DEFINE_CONDITION(eCond_IsMechanicCrash ,"MEC_ActeurPrincipalEcrase" ,"MEC_IsMainActorCrashed" ,"Cond_MainActorCrashed" ,fn_p_stMechanicOption, USE_NO_PARAM, ULTRA_ABLE )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_CONDITION(eCond_IsNullVector ,"VEC_VecteurNul" ,"VEC_NullVector" ,"Cond_NullVector" ,fn_p_stNullVector, USE_VECTOR_PARAM, NOT_ULTRA_ABLE )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Hierarchy - Platform */
|
||||
M_DEFINE_CONDITION(eCond_HierIsSonOfActor ,"HIER_EstFils_acteur" ,"HIER_HierIsSonOfActor" ,"Cond_HierIsSonOfActor" ,fn_p_stHierarchySon, USE_PERSO_PARAM, ULTRA_ABLE )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
NU_M_DEFINE_CONDITION(eCond_IsMorphing ,"MOD_MorphingEnCours" ,"MOD_IsMorphing" ,"Cond_IsMorphing" ,fn_p_stIsMorphing, USE_CHANNEL_PARAM, ULTRA_ABLE )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_CONDITION(eCond_CheckAnimEnd ,"ANI_TestFinAnim" ,"ANI_CheckAnimEnd" ,"Cond_CheckAnimEnd" ,fn_p_stCheckAnimEnd,USE_NO_PARAM,ULTRA_ABLE)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_CONDITION(eCond_HasTheCapability ,"Caps_ALaCapacite" ,"CAPS_HasTheCapability" ,"Cond_HasTheCapability" ,fn_p_stCheckCapabilities, USE_CAPS_PARAM USE_CAPS_PARAM, ULTRA_ABLE)
|
||||
NU_M_DEFINE_CONDITION(eCond_HasOneOfTheCapabilities ,"Caps_AUneDesCapacites" ,"CAPS_HasOneOfTheCapabilities" ,"Cond_HasOneOfTheCapabilities" ,fn_p_stCheckCapabilities, USE_CAPS_PARAM USE_CAPS_PARAM, ULTRA_ABLE)
|
||||
M_DEFINE_CONDITION(eCond_HasTheCapabilityNumber ,"Caps_ALaCapaciteNumero" ,"CAPS_HasTheCapabilityNumber" ,"Cond_HasTheCapabilityNumber" ,fn_p_stCheckCapabilities, USE_CAPS_PARAM USE_CONSTANT_PARAM, ULTRA_ABLE)
|
||||
NU_M_DEFINE_CONDITION(eCond_PersoHasTheCapability ,"Caps_PersoALaCapacite" ,"CAPS_PersoHasTheCapability" ,"Cond_PersoHasTheCapability" ,fn_p_stCheckCapabilities, USE_CAPS_PARAM, ULTRA_ABLE)
|
||||
NU_M_DEFINE_CONDITION(eCond_PersoHasOneOfTheCapabilities ,"Caps_PersoAUneDesCapacites" ,"CAPS_PersoHasOneOfTheCapabilities","Cond_PersoHasOneOfTheCapabilities",fn_p_stCheckCapabilities, USE_CAPS_PARAM, ULTRA_ABLE)
|
||||
NU_M_DEFINE_CONDITION(eCond_PersoHasTheCapabilityNumber ,"Caps_PersoALaCapaciteNumero" ,"CAPS_PersoHasTheCapabilityNumber" ,"Cond_PersoHasTheCapabilityNumber" ,fn_p_stCheckCapabilities, USE_CONSTANT_PARAM, ULTRA_ABLE)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/*XB980824*/
|
||||
#ifndef D_THROW_MGT
|
||||
NU_M_DEFINE_CONDITION(eCond_MagnetIsActivated ,"Magnet_EstActif" ,"MAGNET_IsMagnetActivated" ,"Cond_IsMagnetActivated" ,fn_p_stMagnetActivated, USE_NO_PARAM, ULTRA_ABLE)
|
||||
#else
|
||||
NU_M_DEFINE_CONDITION(eCond_MagnetIsActivated ,"Magnet_EstActif" ,"MAGNET_IsMagnetActivated" ,"Cond_IsMagnetActivated" ,fn_p_stDummyCondition, USE_NO_PARAM, ULTRA_ABLE)
|
||||
#endif
|
||||
/*End XB*/
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Collision Flags */
|
||||
NU_M_DEFINE_CONDITION(eCond_NEstPasEnCollisionAvecMap ,"ACT_NEstPasEnCollisionAvecMap" ,"ACT_IsNotInCollWithMap" ,"Cond_IsNotInCollWithMap" ,fn_p_stIsCollisionFlag, USE_NO_PARAM, ULTRA_ABLE)
|
||||
NU_M_DEFINE_CONDITION(eCond_NEstPasEnCollisionAvecProjectile ,"ACT_NEstPasEnCollisionAvecProjectiles" ,"ACT_IsNotInCollWithProj" ,"Cond_IsNotInCollWithProj" ,fn_p_stIsCollisionFlag, USE_NO_PARAM, ULTRA_ABLE)
|
||||
NU_M_DEFINE_CONDITION(eCond_NEstPasEnCollisionAvecSecondCharact ,"ACT_NEstPasEnCollisionAvecActeursSecondaires" ,"ACT_IsNotInColWithSecondCharact" ,"Cond_IsNotInColWithSecondCharact" ,fn_p_stIsCollisionFlag, USE_NO_PARAM, ULTRA_ABLE)
|
||||
NU_M_DEFINE_CONDITION(eCond_NEstPasEnCollisionAvecMainCharact ,"ACT_NEstPasEnCollisionAvecActeurPrincipal" ,"ACT_IsNotInColWithMainCharact" ,"Cond_IsNotInColWithMainCharact" ,fn_p_stIsCollisionFlag, USE_NO_PARAM, ULTRA_ABLE)
|
||||
NU_M_DEFINE_CONDITION(eCond_NEstPasEnCollisionAvecAutresSecteurs ,"ACT_NEstPasEnCollisionAvecAutresSecteurs" ,"ACT_IsNotInColWithOtherSectors" ,"Cond_IsNotInColWithOtherSectors" ,fn_p_stIsCollisionFlag, USE_NO_PARAM, ULTRA_ABLE)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_CONDITION(eCond_IsInFamily ,"ACT_EstDeFamille" ,"ACT_IsOfFamily" ,"Cond_IsOfFamily" ,fn_p_stIsOf, USE_FAMILY_PARAM, ULTRA_ABLE)
|
||||
M_DEFINE_CONDITION(eCond_IsInModel ,"ACT_EstDeModele" ,"ACT_IsOfModel" ,"Cond_IsOfModel" ,fn_p_stIsOf, USE_MODEL_PARAM, ULTRA_ABLE)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
NU_M_DEFINE_CONDITION(eCond_AJoypadIsConnected ,"IPT_AJoypadIsConnected" ,"IPT_AJoypadIsConnected" ,"Cond_AJoypadIsConnected" ,fn_p_stAJoypadIsConnected, USE_NO_PARAM, ULTRA_ABLE)
|
||||
M_DEFINE_CONDITION(eCond_AKeyJustPressed ,"IPT_AKeyJustPressed" ,"IPT_AKeyJustPressed" ,"Cond_AKeyJustPressed" ,fn_p_stAKeyJustPressed, USE_NO_PARAM, NOT_ULTRA_ABLE)
|
||||
M_DEFINE_CONDITION(eCond_AButtonPadJustPressed ,"IPT_AButtonPadJustPressed" ,"IPT_AButtonPadJustPressed" ,"Cond_AButtonPadJustPressed" ,fn_p_stAButtonPadJustPressed, USE_NO_PARAM, NOT_ULTRA_ABLE)
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* demos */
|
||||
/*HP 101298*/
|
||||
M_DEFINE_CONDITION(eCond_IsInDemoMode , "EstDansDemoMode" ,"IsInDemoMode" ,"Cond_IsInDemoMode" , fn_p_stDemoCondition, USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_CONDITION(eCond_IsInStereoMode ,"SOUND_IsInStereoMode" ,"SOUND_IsInStereoMode" ,"Cond_IsInStereoMode" ,fn_p_stIsInStereoMode, USE_NO_PARAM, NOT_ULTRA_ABLE)
|
||||
M_DEFINE_CONDITION(eCond_IsMusicPlaying ,"SOUND_IsMusicPlaying" ,"SOUND_IsMusicPlaying" ,"Cond_IsMusicPlaying" ,fn_p_stIsMusicPlaying, USE_NO_PARAM, NOT_ULTRA_ABLE)
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
#ifdef U64
|
||||
M_DEFINE_CONDITION(eCond_IsShapnessMax ,"VID_IsShapnessMax" ,"VID_IsShapnessMax" ,"Cond_IsShapnessMax" ,fn_p_stIsIsShapnessMax, USE_NO_PARAM, NOT_ULTRA_ABLE)
|
||||
#else
|
||||
M_DEFINE_CONDITION(eCond_IsShapnessMax ,"VID_IsShapnessMax" ,"VID_IsShapnessMax" ,"Cond_IsShapnessMax" ,fn_p_stDummyCondition, USE_NO_PARAM, NOT_ULTRA_ABLE)
|
||||
#endif
|
||||
|
||||
M_DEFINE_CONDITION(eCond_IsSlotDataCorrupt, "SLOT_IsDataCorrupt", "SLOT_IsDataCorrupt", "COND_IsDataCorrupt", fn_p_stIsSlotDataCorrupt, USE_NO_PARAM, NOT_ULTRA_ABLE)
|
||||
M_DEFINE_CONDITION(eCond_IsCheatMenu, "CHEAT_IsCheatMenu", "CHEAT_IsCheatMenu", "COND_IsCheatMenu", fn_p_stIsCheatMenu, USE_NO_PARAM, NOT_ULTRA_ABLE)
|
||||
M_DEFINE_CONDITION(eCond_IsUSBuild, "COND_IsUSBuild", "COND_IsUSBuild", "COND_IsUSBuild", fn_p_stIsUSBuild, USE_NO_PARAM, NOT_ULTRA_ABLE)
|
42
Rayman_X/cpa/public/AI/AIGame/DefFild.h
Normal file
42
Rayman_X/cpa/public/AI/AIGame/DefFild.h
Normal file
@@ -0,0 +1,42 @@
|
||||
/*-------------------------------------------------------------------------------------
|
||||
DefFild.h : Field definitions
|
||||
Author : Olivier Couvreur 25/08/97
|
||||
--------------------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(M_DEFINE_FIELD)
|
||||
#error You should define M_DEFINE_FIELD accordingly before including this file !
|
||||
#endif
|
||||
|
||||
#include "..\AIBase\Specif\AIOption.h"
|
||||
|
||||
/* 6 parameters to define a fiels : enum , editor name, script name, type, function pointers Get, function pointers Set */
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Affect the Perso */
|
||||
M_DEFINE_FIELD(eField_Position ,"Position" ,"Position" ,"Position" , eFieldType_Vector , fn_ucGetFieldPosition, fn_ucSetFieldDefaultFunction)
|
||||
|
||||
M_DEFINE_FIELD(eField_Orientation ,"Orientation" ,"Orientation" ,"Orientation" , eFieldType_Vector , fn_ucGetFieldOrientation, fn_ucSetFieldOrientation)
|
||||
M_DEFINE_FIELD(eField_Speed ,"Speed" ,"Speed" ,"Speed" , eFieldType_Vector , fn_ucGetFieldSpeed, fn_ucSetFieldDefaultFunction)
|
||||
M_DEFINE_FIELD(eField_NormSpeed ,"NormSpeed" ,"NormSpeed" ,"NormSpeed" , eFieldType_Float , fn_ucGetFieldNormSpeed, fn_ucSetFieldDefaultFunction)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* M_DEFINE_FIELD(eField_SightAxis ,"AxeDeVue" ,"SightAxis" , eFieldType_Vector , fn_ucGetFieldSightAxis, fn_ucSetFieldSightAxis)*/
|
||||
/* M_DEFINE_FIELD(eField_FirstCompAxis ,"AxeComplementaire1" ,"FirstCompAxis" , eFieldType_Vector , fn_ucGetFieldFirstCompAxis, fn_ucSetFieldFirstCompAxis)*/
|
||||
/* M_DEFINE_FIELD(eField_SecondCompAxis ,"AxeComplementaire2" ,"SecondCompAxis" , eFieldType_Vector , fn_ucGetFieldSecondCompAxis, fn_ucSetFieldSecondCompAxis)*/
|
||||
|
||||
M_DEFINE_FIELD(eField_AbsoluteAxisX ,"AxeXEnAbsolu" ,"AbsoluteAxisX" ,"AbsoluteAxisX" , eFieldType_Vector , fn_ucGetFieldAbsoluteAxisX, fn_ucSetFieldDefaultFunction)
|
||||
M_DEFINE_FIELD(eField_AbsoluteAxisY ,"AxeYEnAbsolu" ,"AbsoluteAxisY" ,"AbsoluteAxisY" , eFieldType_Vector , fn_ucGetFieldAbsoluteAxisY, fn_ucSetFieldDefaultFunction)
|
||||
M_DEFINE_FIELD(eField_AbsoluteAxisZ ,"AxeZEnAbsolu" ,"AbsoluteAxisZ" ,"AbsoluteAxisZ" , eFieldType_Vector , fn_ucGetFieldAbsoluteAxisZ, fn_ucSetFieldDefaultFunction)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_FIELD(eField_PrevComportIntell ,"ComportIntelPrec" ,"PrevComportIntell","PrevComportIntell" , eFieldType_Comport, fn_ucGetFieldPrevComportIntell, fn_ucSetFieldDefaultFunction)
|
||||
M_DEFINE_FIELD(eField_PrevComportReflex ,"ComportReflexePrec" ,"PrevComportReflex","PrevComportReflex" , eFieldType_Comport, fn_ucGetFieldPrevComportReflex, fn_ucSetFieldDefaultFunction)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* ANNECY AV {*/
|
||||
/* M_DEFINE_FIELD(eField_CollisionFlag ,"CollisionFlag" ,"CollisionFlag" , eFieldType_0To255 , fn_ucGetFieldCollisionFlag, fn_ucSetFieldCollisionFlag)*/
|
||||
/* END ANNECY AV }*/
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_FIELD(eField_ShadowScaleX ,"ShadowScaleX" ,"ShadowScaleX" ,"ShadowScaleX" , eFieldType_Float , fn_ucGetFieldShadowScaleX, fn_ucSetFieldShadowScaleX)
|
||||
M_DEFINE_FIELD(eField_ShadowScaleY ,"ShadowScaleY" ,"ShadowScaleY" ,"ShadowScaleY" , eFieldType_Float , fn_ucGetFieldShadowScaleY, fn_ucSetFieldShadowScaleY)
|
||||
|
||||
#if defined(M_DEFINE_FIELD)
|
||||
#undef M_DEFINE_FIELD
|
||||
#endif
|
35
Rayman_X/cpa/public/AI/AIGame/DefFunCa.h
Normal file
35
Rayman_X/cpa/public/AI/AIGame/DefFunCa.h
Normal file
@@ -0,0 +1,35 @@
|
||||
M_DEFINE_FUNCTION(eFct_Cam_GetShiftTarget, "Cam_GetShiftTarget", "Cam_GetShiftTarget", "Proc_Cam_GetShiftTarget", CAM_fn_p_stGetVectorParameter, USE_CONSTANT_PARAM, USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFct_Cam_GetShiftPos, "Cam_GetShiftPos", "Cam_GetShiftPos", "Proc_Cam_GetShiftPos", CAM_fn_p_stGetVectorParameter, USE_CONSTANT_PARAM, USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
|
||||
M_DEFINE_FUNCTION(eFct_Cam_GetDistMin, "Cam_GetDistMin", "Cam_GetDistMin", "Fct_Cam_GetDistMin", CAM_fn_p_stGetRealParameter, USE_CONSTANT_PARAM , USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFct_Cam_GetDistMax, "Cam_GetDistMax", "Cam_GetDistMax", "Fct_Cam_GetDistMax", CAM_fn_p_stGetRealParameter, USE_CONSTANT_PARAM , USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFct_Cam_GetBoundDistMin, "Cam_GetBoundDistMin", "Cam_GetBoundDistMin", "Fct_Cam_GetBoundDistMin", CAM_fn_p_stGetRealParameter, USE_CONSTANT_PARAM , USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFct_Cam_GetBoundDistMax, "Cam_GetBoundDistMax", "Cam_GetBoundDistMax", "Fct_Cam_GetBoundDistMax", CAM_fn_p_stGetRealParameter, USE_CONSTANT_PARAM , USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFct_Cam_GetAngleAlpha, "Cam_GetAngleAlpha", "Cam_GetAngleAlpha", "Fct_Cam_GetAngleAlpha", CAM_fn_p_stGetRealParameter, USE_CONSTANT_PARAM , USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFct_Cam_GetAngleShiftAlpha, "Cam_GetAngleShiftAlpha", "Cam_GetAngleShiftAlpha", "Fct_Cam_GetAngleShiftAlpha", CAM_fn_p_stGetRealParameter, USE_CONSTANT_PARAM , USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFct_Cam_GetAngleTheta, "Cam_GetAngleTheta", "Cam_GetAngleTheta", "Fct_Cam_GetAngleTheta", CAM_fn_p_stGetRealParameter, USE_CONSTANT_PARAM , USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFct_Cam_GetAngleShiftTheta, "Cam_GetAngleShiftTheta", "Cam_GetAngleShiftTheta", "Fct_Cam_GetAngleShiftTheta", CAM_fn_p_stGetRealParameter, USE_CONSTANT_PARAM , USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFct_Cam_GetLinearSpeed, "Cam_GetLinearSpeed", "Cam_GetLinearSpeed", "Fct_Cam_GetLinearSpeed", CAM_fn_p_stGetRealParameter, USE_CONSTANT_PARAM , USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFct_Cam_GetLinearIncreaseSpeed, "Cam_GetLinearIncreaseSpeed", "Cam_GetLinearIncreaseSpeed", "Fct_Cam_GetLinearIncreaseSpeed", CAM_fn_p_stGetRealParameter, USE_CONSTANT_PARAM , USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFct_Cam_GetLinearDecreaseSpeed, "Cam_GetLinearDecreaseSpeed", "Cam_GetLinearDecreaseSpeed", "Fct_Cam_GetLinearDecreaseSpeed", CAM_fn_p_stGetRealParameter , USE_CONSTANT_PARAM , USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFct_Cam_GetAngularSpeed, "Cam_GetAngularSpeed", "Cam_GetAngularSpeed", "Fct_Cam_GetAngularSpeed", CAM_fn_p_stGetRealParameter, USE_CONSTANT_PARAM , USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFct_Cam_GetAngularIncreaseSpeed, "Cam_GetAngularIncreaseSpeed", "Cam_GetAngularIncreaseSpeed", "Fct_Cam_GetAngularIncreaseSpeed", CAM_fn_p_stGetRealParameter, USE_CONSTANT_PARAM , USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFct_Cam_GetAngularDecreaseSpeed, "Cam_GetAngularDecreaseSpeed", "Cam_GetAngularDecreaseSpeed", "Fct_Cam_GetAngularDecreaseSpeed", CAM_fn_p_stGetRealParameter, USE_CONSTANT_PARAM , USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFct_Cam_GetTargetSpeed, "Cam_GetTargetSpeed", "Cam_GetTargetSpeed", "Fct_Cam_GetTargetSpeed", CAM_fn_p_stGetRealParameter, USE_CONSTANT_PARAM , USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFct_Cam_GetTargetIncreaseSpeed, "Cam_GetTargetIncreaseSpeed", "Cam_GetTargetIncreaseSpeed", "Fct_Cam_GetTargetIncreaseSpeed", CAM_fn_p_stGetRealParameter, USE_CONSTANT_PARAM , USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFct_Cam_GetTargetDecreaseSpeed, "Cam_GetTargetDecreaseSpeed", "Cam_GetTargetDecreaseSpeed", "Fct_Cam_GetTargetDecreaseSpeed", CAM_fn_p_stGetRealParameter, USE_CONSTANT_PARAM , USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFct_Cam_GetFocal, "Cam_GetFocal", "Cam_GetFocal", "Fct_Cam_GetFocal", CAM_fn_p_stGetRealParameter, USE_CONSTANT_PARAM , USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFct_Cam_GetZMin, "Cam_GetZMin", "Cam_GetZMin", "Fct_Cam_GetZMin", CAM_fn_p_stGetRealParameter, USE_CONSTANT_PARAM , USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFct_Cam_GetZMax, "Cam_GetZMax", "Cam_GetZMax", "Fct_Cam_GetZMax", CAM_fn_p_stGetRealParameter, USE_CONSTANT_PARAM , USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
|
||||
NU_M_DEFINE_FUNCTION(eFct_Cam_GetTargetedSuperObject, "Cam_GetTargetedSuperObject", "Cam_GetTargetedSuperObject", "Fct_Cam_GetTargetedSuperObject", CAM_fn_p_stGetTargetedSuperObject, USE_CONSTANT_PARAM, USE_PERSO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFct_Cam_GetTypeOfViewport, "Cam_GetTypeOfViewport", "Cam_GetTypeOfViewport", "Fct_Cam_GetTypeOfViewport", CAM_fn_p_stGetTypeOfViewport, USE_CONSTANT_PARAM, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFct_Cam_GetCameraOfViewport, "Cam_GetCameraOfViewport", "Cam_GetCameraOfViewport", "Fct_Cam_GetCameraOfViewport", CAM_fn_p_stGetCameraOfViewport, USE_CONSTANT_PARAM, USE_PERSO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFct_Cam_GetMainCamera, "Cam_GetMainCamera", "Cam_GetMainCamera", "Fct_Cam_GetMainCamera", CAM_fn_p_stGetCameraOfViewport, USE_NO_PARAM, USE_PERSO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
|
||||
M_DEFINE_FUNCTION(eFct_Cam_ComputeTargetWithTgtPerso, "Cam_ComputeTargetWithTgtPerso","Cam_ComputeTargetWithTgtPerso", "Fct_Cam_ComputeTargetWithTgtPerso", CAM_fn_p_stComputeTargetWithTgtPerso, USE_NO_PARAM, USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFct_Cam_GetCurrentTargetPosition, "Cam_ComputeCurrentTarget", "Cam_ComputeCurrentTarget", "Fct_Cam_ComputeCurrentTarget", CAM_fn_p_stComputeCurrentTarget, USE_NO_PARAM, USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
|
||||
|
||||
NU_M_DEFINE_FUNCTION(eFct_Cam_GetSectorCameraType, "Cam_GetSectorCameraType", "Cam_GetSectorCameraType", "Fct_Cam_GetSectorCameraType", CAM_fn_p_stGetSectorCameraType, USE_NO_PARAM, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFct_Cam_GetBestPos, "Cam_GetBestPos", "Cam_GetBestPos", "Fct_Cam_GetBestPos", CAM_fn_p_stGetBestPos, USE_NO_PARAM, USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
166
Rayman_X/cpa/public/AI/AIGame/DefFunc.h
Normal file
166
Rayman_X/cpa/public/AI/AIGame/DefFunc.h
Normal file
@@ -0,0 +1,166 @@
|
||||
#if !defined(M_DEFINE_FUNCTION)
|
||||
#error You should define M_DEFINE_FUNCTION accordingly before including this file !
|
||||
#endif
|
||||
|
||||
/************************************************************************************************
|
||||
* le #ifdef suivant permet d'exclure les fonctions inutilis<69>es
|
||||
* Merci
|
||||
* Marc
|
||||
************************************************************************************************/
|
||||
#if defined(_AI_EXCLUDE_NEVER_USED_) /* MT {*/
|
||||
#define NU_M_DEFINE_FUNCTION(a,b,english,c,d,e,f,g)
|
||||
#else
|
||||
#define NU_M_DEFINE_FUNCTION M_DEFINE_FUNCTION
|
||||
#endif /* _AI_EXCLUDE_NEVER_USED_ }*/
|
||||
/* 6 parameters to define a function : enum , editor name, script name, function pointers in Function.c, in params, out param ,ultra-able */
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Acthor */
|
||||
M_DEFINE_FUNCTION(eFunc_GetPersoAbsolutePosition ,"ACT_PositionAbsoluePerso" ,"ACT_GetPersoAbsolutePosition" ,"Func_GetPersoAbsolutePosition" ,fn_p_stGetPersoAbsolutePosition,USE_NO_PARAM,USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetMyAbsolutePosition ,"ACT_MaPositionAbsolue" ,"ACT_GetMyAbsolutePosition" ,"Func_GetMyAbsolutePosition" ,fn_p_stGetMyAbsolutePosition,USE_NO_PARAM,USE_VECTOR_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetAngleAroundZToPerso ,"ACT_AngleAutourZVersPerso" ,"ACT_GetAngleAroundZToPerso" ,"Func_GetAngleAroundZToPerso" ,fn_p_stDistanceFunction,USE_PERSO_PARAM,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_DistanceToPerso ,"ACT_DistanceAuPerso" ,"ACT_DistanceToPerso" ,"Func_DistanceToPerso" ,fn_p_stDistanceToPerso,USE_PERSO_PARAM,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_DistanceXToPerso ,"ACT_DistanceXAuPerso" ,"ACT_DistanceXToPerso" ,"Func_DistanceXToPerso" ,fn_p_stDistanceFunction,USE_PERSO_PARAM,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_DistanceYToPerso ,"ACT_DistanceYAuPerso" ,"ACT_DistanceYToPerso" ,"Func_DistanceYToPerso" ,fn_p_stDistanceFunction,USE_PERSO_PARAM,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_DistanceZToPerso ,"ACT_DistanceZAuPerso" ,"ACT_DistanceZToPerso" ,"Func_DistanceZToPerso" ,fn_p_stDistanceFunction,USE_PERSO_PARAM,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_DistanceXYToPerso ,"ACT_DistanceXYAuPerso" ,"ACT_DistanceXYToPerso" ,"Func_DistanceXYToPerso" ,fn_p_stDistanceFunction,USE_PERSO_PARAM,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_DistanceXZToPerso ,"ACT_DistanceXZAuPerso" ,"ACT_DistanceXZToPerso" ,"Func_DistanceXZToPerso" ,fn_p_stDistanceFunction,USE_PERSO_PARAM,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_DistanceYZToPerso ,"ACT_DistanceYZAuPerso" ,"ACT_DistanceYZToPerso" ,"Func_DistanceYZToPerso" ,fn_p_stDistanceFunction,USE_PERSO_PARAM,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_DistanceToPersoCenter ,"ACT_DistanceAuCentrePerso" ,"ACT_DistanceToPersoCenter" ,"Func_DistanceToPersoCenter" ,fn_p_stDistanceToPersoCenter,USE_PERSO_PARAM,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_DistanceXToPersoCenter ,"ACT_DistanceXAuCentrePerso" ,"ACT_DistanceXToPersoCenter" ,"Func_DistanceXToPersoCenter" ,fn_p_stDistanceFunction,USE_PERSO_PARAM,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_DistanceYToPersoCenter ,"ACT_DistanceYAuCentrePerso" ,"ACT_DistanceYToPersoCenter" ,"Func_DistanceYToPersoCenter" ,fn_p_stDistanceFunction,USE_PERSO_PARAM,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_DistanceZToPersoCenter ,"ACT_DistanceZAuCentrePerso" ,"ACT_DistanceZToPersoCenter" ,"Func_DistanceZToPersoCenter" ,fn_p_stDistanceFunction,USE_PERSO_PARAM,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_DistanceXYToPersoCenter ,"ACT_DistanceXYAuCentrePerso" ,"ACT_DistanceXYToPersoCenter" ,"Func_DistanceXYToPersoCenter" ,fn_p_stDistanceFunction,USE_PERSO_PARAM,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_DistanceXZToPersoCenter ,"ACT_DistanceXZAuCentrePerso" ,"ACT_DistanceXZToPersoCenter" ,"Func_DistanceXZToPersoCenter" ,fn_p_stDistanceFunction,USE_PERSO_PARAM,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_DistanceYZToPersoCenter ,"ACT_DistanceYZAuCentrePerso" ,"ACT_DistanceYZToPersoCenter" ,"Func_DistanceYZToPersoCenter" ,fn_p_stDistanceFunction,USE_PERSO_PARAM,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Reseau */
|
||||
M_DEFINE_FUNCTION(eFunc_DistanceToWP ,"Reseau_DistanceAuWP" ,"NETWORK_DistanceToWP" ,"Func_DistanceToWP" ,fn_p_stDistanceFunction,USE_WAYPOINT_PARAM,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetWPAbsolutePosition ,"Reseau_PositionAbsolueWP" ,"NETWORK_GetWPAbsolutePosition" ,"Func_GetWPAbsolutePosition" ,fn_p_stGetWpAbsolutePosition,USE_WAYPOINT_PARAM ,USE_VECTOR_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Math Functions */
|
||||
M_DEFINE_FUNCTION(eFunc_Int ,"Math_ConversionEnEntier" ,"MATH_Int" ,"Func_Int" ,fn_p_stMathFunctionInt,USE_REAL_PARAM,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_RandomInt ,"Math_EntierAuHasard" ,"MATH_RandomInt" ,"Func_RandomInt" ,fn_p_stMathFunctionInt,USE_2_CONSTANTS_PARAM,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_Real ,"Math_ConversionEnReel" ,"MATH_Real" ,"Func_Real" ,fn_p_stMathFunctionReal,USE_CONSTANT_PARAM,USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_Sinus ,"Math_Sinus" ,"MATH_Sinus" ,"Func_Sinus" ,fn_p_stMathFunctionReal,USE_REAL_PARAM,USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_Cosinus ,"Math_Cosinus" ,"MATH_Cosinus" ,"Func_Cosinus" ,fn_p_stMathFunctionReal,USE_REAL_PARAM,USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_Square ,"Math_Carre" ,"MATH_Square" ,"Func_Square" ,fn_p_stMathFunctionReal,USE_REAL_PARAM,USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_SquareRoot ,"Math_Racine" ,"MATH_SquareRoot" ,"Func_SquareRoot" ,fn_p_stMathFunctionReal,USE_REAL_PARAM,USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_RandomReal ,"Math_ReelAuHasard" ,"MATH_RandomReal" ,"Func_RandomReal" ,fn_p_stMathFunctionReal,USE_2_REALS_PARAM,USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_MinimumReal ,"Math_MinimumReel" ,"MATH_MinimumReal" ,"Func_MinimumReal" ,fn_p_stMathFunctionReal,USE_2_REALS_PARAM,USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_MaximumReal ,"Math_MaximumReel" ,"MATH_MaximumReal" ,"Func_MaximumReal" ,fn_p_stMathFunctionReal,USE_2_REALS_PARAM,USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_DegreeToRadian ,"Math_ConversionDegreEnRadian" ,"MATH_DegreeToRadian" ,"Func_DegreeToRadian" ,fn_p_stMathFunctionReal,USE_REAL_PARAM,USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_RadianToDegree ,"Math_ConversionRadianEnDegre" ,"MATH_RadianToDegree" ,"Func_RadianToDegree" ,fn_p_stMathFunctionReal,USE_REAL_PARAM,USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_AbsoluteValue ,"Math_ValeurAbsolue" ,"MATH_AbsoluteValue" ,"Func_AbsoluteValue" ,fn_p_stMathAbsoluteValue,USE_REAL_PARAM,USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_LimitRealInRange ,"Math_ReelBorne" ,"MATH_LimitRealInRange" ,"Func_LimitRealInRange" ,fn_p_stMathFunctionReal,USE_3_REALS_PARAM, USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_Sign ,"Math_Signe" ,"MATH_Sign" ,"Func_Sign" ,fn_p_stMathFunctionReal,USE_REAL_PARAM, USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_Cube ,"Math_Cube" ,"MATH_Cube" ,"Func_Cube" ,fn_p_stMathFunctionReal,USE_REAL_PARAM, USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_Modulo ,"Math_Modulo" ,"MATH_Modulo" ,"Func_Modulo" ,fn_p_stMathFunctionReal,USE_3_REALS_PARAM, USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_TernInf ,"Math_TernInf" ,"MATH_TernInf" ,"Func_TernInf" ,fn_p_stMathTernarReal,USE_4_REALS_PARAM, USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_TernSup ,"Math_TernSup" ,"MATH_TernSup" ,"Func_TernSup" ,fn_p_stMathTernarReal,USE_4_REALS_PARAM, USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_TernEq ,"Math_TernEq" ,"MATH_TernEq" ,"Func_TernEq" ,fn_p_stMathTernarReal,USE_4_REALS_PARAM, USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_TernInfEq ,"Math_TernInfEq" ,"MATH_TernInfEq" ,"Func_TernInfEq" ,fn_p_stMathTernarReal,USE_4_REALS_PARAM, USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_TernSupEq ,"Math_TernSupEq" ,"MATH_TernSupEq" ,"Func_TernSupEq" ,fn_p_stMathTernarReal,USE_4_REALS_PARAM, USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_TernOp ,"Math_TernOp" ,"MATH_TernOp" ,"Func_TernOp" ,fn_p_stMathTernarReal,USE_BOOLEAN_PARAM USE_2_REALS_PARAM, USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_TemporalRealCombination ,"Math_CombinaisonTemporelleReel" ,"MATH_TemporalRealCombination" ,"Func_TemporalRealCombination" ,fn_p_stRealFunction, USE_REAL_PARAM USE_REAL_PARAM USE_REAL_PARAM, USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/) /*this function is in Function.c*/
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* HitPoints & HitPointsMax Functions */
|
||||
M_DEFINE_FUNCTION(eFunc_GetHitPoints ,"ACT_LitPointsDeVie" ,"ACT_GetHitPoints" ,"Func_GetHitPoints" ,fn_p_stHitPointsAndHitPointsMaxFunction,USE_PERSO_PARAM,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_AddAndGetHitPoints ,"ACT_AjouteEtLitPointsDeVie" ,"ACT_AddAndGetHitPoints" ,"Func_AddAndGetHitPoints" ,fn_p_stHitPointsAndHitPointsMaxFunction,USE_PERSO_CONSTANT_PARAM,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_SubAndGetHitPoints ,"ACT_EnleveEtLitPointsDeVie" ,"ACT_SubAndGetHitPoints" ,"Func_SubAndGetHitPoints" ,fn_p_stHitPointsAndHitPointsMaxFunction,USE_PERSO_CONSTANT_PARAM,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetHitPointsMax ,"ACT_LitPointsDeVieMax" ,"ACT_GetHitPointsMax" ,"Func_GetHitPointsMax" ,fn_p_stHitPointsAndHitPointsMaxFunction,USE_PERSO_PARAM,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_AddAndGetHitPointsMax ,"ACT_AjouteEtLitPointsDeVieMax" ,"ACT_AddAndGetHitPointsMax" ,"Func_AddAndGetHitPointsMax" ,fn_p_stHitPointsAndHitPointsMaxFunction,USE_PERSO_CONSTANT_PARAM,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_SubAndGetHitPointsMax ,"ACT_EnleveEtLitPointsDeVieMax" ,"ACT_SubAndGetHitPointsMax" ,"Func_SubAndGetHitPointsMax" ,fn_p_stHitPointsAndHitPointsMaxFunction,USE_PERSO_CONSTANT_PARAM,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* List Functions */
|
||||
M_DEFINE_FUNCTION(eFunc_ListSize ,"LST_TailleDeListe" ,"LST_ListSize" ,"Func_ListSize" ,fn_p_stListFunction,USE_DSGVARIDLIST_PARAM,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GivePersoInList ,"LST_PrendPersoDansListe" ,"LST_GivePersoInList" ,"Func_GivePersoInList" ,fn_p_stListFunction,USE_DSGVARIDLIST_CONSTANT_PARAM,USE_PERSO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Vector */
|
||||
M_DEFINE_FUNCTION(eFunc_AbsoluteVector ,"VEC_VecteurAbsolu" ,"VEC_AbsoluteVector" ,"Func_AbsoluteVector" ,fn_p_stLocalToGlobal,USE_VECTOR_PARAM,USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_RelativeVector ,"VEC_VecteurRelatif" ,"VEC_RelativeVector" ,"Func_RelativeVector" ,fn_p_stGlobalToLocal,USE_VECTOR_PARAM,USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_VecteurLocalToGlobal ,"VEC_VecteurLocalToGlobal" ,"VEC_VectorLocalToGlobal" ,"Func_VectorLocalToGlobal" ,fn_p_stLocalToGlobal,USE_VECTOR_PARAM,USE_VECTOR_PARAM,ULTRA_ABLE)
|
||||
M_DEFINE_FUNCTION(eFunc_VecteurGlobalToLocal ,"VEC_VecteurGlobalToLocal" ,"VEC_VectorGlobalToLocal" ,"Func_VectorGlobalToLocal" ,fn_p_stGlobalToLocal,USE_VECTOR_PARAM,USE_VECTOR_PARAM,ULTRA_ABLE)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
//KWN : Add a New AI Function
|
||||
M_DEFINE_FUNCTION(eFunc_GetScreenCoordinates ,"ACT_GetScreenCoordinates" ,"ACT_ScreenCoordinates" ,"Func_GetScreenCoordinates" ,fn_p_stVectorFunction,USE_VECTOR_PARAM ,USE_VECTOR_PARAM, NOT_ULTRA_ABLE)
|
||||
M_DEFINE_FUNCTION(eFunc_GetScreenDSActif ,"ACT_GetScreenDSActif" ,"ACT_GetScreenDSActif" ,"Func_GetScreenDSActif" ,fn_p_GetScreenDSActif,USE_NO_PARAM ,USE_CONSTANT_PARAM, NOT_ULTRA_ABLE)
|
||||
M_DEFINE_FUNCTION(eFunc_GetStyletCordinates ,"ACT_GetStyletCordinates" ,"ACT_GetStyletCordinates" ,"Func_GetStyletCordinates" ,fn_p_GetStyletCordinates,USE_NO_PARAM ,USE_VECTOR_PARAM, NOT_ULTRA_ABLE)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
|
||||
/* Magnet MGT functions */
|
||||
/*XB980824*/
|
||||
#ifndef D_THROW_MGT
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetMagnetStrength ,"Magnet_GetStrength" ,"MAGNET_GetStrength" ,"Func_MAGNETGetStrength" ,MGT_fn_p_stGetInfo, USE_NO_PARAM,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetMagnetFar ,"Magnet_GetFar" ,"MAGNET_GetFar" ,"Func_MAGNETGetFar" ,MGT_fn_p_stGetInfo, USE_NO_PARAM,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetMagnetNear ,"Magnet_GetNear" ,"MAGNET_GetNear" ,"Func_MAGNETGetNear" ,MGT_fn_p_stGetInfo, USE_NO_PARAM,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetMagnetDuration ,"Magnet_GetDuration" ,"MAGNET_GetDuration" ,"Func_MAGNETGetDuration" ,MGT_fn_p_stGetInfo, USE_NO_PARAM,USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
#else
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetMagnetStrength ,"Magnet_GetStrength" ,"MAGNET_GetStrength" ,"Func_MAGNETGetStrength" ,fn_p_stDummyFunction, USE_NO_PARAM,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetMagnetFar ,"Magnet_GetFar" ,"MAGNET_GetFar" ,"Func_MAGNETGetFar" ,fn_p_stDummyFunction, USE_NO_PARAM,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetMagnetNear ,"Magnet_GetNear" ,"MAGNET_GetNear" ,"Func_MAGNETGetNear" ,fn_p_stDummyFunction, USE_NO_PARAM,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetMagnetDuration ,"Magnet_GetDuration" ,"MAGNET_GetDuration" ,"Func_MAGNETGetDuration" ,fn_p_stDummyFunction, USE_NO_PARAM,USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
#endif /* D_THROW_MGT */
|
||||
/*End XB*/
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* to change SPO draw mask */
|
||||
NU_M_DEFINE_FUNCTION(eFunc_SPO_GetDrawFlag ,"SPO_GetDrawFlag" ,"SPO_GetDrawFlag" ,"Func_SPO_GetDrawFlag" ,fn_p_st_SPO_GetDrawFlag,USE_SUPEROBJECT_PARAM USE_CONSTANT_PARAM, USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Time Functions */
|
||||
M_DEFINE_FUNCTION(eFunc_GetTime ,"Temps_Obtenir" ,"TIME_GetTime" ,"Func_GetTime" ,fn_p_stTimeFunction,USE_NO_PARAM,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetElapsedTime ,"Temps_Ecoule" ,"TIME_ElapsedTime" ,"Func_ElapsedTime" ,fn_p_stTimeFunction,USE_CONSTANT_PARAM,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetDeltaT ,"Temps_LitDT" ,"TIME_GetDT" ,"Func_GetDT" ,fn_p_stGetDTFunction,USE_NO_PARAM,USE_REAL_PARAM, NOT_ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_GetFrameLength ,"Temps_DureeTrame" ,"TIME_GetFrameLength" ,"Func_GetFrameLength" ,fn_p_stGetFrameLength,USE_NO_PARAM,USE_REAL_PARAM, NOT_ULTRA_ABLE )
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Input analogic value Functions */
|
||||
M_DEFINE_FUNCTION(eFunc_InputAnalogicValue ,"PAD_LitValeurAnalogiqueEntree" ,"PAD_GetInputAnalogicValue" ,"Func_GetInputAnalogicValue" ,fn_p_stInputFunction,USE_BUTTON_PARAM,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_VitessePadAnalogique ,"PAD_VitessePadAnalogique" ,"PAD_VitessePadAnalogique" ,"Func_VitessePadAnalogique" ,fn_p_stCode4VitessePadAnalogique, USE_CONSTANT_PARAM USE_CONSTANT_PARAM USE_REAL_PARAM, USE_VECTOR_PARAM, ULTRA_ABLE )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Misc */
|
||||
M_DEFINE_FUNCTION(eFunc_GenerateObject ,"GenereObjet" ,"ACT_GenerateObject" ,"Func_GenerateObject" ,fn_p_stMiscFunction,USE_ALWAYS_PARAM USE_VECTOR_PARAM,USE_PERSO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_CountGeneratedObjects ,"ACT_CompteObjetsGeneres" ,"ACT_CountGeneratedObjects" ,"Func_CountGeneratedObjects" ,fn_p_stMiscFunction,USE_PERSO_PARAM,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetGlobalCounter ,"MAP_LitCompteurGlobal" ,"MAP_GetGlobalCounter" ,"Func_GetGlobalCounter" ,fn_p_stMiscFunction,USE_NO_PARAM,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetSubMapId ,"MAP_LitNumeroDeSousMap" ,"MAP_GetSubMapId" ,"Func_GetSubMapId" ,fn_p_stMiscFunction,USE_NO_PARAM,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Color functions */
|
||||
NU_M_DEFINE_FUNCTION(eFunc_AddColor ,"AjouteCouleur" ,"COLOR_AddColor" ,"Func_AddColor" ,fn_p_stColorFunction,USE_COLOR_PARAM USE_COLOR_PARAM ,USE_COLOR_PARAM , /**/ NOT_ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_AddRed ,"AjouteRouge" ,"COLOR_AddRed" ,"Func_AddRed" ,fn_p_stColorFunction,USE_COLOR_PARAM USE_CONSTANT_PARAM,USE_COLOR_PARAM , /**/ NOT_ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_AddGreen ,"AjouteVert" ,"COLOR_AddGreen" ,"Func_AddGreen" ,fn_p_stColorFunction,USE_COLOR_PARAM USE_CONSTANT_PARAM,USE_COLOR_PARAM , /**/ NOT_ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_AddBlue ,"AjouteBleu" ,"COLOR_AddBlue" ,"Func_AddBlue" ,fn_p_stColorFunction,USE_COLOR_PARAM USE_CONSTANT_PARAM,USE_COLOR_PARAM , /**/ NOT_ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_AddAlpha ,"AjouteAlpha" ,"COLOR_AddAlpha" ,"Func_AddAlpha" ,fn_p_stColorFunction,USE_COLOR_PARAM USE_CONSTANT_PARAM,USE_COLOR_PARAM , /**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_FUNCTION(eFunc_ColorRedGreenBlueAlpha ,"CouleurRVBA" ,"COLOR_ColorRGBA" ,"Func_ColorRGBA" ,fn_p_stColorFunction,USE_RGBA_PARAM ,USE_COLOR_PARAM , /**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_FUNCTION(eFunc_ColorRedGreenBlue ,"CouleurRVB" ,"COLOR_ColorRGB" ,"Func_ColorRGB" ,fn_p_stColorFunction,USE_RGB_PARAM ,USE_COLOR_PARAM , /**/ NOT_ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_ColorRed ,"ComposanteRouge" ,"COLOR_ColorRed" ,"Func_ColorRed" ,fn_p_stColorFunction,USE_COLOR_PARAM ,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_ColorGreen ,"ComposanteVerte" ,"COLOR_ColorGreen" ,"Func_ColorGreen" ,fn_p_stColorFunction,USE_COLOR_PARAM ,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_ColorBlue ,"ComposanteBleue" ,"COLOR_ColorBlue" ,"Func_ColorBlue" ,fn_p_stColorFunction,USE_COLOR_PARAM ,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_ColorAlpha ,"ComposanteAlpha" ,"COLOR_ColorAlpha" ,"Func_ColorAlpha" ,fn_p_stColorFunction,USE_COLOR_PARAM ,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/ )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Visual GMT functions */
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetVisualGMTColor ,"LitVisuelGMTCouleur" ,"GMT_GetVisualGMTColor" ,"Func_GetVisualGMTColor" ,fn_p_stVisualGameMaterialFunction ,USE_GMT_PARAM, USE_COLOR_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetVisualGMTSpecularCoef ,"LitVisuelGMTSpeculaireCoef" ,"GMT_GetVisualGMTSpecularCoef" ,"Func_GetVisualGMTSpecularCoef" ,fn_p_stVisualGameMaterialFunction ,USE_GMT_PARAM, USE_COLOR_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetVisualGMTSpecularExponent ,"LitVisuelGMTSpeculaireCoef" ,"GMT_GetVisualGMTSpecularExponant" ,"Func_GetVisualGMTSpecularExponant" ,fn_p_stVisualGameMaterialFunction ,USE_GMT_PARAM, USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetVisualGMTDiffuseCoef ,"LitVisuelGMTDiffusionCoef" ,"GMT_GetVisualGMTDiffuseCoef" ,"Func_GetVisualGMTDiffuseCoef" ,fn_p_stVisualGameMaterialFunction ,USE_GMT_PARAM, USE_COLOR_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetVisualGMTAmbientCoef ,"LitVisuelGMTAmbientCoef" ,"GMT_GetVisualGMTAmbientCoef" ,"Func_GetVisualGMTAmbientCoef" ,fn_p_stVisualGameMaterialFunction ,USE_GMT_PARAM, USE_COLOR_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetVisualGMTTextureScrollingCoefU ,"LitVisuelGMTTextureScrollingCoefU","GMT_GetVisualGMTTextureScrollCoefU" ,"Func_GetVisualGMTTextureScrollingCoefU" ,fn_p_stVisualGameMaterialFunction ,USE_GMT_PARAM, USE_REAL_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetVisualGMTTextureScrollingCoefV ,"LitVisuelGMTTextureScrollingCoefV","GMT_GetVisualGMTTextureScrollCoefV" ,"Func_GetVisualGMTTextureScrollingCoefV" ,fn_p_stVisualGameMaterialFunction ,USE_GMT_PARAM, USE_REAL_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetVisualGMTFrame ,"LitNoImageVisuelGMT" ,"GMT_GetVisualGMTFrame" ,"Func_GetVisualGMTFrame" ,fn_p_stVisualGameMaterialFunction ,USE_GMT_PARAM, USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetVisualGMTNumberOfFrames ,"LitNbImagesVisuelGMT" ,"GMT_GetVisualGMTNumberOfFrames" ,"Func_GetVisualGMTNumberOfFrames" ,fn_p_stVisualGameMaterialFunction ,USE_GMT_PARAM, USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Function for savegames */
|
||||
M_DEFINE_FUNCTION(eFunc_SaveGame ,"SauvePartie" ,"GAME_SaveGame" ,"Func_SaveGame" ,fn_p_stSaveGameFunction,USE_CONSTANT_PARAM, USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_LoadGame ,"ChargePartie" ,"GAME_LoadGame" ,"Func_LoadGame" ,fn_p_stSaveGameFunction,USE_CONSTANT_PARAM, USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_EraseGame ,"EffacePartie" ,"GAME_EraseGame" ,"Func_EraseGame" ,fn_p_stSaveGameFunction,USE_CONSTANT_PARAM, USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetCurrentSlot ,"LitNumeroSlotCourant" ,"GAME_GetCurrentSlotNumber" ,"Func_GetCurrentSlotNumber" ,fn_p_stSaveGameFunction,USE_NO_PARAM, USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_IsAValidSlotName ,"OPTION_IsAValidSlotName" ,"OPTION_IsAValidSlotName" ,"Func_IsAValidSlotName" ,fn_p_stIsAValidSlotName, USE_TEXT_PARAM USE_2_CONSTANTS_PARAM, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE)
|
||||
M_DEFINE_FUNCTION(eFunc_RepairCorruptSlot, "GAME_RepairCorruption", "GAME_RepairCorruption", "Func_RepairCorruption", fn_p_stSaveGameFunction, USE_NO_PARAM, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE)
|
||||
|
||||
|
||||
#include "DefFunc1.h"
|
||||
#include "DefFunCa.h"
|
||||
|
||||
#if defined(M_DEFINE_FUNCTION)
|
||||
#undef M_DEFINE_FUNCTION
|
||||
#endif
|
199
Rayman_X/cpa/public/AI/AIGame/DefFunc1.h
Normal file
199
Rayman_X/cpa/public/AI/AIGame/DefFunc1.h
Normal file
@@ -0,0 +1,199 @@
|
||||
/************************************************************************************************
|
||||
* Name: DefFunc1.h *
|
||||
* Use : Macro Definition of functions for AI of Rayman II and Egypte *
|
||||
* Author: Yann Le tensorer, Benoit Germain, Jacques Thenoz, Christophe Giraud *
|
||||
* (c) UBI Simulations Annecy *
|
||||
************************************************************************************************/
|
||||
|
||||
#include "FuncRay2.h"
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
NU_M_DEFINE_FUNCTION(eFunc_VitesseHorizontaleDuPerso ,"ACT_VitesseHorizontaleDuPerso" ,"ACT_HorizontalPersoSpeed" ,"Func_VitesseHorizontaleDuPerso" ,fn_p_stCode4VitesseHorizontaleDuPerso, USE_CONSTANT_PARAM, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_VitesseVerticaleDuPerso ,"ACT_VitesseVerticaleDuPerso" ,"ACT_VerticalPersoSpeed" ,"Func_VitesseVerticaleDuPerso" ,fn_p_stCode4VitesseHorizontaleDuPerso, USE_CONSTANT_PARAM, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_GetPersoZoomFactor ,"ACT_DeformationPerso" ,"ACT_GetPersoZoomFactor" ,"Func_GetPersoZoomFactor" ,fn_p_st3DFunc,USE_NO_PARAM,USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetPersoSighting ,"ACT_ViseePerso" ,"ACT_GetPersoSighting" ,"Func_GetPersoSighting" ,fn_p_stGetPersoSighting, USE_NO_PARAM,USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetPersoHorizon ,"ACT_HorizonPerso" ,"ACT_GetPersoHorizon" ,"Func_GetPersoHorizon" ,fn_p_st3DFunc, USE_NO_PARAM,USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetPersoBanking ,"ACT_AssiettePerso" ,"ACT_GetPersoBanking" ,"Func_GetPersoBanking" ,fn_p_st3DFunc, USE_NO_PARAM,USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_FUNCTION(eFunc_LitPositionZDM ,"ZON_LitPositionZDM" ,"ZON_GetZDMPosition" ,"Func_LitPositionZDM" ,fn_p_stCode4LitPositionZDx, USE_ZDM_PERSO_PARAM, USE_VECTOR_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_LitPositionZDE ,"ZON_LitPositionZDE" ,"ZON_GetZDEPosition" ,"Func_LitPositionZDE" ,fn_p_stCode4LitPositionZDx, USE_ZDE_PERSO_PARAM, USE_VECTOR_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_LitPositionZDD ,"ZON_LitPositionZDD" ,"ZON_GetZDDPosition" ,"Func_LitPositionZDD" ,fn_p_stCode4LitPositionZDx, USE_ZDD_PERSO_PARAM, USE_VECTOR_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_LitCentreZDM ,"ZON_LitCentreZDM" ,"ZON_GetZDMCenter" ,"Func_LitCentreZDM" ,fn_p_stCode4LitCentreZDx, USE_ZDM_PERSO_PARAM, USE_VECTOR_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_LitCentreZDE ,"ZON_LitCentreZDE" ,"ZON_GetZDECenter" ,"Func_LitCentreZDE" ,fn_p_stCode4LitCentreZDx, USE_ZDE_PERSO_PARAM, USE_VECTOR_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_LitCentreZDD ,"ZON_LitCentreZDD" ,"ZON_GetZDDCenter" ,"Func_LitCentreZDD" ,fn_p_stCode4LitCentreZDx, USE_ZDD_PERSO_PARAM, USE_VECTOR_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_LitAxeZDM ,"ZON_LitAxeZDM" ,"ZON_GetZDMAxis" ,"Func_LitAxeZDM" ,fn_p_stCode4LitAxeZDx, USE_ZDM_PERSO_PARAM USE_BOOLEAN_PARAM, USE_VECTOR_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_LitAxeZDE ,"ZON_LitAxeZDE" ,"ZON_GetZDEAxis" ,"Func_LitAxeZDE" ,fn_p_stCode4LitAxeZDx, USE_ZDE_PERSO_PARAM USE_BOOLEAN_PARAM, USE_VECTOR_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_LitAxeZDD ,"ZON_LitAxeZDD" ,"ZON_GetZDDAxis" ,"Func_LitAxeZDD" ,fn_p_stCode4LitAxeZDx, USE_ZDD_PERSO_PARAM USE_BOOLEAN_PARAM, USE_VECTOR_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_LitDimensionZDM ,"ZON_LitDimensionZDM" ,"ZON_GetZDMDimension" ,"Func_LitDimensionZDM" ,fn_p_stCode4LitDimensionZDx, USE_ZDM_PERSO_PARAM, USE_VECTOR_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_LitDimensionZDE ,"ZON_LitDimensionZDE" ,"ZON_GetZDEDimension" ,"Func_LitDimensionZDE" ,fn_p_stCode4LitDimensionZDx, USE_ZDE_PERSO_PARAM, USE_VECTOR_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_LitDimensionZDD ,"ZON_LitDimensionZDD" ,"ZON_GetZDDDimension" ,"Func_LitDimensionZDD" ,fn_p_stCode4LitDimensionZDx, USE_ZDD_PERSO_PARAM, USE_VECTOR_PARAM, ULTRA_ABLE )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_FUNCTION(eFunc_VecteurPointAxe ,"VEC_VecteurPointAxe" ,"VEC_PointAxisVector" ,"Func_VecteurPointAxe" ,fn_p_stCode4VecteurPointAxe, USE_VECTOR_PARAM USE_VECTOR_PARAM USE_VECTOR_PARAM, USE_VECTOR_PARAM, NOT_ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_VecteurPointSegment ,"VEC_VecteurPointSegment" ,"VEC_PointSegmentVector" ,"Func_VecteurPointSegment" ,fn_p_stCode4VecteurPointAxe, USE_VECTOR_PARAM USE_VECTOR_PARAM USE_VECTOR_PARAM, USE_VECTOR_PARAM, NOT_ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_VectorContribution ,"VEC_ContributionVecteur" ,"VEC_VectorContribution" ,"Func_VectorContribution" ,fn_p_stVectorFunction, USE_VECTOR_PARAM USE_VECTOR_PARAM, USE_VECTOR_PARAM, /**/ NOT_ULTRA_ABLE /**/) /*this function is in Function.c*/
|
||||
M_DEFINE_FUNCTION(eFunc_VectorCombination ,"VEC_CombinaisonVecteur" ,"VEC_VectorCombination" ,"Func_VectorCombination" ,fn_p_stVectorFunction, USE_VECTOR_PARAM USE_REAL_PARAM USE_VECTOR_PARAM, USE_VECTOR_PARAM, /**/ NOT_ULTRA_ABLE /**/) /*this function is in Function.c*/
|
||||
M_DEFINE_FUNCTION(eFunc_TemporalVectorCombination ,"VEC_CombinaisonTemporelleVecteur" ,"VEC_TemporalVectorCombination" ,"Func_TemporalVectorCombination" ,fn_p_stVectorFunction, USE_VECTOR_PARAM USE_REAL_PARAM USE_VECTOR_PARAM, USE_VECTOR_PARAM, /**/ NOT_ULTRA_ABLE /**/) /*this function is in Function.c*/
|
||||
M_DEFINE_FUNCTION(eFunc_ScaledVector ,"VEC_MulVecteurScalaire" ,"VEC_ScaledVector" ,"Func_ScaledVector" ,fn_p_stVectorFunction, USE_VECTOR_PARAM USE_REAL_PARAM, USE_VECTOR_PARAM, /**/ NOT_ULTRA_ABLE /**/) /*this function is in Function.c*/
|
||||
M_DEFINE_FUNCTION(eFunc_GetVectorNorm ,"VEC_VecteurNorme" ,"VEC_GetVectorNorm" ,"Func_GetVectorNorm" ,fn_p_stVectorFunction,USE_VECTOR_PARAM,USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_FUNCTION(eFunc_RotateVector ,"VEC_TourneVecteur" ,"VEC_RotateVector" ,"Func_RotateVector" ,fn_p_stVectorFunction,USE_VECTOR_PARAM USE_REAL_PARAM USE_VECTOR_PARAM,USE_VECTOR_PARAM ,NOT_ULTRA_ABLE)
|
||||
M_DEFINE_FUNCTION(eFunc_VectorAngle ,"VEC_VecteurAngle" ,"VEC_AngleVector" ,"Func_VecteurAngle" ,fn_p_stVectorAndAngle,USE_VECTOR_PARAM USE_VECTOR_PARAM USE_CONSTANT_PARAM,USE_REAL_PARAM,NOT_ULTRA_ABLE)
|
||||
M_DEFINE_FUNCTION(eFunc_VectorCos ,"VEC_VecteurCos" ,"VEC_CosVector" ,"Func_VecteurCos" ,fn_p_stVectorAndAngle,USE_VECTOR_PARAM USE_VECTOR_PARAM,USE_REAL_PARAM,NOT_ULTRA_ABLE)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_VectorSin ,"VEC_VecteurSin" ,"VEC_SinVector" ,"Func_VecteurSin" ,fn_p_stVectorAndAngle,USE_VECTOR_PARAM USE_VECTOR_PARAM USE_CONSTANT_PARAM,USE_REAL_PARAM,NOT_ULTRA_ABLE)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_FUNCTION(eFunc_GetNormalCollideVector ,"COL_VecteurNormalCollision" ,"COL_GetNormalCollideVector" ,"Func_GetNormalCollideVector" ,fn_p_stGetNormalCollideVector,USE_NO_PARAM,USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetNormalCollideVector2 ,"COL_VecteurNormalCollision2" ,"COL_GetNormalCollideVector2" ,"Func_GetNormalCollideVector2" ,fn_p_stGetNormalCollideVector,USE_CONSTANT_PARAM,USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetCollidePoint ,"COL_LitPointCollision" ,"COL_GetCollidePoint" ,"Func_GetCollidePoint" ,fn_p_stGetCollidePoint,USE_NO_PARAM,USE_VECTOR_PARAM,ULTRA_ABLE)
|
||||
M_DEFINE_FUNCTION(eFunc_GetCollidePoint2 ,"COL_LitPointCollision2" ,"COL_GetCollidePoint2" ,"Func_GetCollidePoint2" ,fn_p_stGetCollidePoint,USE_CONSTANT_PARAM,USE_VECTOR_PARAM,ULTRA_ABLE)
|
||||
M_DEFINE_FUNCTION(eFunc_GetHandsCollidePoint ,"COL_LitPointCollisionMains" ,"COL_GetHandsCollidePoint" ,"Func_GetHandsCollidePoint" ,fn_p_stGetCollidePoint,USE_NO_PARAM,USE_VECTOR_PARAM,ULTRA_ABLE)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetCollideRate ,"COL_LitTauxDePenetrationCollision" ,"COL_GetCollideRate" ,"eFunc_GetCollideRate" ,fn_p_stGetCollidePoint,USE_NO_PARAM,USE_REAL_PARAM,ULTRA_ABLE)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetCollideRate2 ,"COL_LitTauxDePenetrationCollision2" ,"COL_GetCollideRate2" ,"Func_GetCollideRate2" ,fn_p_stGetCollidePoint,USE_CONSTANT_PARAM,USE_REAL_PARAM,ULTRA_ABLE)
|
||||
M_DEFINE_FUNCTION(eFunc_GetCollideMaterialType ,"COL_LitTypeMateriauCollision" ,"COL_GetCollideMaterialType" ,"Func_GetCollideMaterialType" ,fn_p_stGetCollidePoint,USE_NO_PARAM,USE_MASK_PARAM,ULTRA_ABLE)
|
||||
M_DEFINE_FUNCTION(eFunc_GetCollideMaterialType2 ,"COL_LitTypeMateriauCollision2" ,"COL_GetCollideMaterialType2" ,"eFunc_GetCollideMaterialType2" ,fn_p_stGetCollidePoint,USE_CONSTANT_PARAM,USE_MASK_PARAM,ULTRA_ABLE)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_FUNCTION(eFunc_GetCollisionPoint ,"COL_PointCollision" ,"COL_CollisionPoint" ,"Func_CollisionPoint" ,fn_p_stGetCollision,USE_VECTOR_PARAM USE_VECTOR_PARAM C_LONG_PARAM,USE_VECTOR_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetCollisionVector ,"COL_NormaleCollision" ,"COL_CollisionNormalVector" ,"Func_CollisionNormalVector" ,fn_p_stGetCollision,USE_VECTOR_PARAM USE_VECTOR_PARAM C_LONG_PARAM, USE_VECTOR_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetCollisionPerso ,"COL_PersoCollisionne" ,"COL_PersoCollisionne" ,"Func_PersoCollisionne" ,fn_p_stGetCollision,USE_VECTOR_PARAM USE_VECTOR_PARAM C_LONG_PARAM, USE_PERSO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetCollisionPointMaterial ,"COL_PointCollisionAvecMateriau" ,"COL_CollisionPointMaterial" ,"Func_CollisionPointMaterial" ,fn_p_stGetCollisionWithCollideMaterial,USE_VECTOR_PARAM USE_VECTOR_PARAM C_LONG_PARAM USE_MASK_PARAM,USE_VECTOR_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/* GMT functions */
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetLastTraversedMaterialType ,"COL_TypeDernierMateriauTraverse" ,"COL_GetLastTraversedMaterialType","Func_GetLastTraversedMaterialType" ,fn_p_stGameMaterialFunction ,USE_NO_PARAM,USE_MASK_PARAM,/**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetLastTraversedMaterial ,"COL_DernierMateriauTraverse" ,"COL_GetLastTraversedMaterial" ,"Func_GetLastTraversedMaterial" ,fn_p_stGameMaterialFunction ,USE_NO_PARAM,USE_GMT_PARAM,/**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetCurrentCollidedGMT ,"LitGMTCourant" ,"COL_GetCurrentCollidedGMT" ,"Func_GetCurrentCollidedGMT" ,fn_p_stGameMaterialFunction ,USE_NO_PARAM,USE_GMT_PARAM,/**/ ULTRA_ABLE /**/ )
|
||||
/* collision communication management : NOT ULTRA, because only the executed actor can read his information */
|
||||
M_DEFINE_FUNCTION(eFunc_GetColliderType ,"COL_LitTypeDeCollisionneur" ,"COL_GetColliderType" ,"Func_GetColliderType" ,fn_p_stCollideCommunicationFunc, USE_NO_PARAM, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetColliderVector ,"COL_LitVecteurDeCollisionneur" ,"COL_GetColliderVector" ,"Func_GetColliderVector" ,fn_p_stCollideCommunicationFunc, USE_CONSTANT_PARAM, USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetColliderReal ,"COL_LitReelDeCollisionneur" ,"COL_GetColliderReal" ,"Func_GetColliderReal" ,fn_p_stCollideCommunicationFunc, USE_CONSTANT_PARAM, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetLastCollisionActor ,"COL_LitDernierPersoCollisione" ,"COL_LitDernierPersoCollisione" ,"Func_LitDernierPersoCollisione" ,fn_p_stGetLastCollisionActor,USE_PERSO_PARAM,USE_PERSO_PARAM,NOT_ULTRA_ABLE)
|
||||
M_DEFINE_FUNCTION(eFunc_ComputeRebondVector ,"COL_CalculVecteurRebond" ,"COL_CalculVecteurRebond" ,"Func_CalculVecteurRebond" ,fn_p_stComputeRebondVector,USE_VECTOR_PARAM USE_VECTOR_PARAM USE_REAL_PARAM,USE_VECTOR_PARAM,NOT_ULTRA_ABLE)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* position management : ULTRA */
|
||||
M_DEFINE_FUNCTION(eFunc_GetModuleAbsolutePosition ,"MOD_PositionAbsolueModule" ,"MOD_GetModuleAbsolutePosition" ,"Func_GetModuleAbsolutePosition" ,fn_p_st3DFunc,USE_MODULE_PARAM,USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetModuleRelativePosition ,"MOD_PositionRelativeModule" ,"MOD_GetModuleRelativePosition" ,"Func_GetModuleRelativePosition" ,fn_p_st3DFunc,USE_MODULE_PARAM,USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetModuleZoomFactor ,"MOD_DeformationModule" ,"MOD_GetModuleZoomFactor" ,"Func_GetModuleZoomFactor" ,fn_p_st3DFunc,USE_MODULE_PARAM,USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetModuleSighting ,"MOD_ViseeModule" ,"MOD_GetModuleSighting" ,"Func_GetModuleSighting" ,fn_p_st3DFunc, USE_MODULE_PARAM USE_BOOLEAN_PARAM, USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_CastIntegerToChannel ,"MOD_ConversionEnModule" ,"MOD_CastIntegerToChannel" ,"Func_CastIntegerToChannel" ,fn_p_stMiscFunction, USE_CONSTANT_PARAM, USE_MODULE_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* names and strings management */
|
||||
M_DEFINE_FUNCTION(eFunc_GetSlotDate ,"TEXT_LitDateDuSlot" ,"TEXT_GetSlotDate" ,"Func_GetSlotDate" ,fn_p_stNamesFunc,USE_CONSTANT_PARAM,USE_STRING_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetSlotName ,"TEXT_LitNomDuSlot" ,"TEXT_GetSlotName" ,"Func_GetSlotName" ,fn_p_stNamesFunc,USE_CONSTANT_PARAM,USE_STRING_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetSlotScore ,"TEXT_LitScoreDuSlot" ,"TEXT_GetSlotScore" ,"Func_GetSlotScore" ,fn_p_stNamesFunc,USE_CONSTANT_PARAM,USE_STRING_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetStringCharAt ,"TEXT_LettreDuTexteALaPosition" ,"TEXT_GetStringCharAt" ,"Func_GetStringCharAt" ,fn_p_stNamesFunc,USE_STRING_PARAM USE_CONSTANT_PARAM,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetFormattedTextInfo ,"TEXT_LitInfoSurTexteFormate" ,"TEXT_GetFormattedTextInfo" ,"Func_GetFormattedTextInfo" ,fn_p_stNamesFunc,USE_STRING_PARAM USE_REAL_PARAM USE_ADDR_ARRAY_PARAM USE_ADDR_ARRAY_PARAM USE_ADDR_ARRAY_PARAM USE_CONSTANT_PARAM,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetInputEntryName ,"TEXT_LitNomDeLaTouche" ,"TEXT_GetInputEntryName" ,"Func_GetInputEntryName" ,fn_p_stNamesFunc,USE_BUTTON_PARAM, USE_STRING_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_FUNCTION(eFunc_GetMechanicGravityFactor ,"MEC_LitGravite" ,"MEC_GetGravityFactor" ,"Proc_GetMechanicGravityFactor" ,fn_p_GetMechanicParameter, USE_NO_PARAM, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetMechanicSlide ,"MEC_LitGlissement" ,"MEC_GetSlide" ,"Proc_GetMechanicSlide" ,fn_p_GetMechanicParameter, USE_NO_PARAM, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetMechanicRebound ,"MEC_LitRebond" ,"MEC_GetRebound" ,"Proc_GetMechanicRebound" ,fn_p_GetMechanicParameter, USE_NO_PARAM, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetMechanicSlopeLimit ,"MEC_LitLimitePente" ,"MEC_GetSlopeLimit" ,"Proc_GetMechanicSlopeLimit" ,fn_p_GetMechanicParameter, USE_NO_PARAM, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetMechanicInertiaX ,"MEC_LitInertieX" ,"MEC_GetInertiaX" ,"Proc_GetMechanicInertiaX" ,fn_p_GetMechanicParameter, USE_NO_PARAM, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetMechanicInertiaY ,"MEC_LitInertieY" ,"MEC_GetInertiaY" ,"Proc_GetMechanicInertiaY" ,fn_p_GetMechanicParameter, USE_NO_PARAM, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetMechanicInertiaZ ,"MEC_LitInertieZ" ,"MEC_GetInertiaZ" ,"Proc_GetMechanicInertiaZ" ,fn_p_GetMechanicParameter, USE_NO_PARAM, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetMechanicTiltIntensity ,"MEC_LitIntensiteTilt" ,"MEC_GetTiltIntensity" ,"Proc_GetMechanicTiltIntensity" ,fn_p_GetMechanicParameter, USE_NO_PARAM, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetMechanicTiltInertia ,"MEC_LitInertieTilt" ,"MEC_GetTiltInertia" ,"Proc_GetMechanicTiltInertia" ,fn_p_GetMechanicParameter, USE_NO_PARAM, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetMechanicTiltOrigin ,"MEC_LitOrigineTilt" ,"MEC_GetTiltOrigin" ,"Proc_GetMechanicTiltOrigin" ,fn_p_GetMechanicParameter, USE_NO_PARAM, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetMechanicMaxSpeed ,"MEC_LitVitesseMax" ,"MEC_GetMaxSpeed" ,"Proc_GetMechanicMaxSpeed" ,fn_p_GetMechanicParameter, USE_NO_PARAM, USE_VECTOR_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetMechanicStreamPriority ,"MEC_LitPrioriteFlux" ,"MEC_GetStreamPriority" ,"Proc_GetMechanicStreamPriority" ,fn_p_GetMechanicParameter, USE_NO_PARAM, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetMechanicStreamSpeed ,"MEC_LitVitesseFlux" ,"MEC_GetStreamSpeed" ,"Proc_GetMechanicStreamSpeed" ,fn_p_GetMechanicParameter, USE_NO_PARAM, USE_VECTOR_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetMechanicStreamFactor ,"MEC_LitFacteurDeFlux" ,"MEC_GetStreamFactor" ,"Proc_GetMechanicStreamFactor" ,fn_p_GetMechanicParameter, USE_NO_PARAM, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
/* slide coef */
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetSlideFactorX ,"MEC_LitCoefDeGlisseX" ,"MEC_GetSlideFactorX" ,"Proc_GetSlideFactorX" ,fn_p_GetMechanicParameter, USE_NO_PARAM, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetSlideFactorY ,"MEC_LitCoefDeGlisseY" ,"MEC_GetSlideFactorY" ,"Proc_GetSlideFactorY" ,fn_p_GetMechanicParameter, USE_NO_PARAM, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetSlideFactorZ ,"MEC_LitCoefDeGlisseZ" ,"MEC_GetSlideFactorZ" ,"Proc_GetSlideFactorZ" ,fn_p_GetMechanicParameter, USE_NO_PARAM, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_JumpImpulsion ,"MEC_ImpulsionSaut" ,"MEC_JumpImpulsion" ,"Proc_JumpImpulsion" ,fn_p_ComputeJumpImpulsion, USE_VECTOR_PARAM USE_VECTOR_PARAM USE_REAL_PARAM, USE_VECTOR_PARAM, ULTRA_ABLE )
|
||||
/* anim speed */
|
||||
M_DEFINE_FUNCTION(eFunc_GetSpeedAnim ,"MEC_LitVitesseAnimation" ,"MEC_GetSpeedAnim" ,"Proc_GetSpeedAnim" ,fn_p_GetMechanicParameter, USE_NO_PARAM, USE_VECTOR_PARAM, ULTRA_ABLE )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Hierarchy - Platform */
|
||||
M_DEFINE_FUNCTION(eFunc_HierGetFather ,"HIER_MonPere" ,"HIER_GetFather" ,"proc_HIERGetFather" ,fn_p_GetHierarchyLink, USE_NO_PARAM, USE_PERSO_PARAM, ULTRA_ABLE )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Zone Activation Privileged */
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetActivationZDD ,"ZON_LitActivationZDD" ,"ZON_GetZDDActivation" ,"Func_LitActivationZDD" ,fn_p_GetPriviligedActivationZdx, USE_ZDD_PERSO_PARAM, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetActivationZDM ,"ZON_LitActivationZDM" ,"ZON_GetZDMActivation" ,"Func_LitActivationZDM" ,fn_p_GetPriviligedActivationZdx, USE_ZDM_PERSO_PARAM, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetActivationZDE ,"ZON_LitActivationZDE" ,"ZON_GetZDEActivation" ,"Func_LitActivationZDE" ,fn_p_GetPriviligedActivationZdx, USE_ZDE_PERSO_PARAM, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetActivationZDR ,"ZON_LitActivationZDR" ,"ZON_GetZDRActivation" ,"Func_LitActivationZDR" ,fn_p_GetPriviligedActivationZdx, USE_ZDR_PERSO_PARAM, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Computing collision frequency */
|
||||
/* Computing Brain frequency */
|
||||
/* Computing Light frequency */
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetCollisionFrequency ,"ACT_LitFrequenceCalculCollisions" ,"ACT_GetCollComputationFrequency" ,"Func_GetCollComputationFrequency" ,fn_p_GetComputationFrequency, USE_NO_PARAM, USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_GetBrainFrequency ,"ACT_LitFrequenceCalculIA" ,"ACT_GetBrainComputationFrequency" ,"Func_GetBrainComputationFrequency" ,fn_p_GetComputationFrequency, USE_NO_PARAM, USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetLightFrequency ,"ACT_LitFrequenceCalculLumieres" ,"ACT_GetLightComputationFrequency" ,"Func_GetLightComputationFrequency" ,fn_p_GetComputationFrequency, USE_NO_PARAM, USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_FUNCTION(eFunc_GetBooleanInArray ,"ACT_LitBooleenDansTableau" ,"ACT_GetBooleanInArray" ,"Func_GetBooleanInArray" ,fn_p_GetBooleanInArray ,USE_ADDR_ARRAY_PARAM USE_CONSTANT_PARAM, USE_BOOLEAN_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetNumberOfBooleanInArray ,"ACT_LitNombreDeBooleensDansTableau" ,"ACT_GetNumberOfBooleanInArray" ,"Func_GetNumberOfBooleanInArray" ,fn_p_GetBooleanInArray ,USE_ADDR_ARRAY_PARAM USE_CONSTANT_PARAM USE_CONSTANT_PARAM, USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetButtonName ,"BUT_GetButtonName" ,"BUT_GetButtonName" ,"Func_GetButtonName" ,fn_p_stGetButtonName ,USE_BUTTON_PARAM, USE_STRING_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
#if (!defined U64)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetDriversAvailable ,"VID_GetDriversAvailable" ,"VID_GetDriversAvailable" ,"Func_GetDriversAvailable" ,fn_p_stGetDriversAvailable ,USE_NO_PARAM, USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
#else
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetDriversAvailable ,"VID_GetDriversAvailable" ,"VID_GetDriversAvailable" ,"Func_GetDriversAvailable" ,fn_p_stDummyFunction ,USE_NO_PARAM, USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
#endif /* U64*/
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_FUNCTION(eFunc_GetCurrentLanguageId ,"TEXT_GetCurrentLanguageId" ,"TEXT_GetCurrentLanguageId" ,"Func_GetCurrentLanguageId" ,fn_p_stGetCurrentLanguageId ,USE_NO_PARAM ,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetNbLanguages ,"TEXT_GetNbLanguages" ,"TEXT_GetNbLanguages" ,"Func_GetNbLanguages" ,fn_p_stGetNbLanguages ,USE_NO_PARAM ,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetLanguageText ,"TEXT_GetLanguageText" ,"TEXT_GetLanguageText" ,"Func_GetLanguageText" ,fn_p_stGetLanguageText ,USE_CONSTANT_PARAM ,USE_STRING_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
NU_M_DEFINE_FUNCTION(eFunc_TextToInt ,"TEXT_TexteEnEntier" ,"TEXT_TextToInt" ,"Func_TextToInt" ,fn_p_stTextToInt ,USE_STRING_PARAM ,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_FUNCTION(eFunc_GetMusicVolume ,"Option_GetVolumeMusical" ,"OPTION_GetMusicVolume" ,"Func_GetMusicVolume" ,fn_p_stOptionRecupererFunc ,USE_NO_PARAM ,USE_CONSTANT_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetSfxVolume ,"Option_GetVolumeEffets" ,"OPTION_GetSfxVolume" ,"Func_GetSfxVolume" ,fn_p_stOptionRecupererFunc ,USE_NO_PARAM ,USE_CONSTANT_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_FUNCTION(eFunc_SlotIsValid ,"Option_SlotIsValid" ,"OPTION_SlotIsValid" ,"Func_SlotIsValid" ,fn_p_stOptionSlotIsValid ,USE_CONSTANT_PARAM ,USE_CONSTANT_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_FUNCTION(eFunc_NbAvailableResolution ,"VID_NbAvailableResolution" ,"VID_NbAvailableResolution" ,"Func_NbAvailableResolution" ,fn_p_stGetNbAvailableResolution ,USE_NO_PARAM ,USE_CONSTANT_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_FUNCTION(eFunc_CurrentResolution ,"VID_CurrentResolution" ,"VID_CurrentResolution" ,"Func_CurrentResolution" ,fn_p_stGetCurrentResolution ,USE_NO_PARAM ,USE_CONSTANT_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_FUNCTION(eFunc_GetBrightness ,"VID_GetBrightness" ,"VID_GetBrightness" ,"Func_GetBrightness" ,fn_p_stGetBrightness ,USE_NO_PARAM ,USE_CONSTANT_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
NU_M_DEFINE_FUNCTION(eFunc_NameResolution ,"VID_NameResolution" ,"VID_NameResolution" ,"Func_NameResolution" ,fn_p_stGetNameResolution ,USE_CONSTANT_PARAM ,USE_STRING_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_FUNCTION(eFunc_GetNbSlotsAvailable ,"OPTION_GetNbSlotsAvailable" ,"OPTION_GetNbSlotsAvailable" ,"Func_GetNbSlotsAvailable" ,fn_p_stGetNbSlotsAvailable ,USE_CONSTANT_PARAM ,USE_CONSTANT_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetTextureFiltering ,"VID_GetTextureFiltering" ,"VID_GetTextureFiltering" ,"Func_GetTextureFiltering" ,fn_p_stGetVideoOptions ,USE_NO_PARAM ,USE_CONSTANT_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetAntiAliasing ,"VID_GetAntiAliasing" ,"VID_GetAntiAliasing" ,"Func_GetAntiAliasing" ,fn_p_stGetVideoOptions ,USE_CONSTANT_PARAM ,USE_CONSTANT_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetSaturationDistance ,"ACT_LitDistanceDeSaturation" ,"ACT_GetSaturationDistance" ,"Func_GetSaturationDistance" ,fn_p_stGetMSSoundValues ,USE_NO_PARAM ,USE_CONSTANT_PARAM ,ULTRA_ABLE)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetBackgroundDistance ,"ACT_LitDistanceDeBackground" ,"ACT_GetBackGroundDistance" ,"Func_GetBackGroundDistance" ,fn_p_stGetMSSoundValues ,USE_NO_PARAM ,USE_CONSTANT_PARAM ,ULTRA_ABLE)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_FUNCTION(eFunc_GetTooFarLimit ,"ACT_LitLimiteEloignement" ,"ACT_GetTooFarLimit" ,"Func_GetTooFarLimit" ,fn_p_stGetStdGameLimit ,USE_NO_PARAM ,USE_CONSTANT_PARAM ,ULTRA_ABLE)
|
||||
M_DEFINE_FUNCTION(eFunc_GetTransparencyZoneMin ,"ACT_LitZoneMinTransparence" ,"ACT_GetTransparencyZoneMin" ,"Func_GetTransparencyZoneMin" ,fn_p_stGetStdGameLimit ,USE_NO_PARAM ,USE_CONSTANT_PARAM ,ULTRA_ABLE)
|
||||
M_DEFINE_FUNCTION(eFunc_GetTransparencyZoneMax ,"ACT_LitZoneMaxTransparence" ,"ACT_GetTransparencyZoneMax" ,"Func_GetTransparencyZoneMax" ,fn_p_stGetStdGameLimit ,USE_NO_PARAM ,USE_CONSTANT_PARAM ,ULTRA_ABLE)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* ANNECY MT - 30/03/99 { PC Protection Code */
|
||||
#if (!defined U64)
|
||||
M_DEFINE_FUNCTION(eFunc_ExecuteVariable ,"PRO_ExecuteVariable" ,"PRO_ExecuteVariable" ,"Func_ExecuteVariable" ,fn_p_ExecuteVariable ,USE_ADDR_ARRAY_PARAM USE_ADDR_ARRAY_PARAM USE_CONSTANT_PARAM, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_ComputeProtectKey ,"ACT_CalculeClefProtection" ,"ACT_ComputeProtectKey" ,"Func_ComputeProtectKey" ,fn_p_stComputeProtectKey ,USE_CONSTANT_PARAM ,USE_CONSTANT_PARAM ,ULTRA_ABLE)
|
||||
M_DEFINE_FUNCTION(eFunc_Xor ,"MATH_Xor" ,"MATH_Xor" ,"Func_Xor" ,fn_p_stComputeXor ,USE_CONSTANT_PARAM USE_CONSTANT_PARAM ,USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
/* ANNECY OA - 26/08/99 { */
|
||||
M_DEFINE_FUNCTION(eFunc_And ,"MATH_And" ,"MATH_And" ,"MATH_And" ,fn_p_stComputeXor ,USE_CONSTANT_PARAM USE_CONSTANT_PARAM ,USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_Or ,"MATH_Or" ,"MATH_Or" ,"Func_Or" ,fn_p_stComputeXor ,USE_CONSTANT_PARAM USE_CONSTANT_PARAM ,USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_Not ,"MATH_Not" ,"MATH_Not" ,"Func_Not" ,fn_p_stComputeNot ,USE_CONSTANT_PARAM ,USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
/* END ANNECY OA } */
|
||||
M_DEFINE_FUNCTION(eFunc_DivUnsigned ,"MATH_DivU" ,"MATH_DivU" ,"Func_DivU" ,fn_p_stComputeXor ,USE_CONSTANT_PARAM USE_CONSTANT_PARAM ,USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_MulUnsigned ,"MATH_MulU" ,"MATH_MulU" ,"Func_MulU" ,fn_p_stComputeXor ,USE_CONSTANT_PARAM USE_CONSTANT_PARAM ,USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_AddUnsigned ,"MATH_AddU" ,"MATH_AddU" ,"Func_AddU" ,fn_p_stComputeXor ,USE_CONSTANT_PARAM USE_CONSTANT_PARAM ,USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_SubUnsigned ,"MATH_SubU" ,"MATH_SubU" ,"Func_SubU" ,fn_p_stComputeXor ,USE_CONSTANT_PARAM USE_CONSTANT_PARAM ,USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetMemoryValue ,"MATH_ValeurMemoire" ,"MATH_MemoryValue" ,"Func_MemoryValue" ,fn_p_stComputeXor ,USE_CONSTANT_PARAM ,USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
#else
|
||||
M_DEFINE_FUNCTION(eFunc_ExecuteVariable ,"PRO_ExecuteVariable" ,"PRO_ExecuteVariable" ,"Func_ExecuteVariable" ,fn_p_stDummyFunction ,USE_ADDR_ARRAY_PARAM USE_ADDR_ARRAY_PARAM USE_CONSTANT_PARAM, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_ComputeProtectKey ,"ACT_CalculeClefProtection" ,"ACT_ComputeProtectKey" ,"Func_ComputeProtectKey" ,fn_p_stDummyFunction ,USE_CONSTANT_PARAM ,USE_CONSTANT_PARAM ,ULTRA_ABLE)
|
||||
M_DEFINE_FUNCTION(eFunc_Xor ,"MATH_Xor" ,"MATH_Xor" ,"Func_Xor" ,fn_p_stDummyFunction ,USE_CONSTANT_PARAM USE_CONSTANT_PARAM ,USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
/* ANNECY OA - 26/08/99 { */
|
||||
M_DEFINE_FUNCTION(eFunc_And ,"MATH_And" ,"MATH_And" ,"MATH_And" ,fn_p_stDummyFunction ,USE_CONSTANT_PARAM USE_CONSTANT_PARAM ,USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_Or ,"MATH_Or" ,"MATH_Or" ,"Func_Or" ,fn_p_stDummyFunction ,USE_CONSTANT_PARAM USE_CONSTANT_PARAM ,USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_Not ,"MATH_Not" ,"MATH_Not" ,"Func_Not" ,fn_p_stDummyFunction ,USE_CONSTANT_PARAM ,USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
/* END ANNECY OA } */
|
||||
M_DEFINE_FUNCTION(eFunc_DivUnsigned ,"MATH_DivU" ,"MATH_DivU" ,"Func_DivU" ,fn_p_stDummyFunction ,USE_CONSTANT_PARAM USE_CONSTANT_PARAM ,USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_MulUnsigned ,"MATH_MulU" ,"MATH_MulU" ,"Func_MulU" ,fn_p_stDummyFunction ,USE_CONSTANT_PARAM USE_CONSTANT_PARAM ,USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_AddUnsigned ,"MATH_AddU" ,"MATH_AddU" ,"Func_AddU" ,fn_p_stDummyFunction ,USE_CONSTANT_PARAM USE_CONSTANT_PARAM ,USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_SubUnsigned ,"MATH_SubU" ,"MATH_SubU" ,"Func_SubU" ,fn_p_stDummyFunction ,USE_CONSTANT_PARAM USE_CONSTANT_PARAM ,USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetMemoryValue ,"MATH_ValeurMemoire" ,"MATH_MemoryValue" ,"Func_MemoryValue" ,fn_p_stDummyFunction ,USE_CONSTANT_PARAM ,USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
#endif /* U64 */
|
||||
M_DEFINE_FUNCTION(eFunc_GetCheats ,"FUNC_GetCheats" ,"FUNC_GetCheats" ,"Func_GetCheats" ,fn_GetCheatFlags ,USE_CONSTANT_PARAM ,USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_FUNCTION(eFunc_GetBacklight, "FUNC_GetBacklight", "FUNC_GetBacklight", "Func_GetBacklight", fn_GetBacklight, USE_CONSTANT_PARAM, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE)
|
||||
|
||||
M_DEFINE_FUNCTION(eFunc_DoneAnalogCalibration, "FUNC_DoneAnalogCalibration", "FUNC_DoneAnalogCalibration", "Func_DoneAnalogCalibration", fn_DoneAnalogCalibration, USE_NO_PARAM, USE_BOOLEAN_PARAM, NOT_ULTRA_ABLE)
|
||||
|
||||
/* END ANNECY MT } */
|
60
Rayman_X/cpa/public/AI/AIGame/DefKey.h
Normal file
60
Rayman_X/cpa/public/AI/AIGame/DefKey.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/*-------------------------------------------------------------------------------------
|
||||
DefKey.h : Keywords definitions
|
||||
Author : Olivier Couvreur 20/08/97
|
||||
--------------------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(M_DEFINE_KEYWORD)
|
||||
#error You should define M_DEFINE_KEYWORD accordingly before including this file !
|
||||
#endif
|
||||
|
||||
/* 6 parameters to define a keyword : enum , editor name, script name, function pointers in KeyWord.c, in params, out params */
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_KEYWORD(eKeyWord_If ,"Si" ,"If" ,"If" ,fn_p_stIfKeyWord,USE_BOOLEAN_PARAM,USE_NO_PARAM)
|
||||
M_DEFINE_KEYWORD(eKeyWord_IfNot ,"SiPas" ,"IfNot" ,"IfNot" ,fn_p_stIfKeyWord,USE_BOOLEAN_PARAM,USE_NO_PARAM)
|
||||
M_DEFINE_KEYWORD(eKeyWord_If2 ,"Si2" ,"If2" ,"If2" ,fn_p_stIfKeyWord,USE_BOOLEAN_PARAM,USE_NO_PARAM)
|
||||
M_DEFINE_KEYWORD(eKeyWord_If4 ,"Si4" ,"If4" ,"If4" ,fn_p_stIfKeyWord,USE_BOOLEAN_PARAM,USE_NO_PARAM)
|
||||
M_DEFINE_KEYWORD(eKeyWord_If8 ,"Si8" ,"If8" ,"If8" ,fn_p_stIfKeyWord,USE_BOOLEAN_PARAM,USE_NO_PARAM)
|
||||
M_DEFINE_KEYWORD(eKeyWord_If16 ,"Si16" ,"If16" ,"If16" ,fn_p_stIfKeyWord,USE_BOOLEAN_PARAM,USE_NO_PARAM)
|
||||
M_DEFINE_KEYWORD(eKeyWord_IfDebug ,"SiDebug" ,"IfDebug" ,"IfDebug" ,fn_p_stIfDebug,USE_NO_PARAM,USE_NO_PARAM)
|
||||
M_DEFINE_KEYWORD(eKeyWord_IfNotU64 ,"SiPasU64" ,"IfNotU64" ,"IfNotU64" ,fn_p_stIfNotU64,USE_NO_PARAM,USE_NO_PARAM)
|
||||
M_DEFINE_KEYWORD(eKeyWord_Then ,"Alors" ,"Then" ,"Then" ,fn_p_stThenKeyWord,USE_NO_PARAM,USE_NO_PARAM)
|
||||
M_DEFINE_KEYWORD(eKeyWord_Else ,"Sinon" ,"Else" ,"Else" ,fn_p_stElseKeyWord,USE_NO_PARAM,USE_NO_PARAM)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_KEYWORD(eKeyWord_EngineGoto ,"_EngineGoto" ,"_EngineGoto" ,"_EngineGoto" ,fn_p_stEngineGotoKeyWord,USE_CONSTANT_PARAM,USE_NO_PARAM)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_KEYWORD(eKeyWord_Me ,"Moi" ,"Me" ,"Me" ,fn_p_stMeKeyWord,USE_NO_PARAM,USE_PERSO_PARAM)
|
||||
M_DEFINE_KEYWORD(eKeyWord_MainActor ,"ActeurPrincipal" ,"MainActor" ,"MainActor" ,fn_p_stMainActorKeyWord,USE_NO_PARAM,USE_PERSO_PARAM)
|
||||
/*M_DEFINE_KEYWORD(eKeyWord_World ,"Monde" ,"World" ,fn_p_stWorldKeyWord,USE_NO_PARAM,USE_PERSO_PARAM)*/
|
||||
M_DEFINE_KEYWORD(eKeyWord_Nobody ,"Personne" ,"Nobody" ,"Nobody" ,fn_p_stNobodyKeyWord,USE_NO_PARAM,USE_PERSO_PARAM)
|
||||
/* ANNECY OA - 05/08/99 { */
|
||||
#ifndef U64
|
||||
M_DEFINE_KEYWORD(eKeyWord_NoSuperObject,"SansSuperObjet" ,"NoSuperObject" ,"NoSuperObject" ,fn_p_stNoSuperObjectKeyWord,USE_NO_PARAM,USE_SUPEROBJECT_PARAM)
|
||||
#endif
|
||||
/* END ANNECY OA } */
|
||||
M_DEFINE_KEYWORD(eKeyWord_Nowhere ,"Nullepart" ,"Nowhere" ,"Nowhere" ,fn_p_stNowhereKeyWord,USE_NO_PARAM,USE_WAYPOINT_PARAM)
|
||||
M_DEFINE_KEYWORD(eKeyWord_EmptyText ,"TexteVide" ,"EmptyText" ,"EmptyText" ,fn_p_stEmptyTextKeyWord,USE_NO_PARAM,USE_TEXT_PARAM)
|
||||
/*ANNECY Bart 06/02/98 {*/
|
||||
M_DEFINE_KEYWORD(eKeyWord_CapsNull ,"CapaZero" ,"CapaNull" ,"CapaNull" ,fn_p_stCapsNullKeyWord, USE_NO_PARAM, USE_CAPS_PARAM)
|
||||
M_DEFINE_KEYWORD(eKeyWord_NoGraph ,"SansGraph" ,"NoGraph" ,"NoGraph" ,fn_p_stNoGraphKeyWord, USE_NO_PARAM, USE_GRAPH_PARAM)
|
||||
/*ENDANNECY Bart }*/
|
||||
M_DEFINE_KEYWORD(eKeyWord_NoAction ,"SansAction" ,"NoAction" ,"NoAction" ,fn_p_stNoActionKeyWord,USE_NO_PARAM,USE_ACTION_PARAM)
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
M_DEFINE_KEYWORD(eKeyWord_NoComport ,"SansComportement" ,"NoComport" ,"NoComport" ,fn_p_stMiscKeyWord,USE_NO_PARAM,"") /* to define ??*/
|
||||
M_DEFINE_KEYWORD(eKeyWord_Schedule ,"EmploiTemps" ,"Schedule" ,"Schedule" ,fn_p_stMiscKeyWord,USE_NO_PARAM,USE_NO_PARAM)
|
||||
M_DEFINE_KEYWORD(eKeyWord_InterruptRule,"RegleInterruption","InterruptRule" ,"InterruptRule" ,fn_p_stMiscKeyWord,USE_NO_PARAM,USE_NO_PARAM)
|
||||
M_DEFINE_KEYWORD(eKeyWord_Vector ,"Vecteur" ,"Vector" ,"Vector" ,fn_p_stMiscKeyWord,USE_3_REALS_PARAM,USE_VECTOR_PARAM)
|
||||
M_DEFINE_KEYWORD(eKeyWord_ConstVector ,"VecteurConstant" ,"ConstantVector" ,"ConstantVector" ,fn_p_stMiscKeyWord,USE_3_REALS_PARAM,USE_VECTOR_PARAM)
|
||||
M_DEFINE_KEYWORD(eKeyWord_Endif ,"FinSi" ,"Endif" ,"Endif" ,fn_p_stMiscKeyWord,USE_NO_PARAM,USE_NO_PARAM)
|
||||
M_DEFINE_KEYWORD(eKeyWord_Macro ,"Macro" ,"Macro" ,"Macro" ,fn_p_stMiscKeyWord,USE_NO_PARAM,USE_NO_PARAM)
|
||||
M_DEFINE_KEYWORD(eKeyWord_True ,"Vrai" ,"True" ,"True" ,fn_p_stMiscKeyWord,USE_NO_PARAM,USE_NO_PARAM)
|
||||
M_DEFINE_KEYWORD(eKeyWord_False ,"Faux" ,"False" ,"False" ,fn_p_stMiscKeyWord,USE_NO_PARAM,USE_NO_PARAM)
|
||||
M_DEFINE_KEYWORD(eKeyWord_StopEngine ,"BloquantMoteur" ,"StopEngine" ,"StopEngine" ,fn_p_stMiscKeyWord,USE_NO_PARAM,USE_NO_PARAM)
|
||||
M_DEFINE_KEYWORD(eKeyWord_StopRule ,"BloquantRegle" ,"StopRule" ,"StopRule" ,fn_p_stMiscKeyWord,USE_NO_PARAM,USE_NO_PARAM)
|
||||
M_DEFINE_KEYWORD(eKeyWord_NonStop ,"NonBloquant" ,"NonStop" ,"NonStop" ,fn_p_stMiscKeyWord,USE_NO_PARAM,USE_NO_PARAM)
|
||||
#endif
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
|
||||
#if defined(M_DEFINE_KEYWORD)
|
||||
#undef M_DEFINE_KEYWORD
|
||||
#endif
|
32
Rayman_X/cpa/public/AI/AIGame/DefOTI.h
Normal file
32
Rayman_X/cpa/public/AI/AIGame/DefOTI.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*-------------------------------------------------------------------------------------
|
||||
DefOTI.h : Variables init type definitions (use GAM OTI flags (cf Francois Mahieu))
|
||||
Author : Olivier Couvreur 25/09/97
|
||||
--------------------------------------------------------------------------------------*/
|
||||
|
||||
/* NOT FINISHED YET */
|
||||
|
||||
#if !defined(M_DEFINE_DSGVAR_INIT_TYPE)
|
||||
#error You should define M_DEFINE_DSGVAR_INIT_TYPE accordingly before including this file !
|
||||
#endif
|
||||
|
||||
#define DEFAULT_DSGVAR_INIT_TYPE_ENTRY 2
|
||||
|
||||
M_DEFINE_DSGVAR_INIT_TYPE("ChargementMap" ,"MapLoaded" ,OTI_MapLoaded)
|
||||
M_DEFINE_DSGVAR_INIT_TYPE("ReinitialiseLaMap" ,"ReinitTheMap" ,OTI_ReinitTheMap)
|
||||
M_DEFINE_DSGVAR_INIT_TYPE("JoueurMort" ,"PlayerDead" ,OTI_PlayerDead)
|
||||
M_DEFINE_DSGVAR_INIT_TYPE("LancementJeu" ,"GameStart" ,OTI_WhenGameStart)
|
||||
|
||||
/*
|
||||
OTI_WhenGameStart = 0,
|
||||
OTI_MapLoaded,
|
||||
OTI_LoadSavedGame,
|
||||
OTI_ReinitTheMap,
|
||||
OTI_PlayerDead,
|
||||
OTI_WhenGoOutOfZone = OTI_PlayerDead,
|
||||
OTI_Always = OTI_WhenGoOutOfZone,
|
||||
OTI_AlwaysCreated,
|
||||
*/
|
||||
|
||||
#if defined(M_DEFINE_DSGVAR_INIT_TYPE)
|
||||
#undef M_DEFINE_DSGVAR_INIT_TYPE
|
||||
#endif
|
63
Rayman_X/cpa/public/AI/AIGame/DefOper.h
Normal file
63
Rayman_X/cpa/public/AI/AIGame/DefOper.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/*-------------------------------------------------------------------------------------
|
||||
DefOper.h : Operator definitions
|
||||
Author : Olivier Couvreur 25/08/97
|
||||
--------------------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(M_DEFINE_OPERATOR)
|
||||
#error You should define M_DEFINE_OPERATOR accordingly before including this file !
|
||||
#endif
|
||||
|
||||
/* 6 parameters to define an operator : enum , editor name, script name, function pointers in Operator.c, in params,ultra-able */
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Math operator */
|
||||
M_DEFINE_OPERATOR(eOperator_ScalarPlusScalar ,"+" ,"Operator_Plus" ,fn_p_stScalarOperator ,USE_2_REALS_PARAM,USE_REAL_PARAM)
|
||||
M_DEFINE_OPERATOR(eOperator_ScalarMinusScalar ,"-" ,"Operator_Minus" ,fn_p_stScalarOperator ,USE_2_REALS_PARAM,USE_REAL_PARAM)
|
||||
M_DEFINE_OPERATOR(eOperator_ScalarMulScalar ,"*" ,"Operator_Mul" ,fn_p_stScalarOperator ,USE_2_REALS_PARAM,USE_REAL_PARAM)
|
||||
M_DEFINE_OPERATOR(eOperator_ScalarDivScalar ,"/" ,"Operator_Div" ,fn_p_stScalarOperator ,USE_2_REALS_PARAM,USE_REAL_PARAM)
|
||||
M_DEFINE_OPERATOR(eOperator_ScalarUnaryMinus ,"_" ,"Operator_UnaryMinus" ,fn_p_stScalarOperator ,USE_REAL_PARAM,USE_REAL_PARAM)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Affect operator */
|
||||
M_DEFINE_OPERATOR(eOperator_PlusAffect ,"+=" ,"Operator_PlusAffect" ,fn_p_stAffectOperator ,USE_ADDR_REAL_PARAM USE_REAL_PARAM,USE_REAL_PARAM)
|
||||
M_DEFINE_OPERATOR(eOperator_MinusAffect ,"-=" ,"Operator_MinusAffect" ,fn_p_stAffectOperator ,USE_ADDR_REAL_PARAM USE_REAL_PARAM,USE_REAL_PARAM)
|
||||
M_DEFINE_OPERATOR(eOperator_MulAffect ,"*=" ,"Operator_MulAffect" ,fn_p_stAffectOperator ,USE_ADDR_REAL_PARAM USE_REAL_PARAM,USE_REAL_PARAM)
|
||||
M_DEFINE_OPERATOR(eOperator_DivAffect ,"/=" ,"Operator_DivAffect" ,fn_p_stAffectOperator ,USE_ADDR_REAL_PARAM USE_REAL_PARAM,USE_REAL_PARAM)
|
||||
M_DEFINE_OPERATOR(eOperator_PlusPlusAffect ,"++" ,"Operator_PlusPlusAffect" ,fn_p_stAffectOperator ,USE_REAL_PARAM,USE_REAL_PARAM)
|
||||
M_DEFINE_OPERATOR(eOperator_MinusMinusAffect,"--" ,"Operator_MinusMinusAffect",fn_p_stAffectOperator ,USE_REAL_PARAM,USE_REAL_PARAM)
|
||||
M_DEFINE_OPERATOR(eOperator_Affect ,":=" ,"Operator_Affect" ,fn_p_stAffectOperator ,"","") /* to define*/
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Dot operator */
|
||||
M_DEFINE_OPERATOR(eOperator_Dot ,"." ,"Operator_Dot" ,fn_p_stDotOperator ,"","") /* to define*/
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Vector Dot operator */
|
||||
M_DEFINE_OPERATOR(eOperator_GetVectorX ,".X" ,".X" ,fn_p_stVectorDotOperator,USE_VECTOR_PARAM,USE_ADDR_REAL_PARAM)
|
||||
M_DEFINE_OPERATOR(eOperator_GetVectorY ,".Y" ,".Y" ,fn_p_stVectorDotOperator,USE_VECTOR_PARAM,USE_ADDR_REAL_PARAM)
|
||||
M_DEFINE_OPERATOR(eOperator_GetVectorZ ,".Z" ,".Z" ,fn_p_stVectorDotOperator,USE_VECTOR_PARAM,USE_ADDR_REAL_PARAM)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Vector operator */
|
||||
M_DEFINE_OPERATOR(eOperator_VectorPlusVector ,"v+" ,"Operator_VectorPlusVector" ,fn_p_stVectorOperator ,USE_2_VECTORS_PARAM ,USE_VECTOR_PARAM)
|
||||
M_DEFINE_OPERATOR(eOperator_VectorMinusVector ,"v-" ,"Operator_VectorMinusVector" ,fn_p_stVectorOperator ,USE_2_VECTORS_PARAM,USE_VECTOR_PARAM)
|
||||
M_DEFINE_OPERATOR(eOperator_VectorMulScalar ,"v*" ,"Operator_VectorMulScalar" ,fn_p_stVectorOperator ,USE_VECTOR_PARAM USE_REAL_PARAM,USE_VECTOR_PARAM)
|
||||
M_DEFINE_OPERATOR(eOperator_VectorDivScalar ,"v/" ,"Operator_VectorDivScalar" ,fn_p_stVectorOperator ,USE_VECTOR_PARAM USE_REAL_PARAM,USE_VECTOR_PARAM)
|
||||
M_DEFINE_OPERATOR(eOperator_VectorUnaryMinus ,"v_" ,"Operator_VectorUnaryMinus" ,fn_p_stVectorOperator ,USE_VECTOR_PARAM,USE_VECTOR_PARAM)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Vector Affect operator */
|
||||
M_DEFINE_OPERATOR(eOperator_SetVectorX ,".X:=" ,".X:=" ,fn_p_stAffectOperator,USE_VECTOR_PARAM USE_REAL_PARAM,USE_REAL_PARAM)
|
||||
M_DEFINE_OPERATOR(eOperator_SetVectorY ,".Y:=" ,".Y:=" ,fn_p_stAffectOperator,USE_VECTOR_PARAM USE_REAL_PARAM,USE_REAL_PARAM)
|
||||
M_DEFINE_OPERATOR(eOperator_SetVectorZ ,".Z:=" ,".Z:=" ,fn_p_stAffectOperator,USE_VECTOR_PARAM USE_REAL_PARAM,USE_REAL_PARAM)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Ultra Operator */
|
||||
M_DEFINE_OPERATOR(eOperator_Ultra ,".." ,"Operator_Ultra" ,fn_p_stUltraOperator ,USE_PERSO_PARAM ""/*ANY PARAM */,"")
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Model Cast Operator */
|
||||
M_DEFINE_OPERATOR(eOperator_ModelCast ,"@" ,"Operator_ModelCast" ,fn_p_stModelCastOperator ,USE_MODEL_PARAM USE_PERSO_PARAM ,USE_PERSO_PARAM)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Array Operator */
|
||||
M_DEFINE_OPERATOR(eOperator_Array ,"[" ,"Operator_Array" ,fn_p_stArrayOperator ,USE_ARRAY_PARAM USE_CONSTANT_PARAM ,"")
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Affect Array Operator */
|
||||
M_DEFINE_OPERATOR(eOperator_AffectArray ,":={" ,"Operator_AffectArray" ,fn_p_stAffectOperator ,USE_ARRAY_PARAM USE_CONSTANT_PARAM ,"")
|
||||
|
||||
#if defined(M_DEFINE_OPERATOR)
|
||||
#undef M_DEFINE_OPERATOR
|
||||
#endif
|
71
Rayman_X/cpa/public/AI/AIGame/DefProCa.h
Normal file
71
Rayman_X/cpa/public/AI/AIGame/DefProCa.h
Normal file
@@ -0,0 +1,71 @@
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_UpdatePosition, "Cam_UpdatePosition", "Cam_UpdatePosition" ,"Proc_Cam_UpdatePosition", CAM_fn_p_stUpdatePosition, USE_NO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ChangeShiftTarget, "Cam_ChangeShiftTarget", "Cam_ChangeShiftTarget" ,"Proc_Cam_ChangeShiftTarget", CAM_fn_p_stChangeVectorParameter, USE_2_CONSTANTS_PARAM USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ChangeShiftPos, "Cam_ChangeShiftPos", "Cam_ChangeShiftPos" ,"Proc_Cam_ChangeShiftPos", CAM_fn_p_stChangeVectorParameter, USE_2_CONSTANTS_PARAM USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ChangeDistMin, "Cam_ChangeDistMin", "Cam_ChangeDistMin" ,"Proc_Cam_ChangeDistMin", CAM_fn_p_stChangeRealParameter, USE_2_CONSTANTS_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ChangeDistMax, "Cam_ChangeDistMax", "Cam_ChangeDistMax" ,"Proc_Cam_ChangeDistMax", CAM_fn_p_stChangeRealParameter, USE_2_CONSTANTS_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ChangeBoundDistMin, "Cam_ChangeBoundDistMin", "Cam_ChangeBoundDistMin" ,"Proc_Cam_ChangeBoundDistMin", CAM_fn_p_stChangeRealParameter, USE_2_CONSTANTS_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_Cam_ChangeBoundDistMax, "Cam_ChangeBoundDistMax", "Cam_ChangeBoundDistMax" ,"Proc_Cam_ChangeBoundDistMax", CAM_fn_p_stChangeRealParameter, USE_2_CONSTANTS_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ChangeAngleAlpha, "Cam_ChangeAngleAlpha", "Cam_ChangeAngleAlpha" ,"Proc_Cam_ChangeAngleAlpha", CAM_fn_p_stChangeRealParameter, USE_2_CONSTANTS_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ChangeAngleShiftAlpha, "Cam_ChangeAngleShiftAlpha", "Cam_ChangeAngleShiftAlpha" ,"Proc_Cam_ChangeAngleShiftAlpha", CAM_fn_p_stChangeRealParameter, USE_2_CONSTANTS_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ChangeAngleTheta, "Cam_ChangeAngleTheta", "Cam_ChangeAngleTheta" ,"Proc_Cam_ChangeAngleTheta", CAM_fn_p_stChangeRealParameter, USE_2_CONSTANTS_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ChangeAngleShiftTheta, "Cam_ChangeAngleShiftTheta", "Cam_ChangeAngleShiftTheta" ,"Proc_Cam_ChangeAngleShiftTheta", CAM_fn_p_stChangeRealParameter, USE_2_CONSTANTS_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ChangeLinearSpeed, "Cam_ChangeLinearSpeed", "Cam_ChangeLinearSpeed" ,"Proc_Cam_ChangeLinearSpeed", CAM_fn_p_stChangeRealParameter, USE_2_CONSTANTS_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ChangeLinearIncreaseSpeed, "Cam_ChangeLinearIncreaseSpeed", "Cam_ChangeLinearIncreaseSpeed" ,"Proc_Cam_ChangeLinearIncreaseSpeed", CAM_fn_p_stChangeRealParameter, USE_2_CONSTANTS_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ChangeLinearDecreaseSpeed, "Cam_ChangeLinearDecreaseSpeed", "Cam_ChangeLinearDecreaseSpeed" ,"Proc_Cam_ChangeLinearDecreaseSpeed", CAM_fn_p_stChangeRealParameter, USE_2_CONSTANTS_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ChangeAngularSpeed, "Cam_ChangeAngularSpeed", "Cam_ChangeAngularSpeed" ,"Proc_Cam_ChangeAngularSpeed", CAM_fn_p_stChangeRealParameter, USE_2_CONSTANTS_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ChangeAngularIncreaseSpeed, "Cam_ChangeAngularIncreaseSpeed", "Cam_ChangeAngularIncreaseSpeed" ,"Proc_Cam_ChangeAngularIncreaseSpeed", CAM_fn_p_stChangeRealParameter, USE_2_CONSTANTS_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ChangeAngularDecreaseSpeed, "Cam_ChangeAngularDecreaseSpeed", "Cam_ChangeAngularDecreaseSpeed" ,"Proc_Cam_ChangeAngularDecreaseSpeed", CAM_fn_p_stChangeRealParameter, USE_2_CONSTANTS_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ChangeTargetSpeed, "Cam_ChangeTargetSpeed", "Cam_ChangeTargetSpeed" ,"Proc_Cam_ChangeTargetSpeed", CAM_fn_p_stChangeRealParameter, USE_2_CONSTANTS_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ChangeTargetIncreaseSpeed, "Cam_ChangeTargetIncreaseSpeed", "Cam_ChangeTargetIncreaseSpeed" ,"Proc_Cam_ChangeTargetIncreaseSpeed", CAM_fn_p_stChangeRealParameter, USE_2_CONSTANTS_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ChangeTargetDecreaseSpeed, "Cam_ChangeTargetDecreaseSpeed", "Cam_ChangeTargetDecreaseSpeed" ,"Proc_Cam_ChangeTargetDecreaseSpeed", CAM_fn_p_stChangeRealParameter, USE_2_CONSTANTS_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ChangeFocal, "Cam_ChangeFocal", "Cam_ChangeFocal" ,"Proc_Cam_ChangeFocal", CAM_fn_p_stChangeRealParameter, USE_2_CONSTANTS_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ChangeZMin, "Cam_ChangeZMin", "Cam_ChangeZMin" ,"Proc_Cam_ChangeZMin", CAM_fn_p_stChangeRealParameter, USE_2_CONSTANTS_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ChangeZMax, "Cam_ChangeZMax", "Cam_ChangeZMax" ,"Proc_Cam_ChangeZMax", CAM_fn_p_stChangeRealParameter, USE_2_CONSTANTS_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ChangeTgtPerso, "Cam_ChangeTgtPerso", "Cam_ChangeTgtPerso" ,"Proc_Cam_ChangeTgtPerso", CAM_fn_p_stChangeTgtPerso, USE_2_CONSTANTS_PARAM USE_PERSO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ChangeSecondTgtPerso, "Cam_ChangeSecondTgtPerso", "Cam_ChangeSecondTgtPerso" ,"Proc_Cam_ChangeSecondTgtPerso", CAM_fn_p_stChangeSecondTgtPerso, USE_2_CONSTANTS_PARAM USE_PERSO_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_Cam_ChangeChannel, "Cam_ChangeChannel", "Cam_ChangeChannel" ,"Proc_Cam_ChangeChannel", CAM_fn_p_stChangeChannel, USE_2_CONSTANTS_PARAM USE_MODULE_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
|
||||
NU_M_DEFINE_PROCEDURE(eProc_Cam_Activate, "Cam_Activate", "Cam_Activate" ,"Proc_Cam_Activate", CAM_fn_p_stActivate, USE_2_CONSTANTS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_Cam_AssociateViewport, "Cam_AssociateViewport", "Cam_AssociateViewport" ,"Proc_Cam_AssociateViewport", CAM_fn_p_stAssociateViewport, USE_2_CONSTANTS_PARAM USE_PERSO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
|
||||
NU_M_DEFINE_PROCEDURE(eProc_Cam_ResetIAFlags, "Cam_ResetIAFlags", "Cam_ResetIAFlags" ,"Proc_Cam_ResetIAFlags", CAM_fn_p_stSetIAFlags, USE_2_CONSTANTS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_SetFlagNoDynamicTarget, "Cam_SetFlagNoDynamicTarget", "Cam_SetFlagNoDynamicTarget" ,"Proc_Cam_SetFlagNoDynamicTarget", CAM_fn_p_stSetIAFlags, USE_2_CONSTANTS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_SetFlagNoAverageMoveTgtPerso, "Cam_SetFlagNoAverageMoveTgtPerso", "Cam_SetFlagNoAverageMoveTgtPerso" ,"Proc_Cam_SetFlagNoAverageMoveTgtPerso", CAM_fn_p_stSetIAFlags, USE_2_CONSTANTS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_SetFlagNoParseCutAngle, "Cam_SetFlagNoParseCutAngle", "Cam_SetFlagNoParseCutAngle" ,"Proc_Cam_SetFlagNoParseCutAngle", CAM_fn_p_stSetIAFlags, USE_2_CONSTANTS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_SetFlagNoVisibility, "Cam_SetFlagNoVisibility", "Cam_SetFlagNoVisibility" ,"Proc_Cam_SetFlagNoVisibility", CAM_fn_p_stSetIAFlags, USE_2_CONSTANTS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_Cam_SetFlagNoVisibilityWithDynHie, "Cam_SetFlagNoVisibilityWithDynHie", "Cam_SetFlagNoVisibilityWithDynHie" ,"Proc_Cam_SetFlagNoVisibilityWithDynHie", CAM_fn_p_stSetIAFlags, USE_2_CONSTANTS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_SetFlagNoDynChangeTheta, "Cam_SetFlagNoDynChangeTheta", "Cam_SetFlagNoDynChangeTheta" ,"Proc_Cam_SetFlagNoDynChangeTheta", CAM_fn_p_stSetIAFlags, USE_2_CONSTANTS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_Cam_SetFlagNoShiftUntilPosReached, "Cam_SetFlagNoShiftUntilPosReached", "Cam_SetFlagNoShiftUntilPosReached" ,"Proc_Cam_SetFlagNoShiftUntilPosReached", CAM_fn_p_stSetIAFlags, USE_2_CONSTANTS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_SetFlagNoDynSpeed, "Cam_SetFlagNoDynSpeed", "Cam_SetFlagNoDynSpeed" ,"Proc_Cam_SetFlagNoDynSpeed", CAM_fn_p_stSetIAFlags, USE_2_CONSTANTS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
|
||||
NU_M_DEFINE_PROCEDURE(eProc_Cam_ResetDNMFlags, "Cam_ResetDNMFlags", "Cam_ResetDNMFlags" ,"Proc_Cam_ResetDNMFlags", CAM_fn_p_stSetDNMFlags, USE_2_CONSTANTS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_SetFlagNoLinearParsing, "Cam_SetFlagNoLinearParsing", "Cam_SetFlagNoLinearParsing" ,"Proc_Cam_SetFlagNoLinearParsing", CAM_fn_p_stSetDNMFlags, USE_2_CONSTANTS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_SetFlagNoLinearInertia, "Cam_SetFlagNoLinearInertia", "Cam_SetFlagNoLinearInertia" ,"Proc_Cam_SetFlagNoLinearInertia", CAM_fn_p_stSetDNMFlags, USE_2_CONSTANTS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_SetFlagNoAngularParsing, "Cam_SetFlagNoAngularParsing", "Cam_SetFlagNoAngularParsing" ,"Proc_Cam_SetFlagNoAngularParsing", CAM_fn_p_stSetDNMFlags, USE_2_CONSTANTS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_SetFlagNoAngularInertia, "Cam_SetFlagNoAngularInertia", "Cam_SetFlagNoAngularInertia" ,"Proc_Cam_SetFlagNoAngularInertia", CAM_fn_p_stSetDNMFlags, USE_2_CONSTANTS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_SetFlagNoTargetParsing, "Cam_SetFlagNoTargetParsing", "Cam_SetFlagNoTargetParsing" ,"Proc_Cam_SetFlagNoTargetParsing", CAM_fn_p_stSetDNMFlags, USE_2_CONSTANTS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_SetFlagNoTargetInertia, "Cam_SetFlagNoTargetInertia", "Cam_SetFlagNoTargetInertia" ,"Proc_Cam_SetFlagNoTargetInertia", CAM_fn_p_stSetDNMFlags, USE_2_CONSTANTS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_SetFlagFixedOrientation, "Cam_SetFlagFixedOrientation", "Cam_SetFlagFixedOrientation" ,"Proc_Cam_SetFlagFixedOrientation", CAM_fn_p_stSetDNMFlags, USE_2_CONSTANTS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_SetFlagNoObstacle, "Cam_SetFlagNoObstacle", "Cam_SetFlagNoObstacle" ,"Proc_Cam_SetFlagNoObstacle", CAM_fn_p_stSetDNMFlags, USE_2_CONSTANTS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_SetFlagNoCollisionWhenNotMoving, "Cam_SetFlagNoCollisionWhenNotMoving", "Cam_SetFlagNoCollisionWhenNotMoving" ,"Proc_Cam_SetFlagNoCollisionWhenNotMoving", CAM_fn_p_stSetDNMFlags, USE_2_CONSTANTS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ChangeConstants, "Cam_ChangeConstants", "Cam_ChangeConstants" ,"Proc_Cam_ChangeConstants", CAM_fn_p_stChangeConstants, USE_CONSTANT_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_SaveConstants, "Cam_SaveConstants", "Cam_SaveConstants" ,"Proc_Cam_SaveConstants", CAM_fn_p_stConstants, USE_NO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_RestoreConstants, "Cam_RestoreConstants", "Cam_RestoreConstants" ,"Proc_Cam_RestoreConstants", CAM_fn_p_stConstants, USE_NO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
|
||||
NU_M_DEFINE_PROCEDURE(eProc_Cam_ShowInfo, "Cam_ShowInfo", "Cam_ShowInfo" ,"Proc_Cam_ShowInfo", CAM_fn_p_stShowInfo, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ForceTarget, "Cam_ForceTarget", "Cam_ForceTarget" ,"Proc_Cam_ForceTarget", CAM_fn_p_stSetForce, USE_2_CONSTANTS_PARAM USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ForcePosition, "Cam_ForcePosition", "Cam_ForcePosition" ,"Proc_Cam_ForcePosition", CAM_fn_p_stSetForce, USE_2_CONSTANTS_PARAM USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ForceRefAxis, "Cam_ForceRefAxis", "Cam_ForceRefAxis" ,"Proc_Cam_ForceRefAxis", CAM_fn_p_stSetForce, USE_2_CONSTANTS_PARAM USE_2_VECTORS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
|
||||
NU_M_DEFINE_PROCEDURE(eProc_Cam_Reset, "Cam_Reset", "Cam_Reset" ,"Proc_Cam_Reset", CAM_fn_p_stReset, USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ForceBestPos, "Cam_ForceBestPos", "Cam_ForceBestPos" ,"Proc_Cam_ForceBestPos", CAM_fn_p_stForceBestPos, USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_ForceNormalState, "Cam_ForceNormalState", "Cam_ForceNormalState" ,"Proc_Cam_ForceNormalState", CAM_fn_p_stForceNormalState, USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
|
||||
|
||||
NU_M_DEFINE_PROCEDURE(eProc_Cam_ForceMovingOnRail, "Cam_ForceMovingOnRail", "Cam_ForceMovingOnRail" ,"Proc_Cam_ForceMovingOnRail", CAM_fn_p_stForceMovingOnRail, USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
|
||||
M_DEFINE_PROCEDURE(eProc_Cam_SetCameraModeForEngine, "Cam_ChangeModePourMoteur", "Cam_SetCameraModeForEngine" ,"Proc_Cam_SetCameraModeForEngine", CAM_fn_p_stCameraMode, USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
|
346
Rayman_X/cpa/public/AI/AIGame/DefProc.h
Normal file
346
Rayman_X/cpa/public/AI/AIGame/DefProc.h
Normal file
@@ -0,0 +1,346 @@
|
||||
#if !defined(M_DEFINE_PROCEDURE)
|
||||
#error You should define M_DEFINE_PROCEDURE accordingly before including this file !
|
||||
#endif
|
||||
|
||||
/* 6 parameters to define a procedure : enum , editor name, script name, function pointers in Procedure.c, in params,ultra-able */
|
||||
|
||||
/************************************************************************************************
|
||||
* le #ifdef suivant permet d'exclure les fonctions inutilis<69>es
|
||||
* Merci
|
||||
* Marc
|
||||
************************************************************************************************/
|
||||
#if defined(_AI_EXCLUDE_NEVER_USED_) /* MT {*/
|
||||
#define NU_M_DEFINE_PROCEDURE(a,b,english,c,d,e,f)
|
||||
#else
|
||||
#define NU_M_DEFINE_PROCEDURE M_DEFINE_PROCEDURE
|
||||
#endif /* _AI_EXCLUDE_NEVER_USED_ }*/
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* HitPoints procedures */
|
||||
M_DEFINE_PROCEDURE(eProc_SetHitPoints ,"ACT_FixePointsDeVie" ,"ACT_SetHitPoints" ,"Proc_SetHitPoints" ,fn_p_stHitPointsProcedure,USE_PERSO_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SetHitPointsInit ,"ACT_FixePointsDeVieInit" ,"ACT_SetHitPointsInit" ,"Proc_SetHitPointsInit" ,fn_p_stHitPointsProcedure,USE_PERSO_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SetHitPointsToInitValue ,"ACT_ReinitPointsDeVie" ,"ACT_SetHitPointsToInit" ,"Proc_SetHitPointsToInit" ,fn_p_stHitPointsProcedure,USE_PERSO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetHitPointsToMaxValue ,"ACT_ReinitPointsDeVieAMax" ,"ACT_SetHitPointsToMax" ,"Proc_SetHitPointsToMax" ,fn_p_stHitPointsProcedure,USE_PERSO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_AddHitPoints ,"ACT_AjoutePointsDeVie" ,"ACT_AddHitPoints" ,"Proc_AddHitPoints" ,fn_p_stHitPointsProcedure,USE_PERSO_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SubHitPoints ,"ACT_EnlevePointsDeVie" ,"ACT_SubHitPoints" ,"Proc_SubHitPoints" ,fn_p_stHitPointsProcedure,USE_PERSO_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/* HitPointsMax procedures */
|
||||
M_DEFINE_PROCEDURE(eProc_SetHitPointsMax ,"ACT_FixePointsDeVieMax" ,"ACT_SetHitPointsMax" ,"Proc_SetHitPointsMax" ,fn_p_stHitPointsMaxProcedure,USE_PERSO_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetHitPointsMaxToInitValue ,"ACT_ReinitPointsDeVieMax" ,"ACT_SetHitPointsMaxToInit" ,"Proc_SetHitPointsMaxToInit" ,fn_p_stHitPointsMaxProcedure,USE_PERSO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetHitPointsMaxToMaxValue ,"ACT_ReinitPointsDeVieMaxAMax" ,"ACT_SetHitPointsMaxToMax" ,"Proc_SetHitPointsMaxToMax" ,fn_p_stHitPointsMaxProcedure,USE_PERSO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_AddHitPointsMax ,"ACT_AjoutePointsDeVieMax" ,"ACT_AddHitPointsMax" ,"Proc_AddHitPointsMax" ,fn_p_stHitPointsMaxProcedure,USE_PERSO_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SubHitPointsMax ,"ACT_EnlevePointsDeVieMax" ,"ACT_SubHitPointsMax" ,"Proc_SubHitPointsMax" ,fn_p_stHitPointsMaxProcedure,USE_PERSO_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/* Transparence */
|
||||
M_DEFINE_PROCEDURE(eProc_TransparentDisplay ,"ACT_ActivationTransparence" ,"ACT_TransparentDisplay" ,"Proc_TransparentDisplay" ,fn_p_stTransparenceProcedure, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_SetTransparency ,"ACT_NiveauTransparence" ,"ACT_SetTransparency" ,"Proc_SetTransparency" ,fn_p_stTransparenceProcedure, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
/* draw mask */
|
||||
M_DEFINE_PROCEDURE(eProc_ACT_SetDrawFlag ,"ACT_SetDrawFlag" ,"ACT_SetDrawFlag" ,"Proc_ACT_SetDrawFlag" ,fn_p_st_ACT_SetDrawFlag ,USE_PERSO_PARAM USE_2_CONSTANTS_PARAM, /**/ NOT_ULTRA_ABLE /**/ )
|
||||
/***********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Transparence */
|
||||
M_DEFINE_PROCEDURE(eProc_ModuleTransparentDisplay ,"MOD_ActivationTransparence" ,"MOD_ModuleTransparentDisplay" ,"Proc_ModuleTransparentDisplay" ,fn_p_stTransparenceProcedure, USE_MODULE_PARAM USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_ModuleTransparentDisplay2 ,"MOD_ActivationTransparence2" ,"MOD_ModuleTransparentDisplay2" ,"Proc_ModuleTransparentDisplay2" ,fn_p_stTransparenceProcedure, USE_CONSTANT_PARAM USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_SetModuleTransparency ,"MOD_NiveauTransparence" ,"MOD_SetModuleTransparency" ,"Proc_SetModuleTransparency" ,fn_p_stTransparenceProcedure, USE_MODULE_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_SetModuleTransparency2 ,"MOD_NiveauTransparence2" ,"MOD_SetModuleTransparency2" ,"Proc_SetModuleTransparency2" ,fn_p_stTransparenceProcedure, USE_CONSTANT_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
/***********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* List ZDD ZDE procedures */
|
||||
M_DEFINE_PROCEDURE(eProc_ListAffectPersoZDD ,"LST_AffecteListeAvecZDDPerso" ,"LST_ListAffectWithPersoZDD" ,"Proc_ListAffectWithPersoZDD" ,fn_p_stListZDDZDEProcedure,USE_DSGVARIDLIST_ZDD_PERSO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ListAffectModuleZDD ,"LST_AffecteListeAvecZDDModule" ,"LST_ListAffectWithModuleZDD" ,"Proc_ListAffectWithModuleZDD" ,fn_p_stListZDDZDEProcedure,USE_DSGVARIDLIST_ZDD_MODULE_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ListAffectPersoZDE ,"LST_AffecteListeAvecZDEPerso" ,"LST_ListAffectWithPersoZDE" ,"Proc_ListAffectWithPersoZDE" ,fn_p_stListZDDZDEProcedure,USE_DSGVARIDLIST_ZDE_PERSO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ListAffectModuleZDE ,"LST_AffecteListeAvecZDEModule" ,"LST_ListAffectWithModuleZDE" ,"Proc_ListAffectWithModuleZDE" ,fn_p_stListZDDZDEProcedure,USE_DSGVARIDLIST_ZDE_MODULE_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ListAffectPersoTypeZDE ,"LST_AffecteListeAvecTypeZDEPerso" ,"LST_ListAffectWithPersoTypeZDE" ,"Proc_ListAffectWithPersoTypeZDE" ,fn_p_stListZDDZDEProcedure,USE_DSGVARIDLIST_ZDE_PERSO_MASK_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ListAffectModuleTypeZDE ,"LST_AffecteListeAvecTypeZDEModule" ,"LST_ListAffectWithModuleTypeZDE" ,"Proc_ListAffectWithModuleTypeZDE" ,fn_p_stListZDDZDEProcedure,USE_DSGVARIDLIST_ZDE_MODULE_MASK_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ListAffectTypeZDEWithTypeZDE ,"LST_AffecteListeTypeZDEAvecTypeZDE" ,"LST_ListAffectTypeZDEWithTypeZDE" ,"Proc_ListAffectTypeZDEWithTypeZDE" ,fn_p_stListZDDZDEProcedure,USE_DSGVARIDLIST_PARAM USE_MASK_PARAM USE_MASK_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/* List Misc procedures */
|
||||
NU_M_DEFINE_PROCEDURE(eProc_AddPersoInList ,"LST_AjoutePersoDansListe" ,"LST_AddPersoInList" ,"Proc_AddPersoInList" ,fn_p_stListProcedure,USE_DSGVARIDLIST_PERSO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_AddPersoInListAt ,"LST_AjoutePersoDansListeA" ,"LST_AddPersoInListAt" ,"Proc_AddPersoInListAt" ,fn_p_stListProcedure,USE_DSGVARIDLIST_PERSO_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_DeletePersoAtInList ,"LST_DetruitPersoDansListe" ,"LST_DeletePersoAtInList" ,"Proc_DeletePersoAtInList" ,fn_p_stListProcedure,USE_DSGVARIDLIST_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_FindPersoAndDeleteInList ,"LST_TrouveEtDetruitPersoDansListe" ,"LST_FindPersoAndDeleteInList" ,"Proc_FindPersoAndDeleteInList" ,fn_p_stListProcedure,USE_DSGVARIDLIST_PERSO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ListSelect ,"LST_SelectDansListe" ,"LST_Select" ,"Proc_Select" ,fn_p_stListProcedure,USE_DSGVARIDLIST_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ListUnSelect ,"LST_UnSelectDansListe" ,"LST_UnSelect" ,"Proc_UnSelect" ,fn_p_stListProcedure,USE_DSGVARIDLIST_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ListSort ,"LST_TrieListe" ,"LST_ListSort" ,"Proc_ListSort" ,fn_p_stListProcedure,USE_DSGVARIDLIST_2_CONSTANTS_PARAM USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ListSortByFamily ,"LST_TrieListeParFamille" ,"LST_ListSortByFamily" ,"Proc_ListSortByFamily" ,fn_p_stListProcedure,USE_DSGVARIDLIST_FAMILY_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ListSortByModel ,"LST_TrieListeParModele" ,"LST_ListSortByModele" ,"Proc_ListSortByModele" ,fn_p_stListProcedure,USE_DSGVARIDLIST_MODEL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_FillListWithAllPersoOfAFamily ,"LST_RemplirListeAvecTouteUneFamille" ,"LST_ListSortByModele" ,"Proc_FillListWithAllPersoOfAFamily" ,fn_p_stListProcedure,USE_DSGVARIDLIST_FAMILY_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_FillListWithAllPersoOfAModel ,"LST_RemplirListeAvecToutUnModele" ,"LST_FillListWithAllPersoOfAModel" ,"Proc_FillListWithAllPersoOfAModel" ,fn_p_stListProcedure,USE_DSGVARIDLIST_MODEL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_DeleteFamilyInList ,"LST_DetruitFamilleDansListe" ,"LST_DeleteFamilyInList" ,"Proc_DeleteFamilyInList" ,fn_p_stListProcedure,USE_DSGVARIDLIST_FAMILY_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_DeleteModelInList ,"LST_DetruitModeleDansListe" ,"LST_DeleteModelInList" ,"Proc_DeleteModelInList" ,fn_p_stListProcedure,USE_DSGVARIDLIST_MODEL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/* List Ensemble procedures */
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ListUnion ,"LST_ListeUnion" ,"LST_DeleteModelInList" ,"Proc_ListUnion" ,fn_p_stListEnsembleProcedure,USE_3_DSGVARIDLISTS_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ListInter ,"LST_ListeInter" ,"LST_ListInter" ,"Proc_ListInter" ,fn_p_stListEnsembleProcedure,USE_3_DSGVARIDLISTS_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ListDiff ,"LST_ListeDiff" ,"LST_ListDiff" ,"Proc_ListDiff" ,fn_p_stListEnsembleProcedure,USE_3_DSGVARIDLISTS_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ListAdd ,"LST_ListeAjoute" ,"LST_ListAdd" ,"Proc_ListAdd" ,fn_p_stListEnsembleProcedure,USE_3_DSGVARIDLISTS_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Brouillards */
|
||||
M_DEFINE_PROCEDURE(eProc_FogActivate ,"LUM_BrouillardActive" ,"FOG_Activate" ,"FOG_Proc_Activate" ,fn_p_stFogProcedure,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SetFogColor ,"LUM_BrouillardFixeCouleur" ,"FOG_SetColor" ,"FOG_Proc_SetColor" ,fn_p_stFogProcedure,USE_COLOR_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SetFogNearFarInf ,"LUM_BrouillardFixeDistances" ,"FOG_SetNearFarInf" ,"FOG_Proc_SetNearFarInf" ,fn_p_stFogProcedure,USE_3_REALS_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SetFogBlend ,"LUM_BrouillardFixeBlend" ,"FOG_SetBlend" ,"FOG_Proc_SetBlend" ,fn_p_stFogProcedure,USE_2_REALS_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_RestoreFog ,"LUM_RestaurerBrouillard" ,"FOG_RestoreFog" ,"FOG_Proc_RestoreFog" ,fn_p_stFogProcedure,USE_NO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SaveFog ,"LUM_SauverBrouillard" ,"FOG_SaveFog" ,"FOG_Proc_SaveFog" ,fn_p_stFogProcedure,USE_NO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/*************************************************************************************************************************************/
|
||||
/* Magnet MGT procedure */
|
||||
/*XB980824*/
|
||||
#ifndef D_THROW_MGT
|
||||
NU_M_DEFINE_PROCEDURE(eProc_Magnet_ActiveMagnet ,"Magnet_ON" ,"MAGNET_ON" ,"Procedure_Magnet_ActiveMagnet" ,MGT_fn_p_stActiveMagnet, USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Magnet_DeactiveMagnet ,"Magnet_OFF" ,"MAGNET_OFF" ,"Procedure_Magnet_DeactiveMagnet" ,MGT_fn_p_stDeactiveMagnet, USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_Magnet_SetStrength ,"Magnet_SetStrength" ,"MAGNET_SetStrength" ,"Procedure_Magnet_SetStrength" ,MGT_fn_p_stSetParam, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_Magnet_SetFar ,"Magnet_SetFar" ,"MAGNET_SetFar" ,"Procedure_Magnet_SetFar" ,MGT_fn_p_stSetParam, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_Magnet_SetNear ,"Magnet_SetNear" ,"MAGNET_SetNear" ,"Procedure_Magnet_SetNear" ,MGT_fn_p_stSetParam, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_Magnet_SetDuration ,"Magnet_SetDuration" ,"MAGNET_SetDuration" ,"Procedure_Magnet_SetDuration" ,MGT_fn_p_stSetParam, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
#else
|
||||
NU_M_DEFINE_PROCEDURE(eProc_Magnet_ActiveMagnet ,"Magnet_ON" ,"MAGNET_ON" ,"Procedure_Magnet_ActiveMagnet" ,fn_p_stDummy, USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_Magnet_DeactiveMagnet ,"Magnet_OFF" ,"MAGNET_OFF" ,"Procedure_Magnet_DeactiveMagnet" ,fn_p_stDummy, USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_Magnet_SetStrength ,"Magnet_SetStrength" ,"MAGNET_SetStrength" ,"Procedure_Magnet_SetStrength" ,fn_p_stDummy, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_Magnet_SetFar ,"Magnet_SetFar" ,"MAGNET_SetFar" ,"Procedure_Magnet_SetFar" ,fn_p_stDummy, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_Magnet_SetNear ,"Magnet_SetNear" ,"MAGNET_SetNear" ,"Procedure_Magnet_SetNear" ,fn_p_stDummy, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_Magnet_SetDuration ,"Magnet_SetDuration" ,"MAGNET_SetDuration" ,"Procedure_Magnet_SetDuration" ,fn_p_stDummy, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
#endif /* D_THROW_MGT */
|
||||
/*End XB*/
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
#ifndef D_THROW_PRT
|
||||
/* FootPath */
|
||||
NU_M_DEFINE_PROCEDURE(eProc_FootPath_AddFootPrint ,"FootPath_AddFootPrint" ,"FootPath_AddFootPrint" ,"Proc_FootPath_AddFootPrint" ,fn_p_st_FootPath_AddFootPrint ,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_FootPath_Clear ,"FootPath_Clear" ,"FootPath_Clear" ,"Proc_FootPath_Clear" ,fn_p_st_FootPath_Clear ,USE_NO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
#else
|
||||
NU_M_DEFINE_PROCEDURE(eProc_FootPath_AddFootPrint ,"FootPath_AddFootPrint" ,"FootPath_AddFootPrint" ,"Proc_FootPath_AddFootPrint" ,fn_p_stDummy ,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_FootPath_Clear ,"FootPath_Clear" ,"FootPath_Clear" ,"Proc_FootPath_Clear" ,fn_p_stDummy ,USE_NO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
#endif /* D_THROW_PRT */
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Effect */
|
||||
M_DEFINE_PROCEDURE(eProc_SinEffect_SetFreq ,"Effect_SetSinusFreq" ,"EFFECT_SetSinusFreq" ,"Proc_SinusEffect_SetFreq" ,fn_p_st_SinusEffect_SetFreq ,USE_2_CONSTANTS_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SinEffect_SetAmplitude ,"Effect_SetSinusAmplitude" ,"EFFECT_SetSinusAmplitude" ,"Proc_SinusEffect_SetAmplitude" ,fn_p_st_SinusEffect_SetAmplitude, USE_VECTOR_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SinEffect_SetState ,"Effect_SetSinusState" ,"EFFECT_SetSinusState" ,"Proc_SinusEffect_SetState" ,fn_p_st_SinusEffect_SetState ,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SinEffect_SetFreq3D ,"Effect_SetSinusFreq3D" ,"EFFECT_SetSinusFreq3D" ,"Proc_SinusEffect_SetFreq3D" ,fn_p_st_SinusEffect_SetFreq ,USE_3_CONSTANTS_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SinEffect_SetRLIAmplitude ,"Effect_SetRLISinusAmplitude" ,"EFFECT_SetRLISinusAmplitude" ,"Proc_SinusEffect_SetRLIAmplitude" ,fn_p_st_SinusEffect_SetRLIParams, USE_3_REALS_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SinEffect_SetRLIBase ,"Effect_SetRLISinusBase" ,"EFFECT_SetRLISinusBase" ,"Proc_SinusEffect_SetRLIBase" ,fn_p_st_SinusEffect_SetRLIParams, USE_3_REALS_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* SuperObject Draw mask */
|
||||
M_DEFINE_PROCEDURE(eProc_SPO_SetDrawFlag ,"SPO_SetDrawFlag" ,"SPO_SetDrawFlag" ,"Proc_SPO_SetDrawFlag" ,fn_p_st_SPO_SetDrawFlag ,USE_SUPEROBJECT_PARAM USE_2_CONSTANTS_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SPO_SetEngineDisplayModeFlag ,"SPO_SetEngineDisplayModeFlag" ,"SPO_SetEngineDisplayModeFlag" ,"Proc_SPO_SetEngineDisplayModeFlag" ,fn_p_st_SPO_SetEngineDisplayModeFlag,USE_2_CONSTANTS_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* NO FAMILY */
|
||||
M_DEFINE_PROCEDURE(eProc_DeactivateBut ,"BoutonDesactive" ,"DeactivateBut" ,"Proc_DeactivateBut" ,fn_p_stKeyboardProcedure, USE_BUTTON_PARAM, /**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_ActivateBut ,"BoutonActive" ,"ActivateBut" ,"Proc_ActivateBut" ,fn_p_stKeyboardProcedure, USE_BUTTON_PARAM, /**/ NOT_ULTRA_ABLE /**/ )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_None ,"NeRienFaire" ,"None" ,"Proc_None" ,fn_p_stNoneProcedure , USE_NO_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeComport ,"ChangeComportement" ,"ChangeComport" ,"Proc_ChangeComport" ,fn_p_stChangeComportIntelligenceProcedure ,USE_PERSO_INTELL_COMPORT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeComportReflex ,"ChangeComportementReflexe" ,"ChangeComportReflex" ,"Proc_ChangeComportReflex" ,fn_p_stChangeComportReflexProcedure ,USE_PERSO_REFLEX_COMPORT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeMyComport ,"ChangeMonComportement" ,"ChangeMyComport" ,"Proc_ChangeMyComport" ,fn_p_stChangeMyComportIntelligenceProcedure,USE_MY_INTELL_COMPORT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeMyComportReflex ,"ChangeMonComportementReflexe" ,"ChangeMyComportReflex" ,"Proc_ChangeMyComportReflex" ,fn_p_stChangeMyComportReflexProcedure ,USE_MY_REFLEX_COMPORT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeMyComportAndMyReflex ,"ChangeMonComportementEtMonReflexe" ,"ChangeMyComportAndMyReflex" ,"Proc_ChangeMyComportAndMyReflex" ,fn_p_stChangeMyComportIntelligenceAndReflexProcedure , USE_MY_INTELL_COMPORT_PARAM USE_MY_REFLEX_COMPORT_PARAM ,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeAction ,"ChangeAction" ,"ChangeAction" ,"Proc_ChangeAction" ,fn_p_stChangeActionProcedure,USE_ACTION_PARAM , ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeActionForce ,"ChangeActionForce" ,"ChangeActionForce" ,"Proc_ChangeActionForce" ,fn_p_stChangeActionProcedure,USE_ACTION_PARAM , ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeActionRandom ,"ChangeActionAleatoire" ,"ChangeActionRandom" ,"Proc_ChangeActionRandom" ,fn_p_stChangeActionRandomProcedure,USE_ACTION_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeActionWithEvents ,"ChangeActionAvecEvenements" ,"ChangeActionWithEvents" ,"Proc_ChangeActionWithEvents" ,fn_p_stChangeActionProcedure,USE_ACTION_PARAM USE_BOOLEAN_PARAM , ULTRA_ABLE )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eKeyWord_Boucle ,"Boucle" ,"Loop" ,"Proc_Loop" ,fn_p_stLoopKeyWord,USE_CONSTANT_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eKeyWord_FinBoucle ,"FinBoucle" ,"EndLoop" ,"Proc_EndLoop" ,fn_p_stEndLoopKeyWord,USE_NO_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eKeyWord_Break ,"Break" ,"Break" ,"Proc_Break" ,fn_p_stBreakKeyword,USE_CONSTANT_PARAM,/**/ NOT_ULTRA_ABLE /**/)
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Misc procedures with no parameter */
|
||||
M_DEFINE_PROCEDURE(eProc_PlayerIsDead ,"MortDuJoueur" ,"ACT_PlayerIsDead" ,"Proc_PlayerIsDead" ,fn_p_stMiscNoProcedure,USE_NO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ResetDynamicsWithCard ,"MEC_RestaureParametresCarte" ,"MEC_RestoreCardParameters" ,"Proc_RestoreCardParameters" ,fn_p_stMiscNoProcedure,USE_NO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_BreakAI ,"BreakAI" ,"BreakAI" ,"Proc_BreakAI" ,fn_p_stMiscNoProcedure,USE_NO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_IgnoreTraceFlagForNextPicking ,"COL_IgnoreFlagRayTraceAuProchainPicking" ,"Proc_IgnoreTraceFlagForNextPicking" ,"Proc_IgnoreTraceFlagForNextPicking" ,fn_p_stMiscNoProcedure,USE_NO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Misc procedures with one parameter */
|
||||
M_DEFINE_PROCEDURE(eProc_SetMainActor ,"FixeActeurPrincipal" ,"ACT_SetMainActor" ,"Proc_SetMainActor" ,fn_p_stMiscProcedure,USE_PERSO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ActivateObject ,"ActiveObjet" ,"SPO_ActivateObject" ,"Proc_ActivateObject" ,fn_p_stMiscProcedure,USE_PERSO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_DesactivateObject ,"DesactiveObjet" ,"SPO_DesactivateObject" ,"Proc_DesactivateObject" ,fn_p_stMiscProcedure,USE_PERSO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeMap ,"ChangeMap" ,"MAP_ChangeMap" ,"Proc_ChangeMap" ,fn_p_stMiscProcedure,USE_MAP_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeMapNoAutosave ,"ChangeMapSansSauver" ,"MAP_ChangeMapNoAutosave" ,"Proc_ChangeMapNoAutosave" ,fn_p_stMiscProcedure,USE_MAP_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SetActionReturn ,"ForceValeurDeRetourMetaAction" ,"SetActionReturn" ,"Proc_SetActionReturn" ,fn_p_stMiscProcedure,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_FactorAnimationFrameRate ,"FixeFacteurVitesseAnimation" ,"FactorAnimationFrameRate" ,"Proc_FactorAnimationFrameRate" ,fn_p_stMiscUltraProcedure,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SetCharacterPriority ,"ACT_FixePriorite" ,"ACT_SetCharacterPriority" ,"Proc_SetCharacterPriority" ,fn_p_stMiscUltraProcedure,USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ForcePersoHandling ,"ACT_ForceTraitementPerso" ,"ACT_ForcePersoHandling" ,"Proc_ForcePersoHandling" ,fn_p_stMiscProcedure,USE_PERSO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/*M_DEFINE_PROCEDURE(eProc_PlayerIsDeadWithOption ,"MortDuJoueurAvecOption" ,"Proc_PlayerIsDeadWithOption" ,fn_p_stMiscProcedure,USE_CONSTANT_PARAM, /* NOT_ULTRA_ABLE /* )*/
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Misc procedures with two or more parameters */
|
||||
/*M_DEFINE_PROCEDURE(eProc_ChangeMapAtPosition ,"ChangeMapALaPosition" ,"Proc_ChangeMapAtPosition" ,fn_p_stMiscMoreProcedure,USE_MAP_PARAM USE_STRING_PARAM USE_STRING_PARAM, /* NOT_ULTRA_ABLE /* )*/
|
||||
M_DEFINE_PROCEDURE(eProc_PlayerIsDeadWithPlacement ,"MortDuJoueurAvecRepositionnement" ,"ACT_PlayerIsDeadWithPlacement" ,"Proc_PlayerIsDeadWithPlacement" ,fn_p_stMiscMoreProcedure,USE_PERSO_PARAM USE_PERSO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Table procedures */
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SwapLinkTableObjects ,"EchangeObjetsDansTable" ,"SwapLinkTableObjects" ,"Proc_SwapLinkTableObjects" ,fn_p_stLinkTableProcedure,USE_2_CONSTANTS_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeCurrentObjectTable ,"ChangeTableObjetCourante" ,"ChangeCurrentObjectTable" ,"Proc_ChangeCurrentObjectTable" ,fn_p_stLinkTableProcedure,USE_OBJECTTABLE_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/*ANNECY BBB {*/
|
||||
NU_M_DEFINE_PROCEDURE(eProc_BuildObjectTableFromTableAndString ,"ModifieTableCouranteAvecTableEtTexte" ,"BuildObjectTableFromTableAndString" ,"Proc_BuildObjectTableFromTableAndString" ,fn_p_stBuildObjectTableFromTableAndStringProcedure, USE_OBJECTTABLE_PARAM USE_STRING_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_BuildObjectTableFromFormattedString,"ModifieTableCouranteAvecTexteFormate" ,"BuildObjectTableFromFormattedString" ,"Proc_BuildObjectTableFromFormattedString" ,fn_p_stBuildObjectTableFromTableAndStringProcedure, USE_STRING_PARAM USE_REAL_PARAM USE_CONSTANT_PARAM USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/*ANNECY BBB }*/
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* LipsSynchro */
|
||||
#ifdef D_USE_LIPSYNC
|
||||
M_DEFINE_PROCEDURE(eProc_StartSpeech ,"Parle" ,"StartSpeech" ,"Proc_StartSpeech" ,fn_p_stLipsSynchroProcedure,USE_LIPSYNCHRO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_StopSpeech ,"ArreteDeParler" ,"StopSpeech" ,"Proc_StopSpeech" ,fn_p_stLipsSynchroProcedure,USE_NO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
#endif /* D_USE_LIPSYNC*/
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Module Control */
|
||||
M_DEFINE_PROCEDURE(eProc_TakeModuleControl ,"ControlerModule" ,"MOD_TakeModuleControl" ,"Proc_TakeModuleControl" ,fn_p_stModuleControlProcedure,USE_MODULE_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_TakeManyModulesControl ,"ControlerPlusieursModules" ,"MOD_TakeManyModulesControl" ,"Proc_TakeManyModulesControl" ,fn_p_stModuleControlProcedure,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ReleaseModuleControl ,"LibererModule" ,"MOD_ReleaseModuleControl" ,"Proc_ReleaseModuleControl" ,fn_p_stModuleControlProcedure,USE_MODULE_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Saved game */
|
||||
#if 0 /* Mis en fonction */
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SaveGame ,"SauvePartie" ,"GAME_SaveGame" ,"Proc_SaveGame" ,fn_p_stSaveGameProcedure,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_LoadGame ,"ChargePartie" ,"GAME_LoadGame" ,"Proc_LoadGame" ,fn_p_stSaveGameProcedure,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_EraseGame ,"EffacePartie" ,"GAME_EraseGame" ,"Proc_EraseGame" ,fn_p_stSaveGameProcedure,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
#endif /* 0 */
|
||||
NU_M_DEFINE_PROCEDURE(eProc_CopyGame ,"CopiePartie" ,"GAME_CopyGame" ,"Proc_CopyGame" ,fn_p_stSaveGameProcedure,USE_CONSTANT_PARAM USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_QuitGame ,"TerminePartie" ,"GAME_QuitGame" ,"Proc_QuitGame" ,fn_p_stSaveGameProcedure,USE_NO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Channel activation : ULTRA */
|
||||
M_DEFINE_PROCEDURE(eProc_ActivateChannel ,"ActiveCanal" ,"ActivateChannel" ,"Proc_ActivateChannel" ,fn_p_stChangeActivationChannelProcedure,USE_MODULE_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_DeactivateChannel ,"DesactiveCanal" ,"DeactivateChannel" ,"Proc_DeactivateChannel" ,fn_p_stChangeActivationChannelProcedure,USE_MODULE_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Light */
|
||||
M_DEFINE_PROCEDURE(eProc_PersoLightOn ,"AllumeLumierePerso" ,"ACT_PersoLightOn" ,"Proc_PersoLightOn" ,fn_p_stPersoLightProcedure,USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_PersoLightOff ,"EteintLumierePerso" ,"ACT_PersoLightOff" ,"Proc_PersoLightOff" ,fn_p_stPersoLightProcedure,USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SetPersoLightColor ,"FixeCouleurLumierePerso" ,"ACT_SetPersoLightColor" ,"Proc_SetPersoLightColor" ,fn_p_stPersoLightProcedure,USE_COLOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SetPersoLightNearFar ,"FixeDistancesLumierePerso" ,"ACT_SetPersoLightNearFar" ,"Proc_SetPersoLightNearFar" ,fn_p_stPersoLightProcedure,USE_2_REALS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetPersoLightLittleBigAlpha ,"FixeAlphasLumierePerso" ,"ACT_SetPersoLightLittleBigAlpha" ,"Proc_SetPersoLightLittleBigAlpha" ,fn_p_stPersoLightProcedure,USE_2_REALS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetPersoLightGyrophare ,"FixeGyrophareLumierePerso" ,"ACT_SetPersoLightGyrophare" ,"Proc_SetPersoLightGyrophare" ,fn_p_stPersoLightProcedure,USE_BOOLEAN_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetPersoLightPulse ,"FixePulseLumierePerso" ,"ACT_SetPersoLightPulse" ,"Proc_SetPersoLightPulse" ,fn_p_stPersoLightProcedure,USE_BOOLEAN_PARAM USE_2_REALS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetPersoLightParalleleType ,"FixeTypeParalleleLumierePerso" ,"ACT_SetPersoLightParalleleType" ,"Proc_SetPersoLightParalleleType" ,fn_p_stPersoLightProcedure,USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SetPersoLightSphericalType ,"FixeTypeSpheriqueLumierePerso" ,"ACT_SetPersoLightSphericalType" ,"Proc_SetPersoLightSphericalType" ,fn_p_stPersoLightProcedure,USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetPersoLightHotSpotType ,"FixeTypeHotSpotLumierePerso" ,"ACT_SetPersoLightHotSpotType" ,"Proc_SetPersoLightHotSpotType" ,fn_p_stPersoLightProcedure,USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetPersoLightAmbientType ,"FixeTypeAmbientLumierePerso" ,"ACT_SetPersoLightAmbientType" ,"Proc_SetPersoLightAmbientType" ,fn_p_stPersoLightProcedure,USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Sound */
|
||||
M_DEFINE_PROCEDURE(eProc_SendSoundRequest ,"EnvoieRequeteSon" ,"SOUND_SendSoundRequest" ,"Proc_SendSoundRequest" ,fn_p_stSoundProcedure,USE_SOUNDEVENT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SendVoiceRequest ,"EnvoieRequeteVoix" ,"SOUND_SendVoiceRequest" ,"Proc_SendVoiceRequest" ,fn_p_stSoundProcedure,USE_SOUNDEVENT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SendMusicRequest ,"EnvoieRequeteMusique" ,"SOUND_SendMusicRequest" ,"Proc_SendMusicRequest" ,fn_p_stSoundProcedure,USE_SOUNDEVENT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SendAmbianceRequest ,"EnvoieRequeteAmbiance" ,"SOUND_SendAmbianceRequest" ,"Proc_SendAmbianceRequest" ,fn_p_stSoundProcedure,USE_SOUNDEVENT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SendMenuSndRequest ,"EnvoieRequeteMenuSon" ,"SOUND_SendMenuSndRequest" ,"Proc_SendMenuSndRequest" ,fn_p_stSoundProcedure,USE_SOUNDEVENT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* display */
|
||||
NU_M_DEFINE_PROCEDURE(eProc_DefaultDisplay ,"AfficheDefaut" ,"DefautDisplay" ,"Proc_DefautDisplay" ,fn_p_stDisplayProcedure, USE_NO_PARAM,/**/ ULTRA_ABLE /**/ )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_DisplayVignette ,"VIG_AfficheVignette" ,"VIG_DisplayVignette" ,"Proc_DisplayVignette" ,fn_p_stMenuAndVignetteProcedure, USE_STRING_PARAM,/**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_DeleteVignette ,"VIG_SupprimeVignette" ,"VIG_DeleteVignette" ,"Proc_DeleteVignette" ,fn_p_stMenuAndVignetteProcedure, USE_NO_PARAM,/**/ ULTRA_ABLE /**/ )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
#ifndef D_THROW_PRT
|
||||
/* ParticleGenerator */
|
||||
/* diverse*/
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PRT_SetGeneratorOn ,"PRT_DeclencheGenerateur" ,"PRT_SetParticleGeneratorOn" ,"Proc_SetParticleGeneratorOn",fn_p_stParticleGeneratorProcedure,USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PRT_SetGeneratorOff ,"PRT_ArreteGenerateur" ,"PRT_SetParticleGeneratorOff" ,"Proc_SetParticleGeneratorOff",fn_p_stParticleGeneratorProcedure,USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PRT_SetGenerator ,"PRT_InstalleGenerateur" ,"PRT_SetParticleGenerator" ,"Proc_SetParticleGenerator",fn_p_stParticleGeneratorProcedure,USE_PARTICLEGENERATOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
/* Generation mode*/
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PRT_SetModeNone ,"PRT_PasDeGeneration" ,"PRT_SetGenerationModeNone" ,"Proc_SetGenerationModeNone",fn_p_stParticleGeneratorProcedure,USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PRT_SetModeContinuous ,"PRT_GenerationContinue" ,"PRT_SetGenerationModeContinuous" ,"Proc_SetGenerationModeContinuous",fn_p_stParticleGeneratorProcedure,USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PRT_SetModeCrenel ,"PRT_GenerationEnCreneau" ,"PRT_SetGenerationModeCrenel" ,"Proc_SetGenerationModeCrenel",fn_p_stParticleGeneratorProcedure,USE_CONSTANT_PARAM USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PRT_SetModeProbability ,"PRT_GenerationProbabiliste" ,"PRT_SetGenerationModeProbability" ,"Proc_SetGenerationModeProbability",fn_p_stParticleGeneratorProcedure,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
/* Generation number*/
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PRT_SetNumberConstant ,"PRT_GenereNombreConstant" ,"PRT_SetGenerationNbConstant" ,"Proc_SetGenerationNbConstant",fn_p_stParticleGeneratorProcedure,USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PRT_SetNumberProbabilist ,"PRT_GenereNombreProbabiliste" ,"PRT_SetGenerationNbProbabilist" ,"Proc_SetGenerationNbProbabilist",fn_p_stParticleGeneratorProcedure,USE_2_CONSTANTS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
/* Particles LifeTime*/
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PRT_SetInfiniteLifeTime ,"PRT_TempsDeVieInfini" ,"PRT_SetInfiniteLifeTime" ,"Proc_SetInfiniteLifeTime",fn_p_stParticleGeneratorProcedure,USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PRT_SetConstantLifeTime ,"PRT_TempsDeVieConstant" ,"PRT_SetConstantLifeTime" ,"Proc_SetConstantLifeTime",fn_p_stParticleGeneratorProcedure,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PRT_SetPobabilistLifeTime ,"PRT_TempsDeVieProbabiliste" ,"PRT_SetProbabilistLifeTime" ,"Proc_SetProbabilistLifeTime",fn_p_stParticleGeneratorProcedure,USE_REAL_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
/*XB for Fred !!!!!!!!!! Do not remove*/
|
||||
#else
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PRT_SetGeneratorOn ,"PRT_DeclencheGenerateur" ,"PRT_SetParticleGeneratorOn" ,"Proc_SetParticleGeneratorOn",fn_p_stDummy,USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PRT_SetGeneratorOff ,"PRT_ArreteGenerateur" ,"PRT_SetParticleGeneratorOff" ,"Proc_SetParticleGeneratorOff",fn_p_stDummy,USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PRT_SetGenerator ,"PRT_InstalleGenerateur" ,"PRT_SetParticleGenerator" ,"Proc_SetParticleGenerator",fn_p_stDummy,USE_PARTICLEGENERATOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PRT_SetModeNone ,"PRT_PasDeGeneration" ,"PRT_SetGenerationModeNone" ,"Proc_SetGenerationModeNone",fn_p_stDummy,USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PRT_SetModeContinuous ,"PRT_GenerationContinue" ,"PRT_SetGenerationModeContinuous" ,"Proc_SetGenerationModeContinuous",fn_p_stDummy,USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PRT_SetModeCrenel ,"PRT_GenerationEnCreneau" ,"PRT_SetGenerationModeCrenel" ,"Proc_SetGenerationModeCrenel",fn_p_stDummy,USE_CONSTANT_PARAM USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PRT_SetModeProbability ,"PRT_GenerationProbabiliste" ,"PRT_SetGenerationModeProbability" ,"Proc_SetGenerationModeProbability",fn_p_stDummy,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PRT_SetNumberConstant ,"PRT_GenereNombreConstant" ,"PRT_SetGenerationNbConstant" ,"Proc_SetGenerationNbConstant",fn_p_stDummy,USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PRT_SetNumberProbabilist ,"PRT_GenereNombreProbabiliste" ,"PRT_SetGenerationNbProbabilist" ,"Proc_SetGenerationNbProbabilist",fn_p_stDummy,USE_2_CONSTANTS_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PRT_SetInfiniteLifeTime ,"PRT_TempsDeVieInfini" ,"PRT_SetInfiniteLifeTime" ,"Proc_SetInfiniteLifeTime",fn_p_stDummy,USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PRT_SetConstantLifeTime ,"PRT_TempsDeVieConstant" ,"PRT_SetConstantLifeTime" ,"Proc_SetConstantLifeTime",fn_p_stDummy,USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PRT_SetPobabilistLifeTime ,"PRT_TempsDeVieProbabiliste" ,"PRT_SetProbabilistLifeTime" ,"Proc_SetProbabilistLifeTime",fn_p_stDummy,USE_REAL_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
/*End XB for Fred !!!!!!!!!! DO not remove*/
|
||||
#endif /* D_THROW_PRT */
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Old metactions*/
|
||||
/* Old ActBasic.c procedure*/
|
||||
/* Old ActHed.c procedure*/
|
||||
/*M_DEFINE_PROCEDURE(eProc_TurnAbsoluteDirection ,"TourneDirectionAbsolue" ,"Proc_TurnAbsoluteDirection" ,fn_p_stTurnAbsoluteDirectionProcedure ,USE_REAL_PARAM ,/* NOT_ULTRA_ABLE /* )*/
|
||||
/*M_DEFINE_PROCEDURE(eProc_GoAbsoluteDirection ,"VaToutDroitDirectionAbsolue" ,"Proc_GoAbsoluteDirection" ,fn_p_stGoAbsoluteDirectionProcedure ,USE_2_REALS_PARAM ,/* NOT_ULTRA_ABLE /* )*/
|
||||
/* Old ActMain.c procedure*/
|
||||
M_DEFINE_PROCEDURE(eProc_Turn ,"ACT_TourneVitesse" ,"ACT_Turn" ,"Proc_Turn" ,fn_p_stTurnProcedure ,USE_REAL_PARAM ,/**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_Turn2 ,"ACT_TourneAngle" ,"ACT_Turn2" ,"Proc_Turn2" ,fn_p_stTurnProcedure ,USE_REAL_PARAM ,/**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_DeltaTurnPerso ,"OrienteVersPersoAvecDelta" ,"ACT_DeltaTurnPerso" ,"Proc_DeltaTurnPerso" ,fn_p_stTurnPersoProcedure ,USE_PERSO_3_REALS_PARAM ,/**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_TurnPerso ,"OrienteVersPerso" ,"ACT_TurnPerso" ,"Proc_TurnPerso" ,fn_p_stTurnPersoProcedure ,USE_PERSO_PARAM ,/**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_KillPerso ,"DetruitPerso" ,"ACT_KillPerso" ,"Proc_KillPerso" ,fn_p_stKillPersoAndClearVariableProcedure, USE_PERSO_PARAM , /**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_KillPersoAndClearVariable ,"DetruitPersoEtEffaceVariable" ,"ACT_KillPersoAndClearVariable" ,"Proc_KillPersoAndClearVariable" ,fn_p_stKillPersoAndClearVariableProcedure , USE_ADDR_PERSO_PARAM,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
|
||||
|
||||
/*************************************************************************************************************************************/
|
||||
/* Visual GMT procedure*/
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetVisualGMTColor ,"FixeVisuelGMTCouleur" ,"GMT_SetVisualGMTColor" ,"Proc_SetVisualGMTColor" ,fn_p_stVisualGameMaterialProcedure ,USE_GMT_PARAM USE_COLOR_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetVisualGMTSpecularExponent ,"FixeVisuelGMTSpeculaireExposant" ,"GMT_SetVisualGMTSpecularExponant" ,"Proc_SetVisualGMTSpecularExponant" ,fn_p_stVisualGameMaterialProcedure ,USE_GMT_PARAM USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_SetVisualGMTSpecularCoef ,"FixeVisuelGMTSpeculaireCoef" ,"GMT_SetVisualGMTSpecularCoef" ,"Proc_SetVisualGMTSpecularCoef" ,fn_p_stVisualGameMaterialProcedure ,USE_GMT_PARAM USE_COLOR_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_SetVisualGMTDiffuseCoef ,"FixeVisuelGMTDiffusionCoef" ,"GMT_SetVisualGMTDiffuseCoef" ,"Proc_SetVisualGMTDiffuseCoef" ,fn_p_stVisualGameMaterialProcedure ,USE_GMT_PARAM USE_COLOR_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_SetVisualGMTAmbientCoef ,"FixeVisuelGMTAmbientCoef" ,"GMT_SetVisualGMTAmbientCoef" ,"Proc_SetVisualGMTAmbientCoef" ,fn_p_stVisualGameMaterialProcedure ,USE_GMT_PARAM USE_COLOR_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_SetVisualGMTAsChromed ,"FixeVisuelGMTChrome" ,"GMT_SetVisualGMTAsChromed" ,"Proc_SetVisualGMTAsChromed" ,fn_p_stVisualGameMaterialProcedure ,USE_GMT_PARAM USE_BOOLEAN_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_SetVisualGMTTextureScrollingCoef,"FixeVisuelGMTTextureScrollingCoef" ,"GMT_SetVisualGMTTextureScrollingCoef" ,"Proc_SetVisualGMTTextureScrollingCoef" ,fn_p_stVisualGameMaterialProcedure ,USE_GMT_PARAM USE_REAL_PARAM USE_REAL_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_LockVisualGMT ,"BloqueVisuelGMT" ,"GMT_LockVisualGMT" ,"Proc_LockVisualGMT" ,fn_p_stVisualGameMaterialProcedure ,USE_GMT_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_UnlockVisualGMT ,"DebloqueVisuelGMT" ,"GMT_UnlockVisualGMT" ,"Proc_UnlockVisualGMT" ,fn_p_stVisualGameMaterialProcedure ,USE_GMT_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_SetVisualGMTFrame ,"FixeNoImageVisuelGMT" ,"GMT_SetVisualGMTFrame" ,"Proc_SetVisualGMTFrame" ,fn_p_stVisualGameMaterialProcedure ,USE_GMT_PARAM USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
|
||||
/*************************************************************************************************************************************/
|
||||
//KWN : Add a New AI Function
|
||||
M_DEFINE_PROCEDURE(eProc_SetScreenDSActif ,"ACT_SetScreenDSActif" ,"ACT_SetScreenDSActif" ,"Func_SetScreenDSActif" ,fn_p_SetScreenDSActif,USE_CONSTANT_PARAM, NOT_ULTRA_ABLE)
|
||||
/*************************************************************************************************************************************/
|
||||
|
||||
|
||||
#include "DefProc1.h"
|
||||
#include "DefProCa.h"
|
||||
|
||||
/*/////////////////////////////////////////////////////////////////////////////////////*/
|
||||
/* Animations Graphiques Optimis<69>es*/
|
||||
/*/////////////////////////////////////////////////////////////////////////////////////*/
|
||||
/* Generates a simple particle*/
|
||||
/* Arg 1 = Particle type (int)*/
|
||||
/* Arg 2 = Position*/
|
||||
/* Arg 3 = Initial Direction*/
|
||||
/* Arg 4 = Game Material*/
|
||||
/* Arg 5 = Optional Real Parameter*/
|
||||
M_DEFINE_PROCEDURE(eProc_LaunchAGO ,"LanceAGO" ,"SetAGO" ,"Proc_SetAGO" ,fn_p_stAGOProcedure ,USE_CONSTANT_PARAM USE_VECTOR_PARAM USE_VECTOR_PARAM USE_GMT_PARAM USE_REAL_PARAM,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
/**/
|
||||
/*///////////////////////////////////////////////////////////////////////////////////////*/
|
||||
|
||||
M_DEFINE_PROCEDURE(eProc_SetInGameMenu ,"ActiveMenuMap" ,"ActivateMenuMap" ,"Proc_ActivateMenuMap" ,fn_p_stInGameMenuProcedure ,USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
|
||||
/*///////////////////////////////////////////////////////////////////////////////////////*/
|
||||
/* Texts without always */
|
||||
/*///////////////////////////////////////////////////////////////////////////////////////*/
|
||||
|
||||
M_DEFINE_PROCEDURE(eProc_JffTxt_Affiche ,"JFFTXT_Affiche" ,"JFFTXT_Affiche", "Proc_JffTxt_Affiche" ,fn_p_stJFFTXTProcedure, USE_CONSTANT_PARAM USE_VECTOR_PARAM USE_STRING_PARAM USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_JffTxt_Extend ,"JFFTXT_Extend" ,"JFFTXT_Extend", "Proc_JffTxt_Extend" ,fn_p_stJFFTXTProcedure, USE_CONSTANT_PARAM USE_CONSTANT_PARAM USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_JffTxt_Modify ,"JFFTXT_Modify" ,"JFFTXT_Modify", "Proc_JffTxt_Modify" ,fn_p_stJFFTXTProcedure, USE_CONSTANT_PARAM USE_CONSTANT_PARAM USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
|
||||
#ifdef U64
|
||||
/* FQ FADE*/
|
||||
NU_M_DEFINE_PROCEDURE(eProc_FadeIn ,"FadeIn" ,"FADE_FadeIn" ,"Proc_FadeIn" ,fn_p_stFadeProcedure ,USE_NO_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_FadeOut ,"FadeOut" ,"FADE_FadeOut" ,"Proc_FadeOut" ,fn_p_stFadeProcedure ,USE_NO_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
#else
|
||||
NU_M_DEFINE_PROCEDURE(eProc_FadeIn ,"FadeIn" ,"FADE_FadeIn" ,"Proc_FadeIn" ,fn_p_stDummy, USE_NO_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_FadeOut ,"FadeOut" ,"FADE_FadeOut" ,"Proc_FadeOut" ,fn_p_stDummy, USE_NO_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
#endif U64
|
||||
|
||||
M_DEFINE_PROCEDURE(eProc_HUD_SetLumsCount, "HUD_SetLumsCount", "HUD_SetLumsCount", "Proc_HUD_SetLumsCount", fn_p_stHUDSetLumsCount, USE_2_CONSTANTS_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_HUD_SetCagesCount, "HUD_SetCagesCount", "HUD_SetCagesCount", "Proc_HUD_SetCagesCount", fn_p_stHUDSetCagesCount, USE_2_CONSTANTS_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_HUD_SetSwimGauge, "HUD_SetSwimGauge", "HUD_SetSwimGauge", "Proc_HUD_SetSwimGauge", fn_p_stHUDSetSwimGauge, USE_REAL_PARAM USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_HUD_SetHealthGauge, "HUD_SetHealthGauge", "HUD_SetHealthGauge", "Proc_HUD_SetHealthGauge", fn_p_stHUDSetHealthGauge, USE_3_REALS_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_HUD_SetEnemyHealthGauge, "HUD_SetEnemyHealthGauge", "HUD_SetEnemyHealthGauge", "Proc_HUD_SetEnemyHealthGauge", fn_p_stHUDSetEnemyHealthGauge, USE_2_REALS_PARAM USE_CONSTANT_PARAM, NOT_ULTRA_ABLE)
|
||||
|
||||
M_DEFINE_PROCEDURE(eProc_DoCheatMenu, "PROC_DoCheatMenu", "PROC_DoCheatMenu", "Proc_DoCheatMenu", fn_vDoCheatMenu, USE_NO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
|
||||
M_DEFINE_PROCEDURE(eProc_SetBacklight, "PROC_SetBacklight", "PROC_SetBacklight", "Proc_SetBacklight", fn_vSetBacklight, USE_2_CONSTANTS_PARAM, NOT_ULTRA_ABLE)
|
||||
|
||||
M_DEFINE_PROCEDURE(eProc_BeginAnalogCalibration, "PROC_BeginAnalogCalibration", "PROC_BeginAnalogCalibration", "Proc_BeginAnalogCalibration", fn_vBeginAnalogCalibration, USE_NO_PARAM, NOT_ULTRA_ABLE)
|
||||
M_DEFINE_PROCEDURE(eProc_EndAnalogCalibration, "PROC_EndAnalogCalibration", "PROC_EndAnalogCalibration", "Proc_EndAnalogCalibration", fn_vEndAnalogCalibration, USE_NO_PARAM, NOT_ULTRA_ABLE)
|
||||
|
||||
|
||||
#if defined(M_DEFINE_PROCEDURE)
|
||||
#undef M_DEFINE_PROCEDURE
|
||||
#endif
|
317
Rayman_X/cpa/public/AI/AIGame/DefProc1.h
Normal file
317
Rayman_X/cpa/public/AI/AIGame/DefProc1.h
Normal file
@@ -0,0 +1,317 @@
|
||||
/************************************************************************************************
|
||||
* Name: DefProc1.h *
|
||||
* Use : Macro Definition of procedure for AI of Rayman II and Egypte *
|
||||
* Author: Jacques Th<54>noz *
|
||||
* (c) UBI Simulations Annecy *
|
||||
************************************************************************************************/
|
||||
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Option procedures */
|
||||
NU_M_DEFINE_PROCEDURE(eProc_OptionChangeDetailsValue ,"Option_ChangeNiveauDeDetails" ,"OPTION_ChangeDetailsValue" ,"Proc_OptionChangeDetailsValue" ,fn_p_stOptionChangerProc, USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_OptionChangeMusicVolume ,"Option_ChangeVolumeMusical" ,"OPTION_ChangeMusicVolume" ,"Proc_OptionChangeMusicVolume" ,fn_p_stOptionChangerProc, USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_OptionChangeSfxVolume ,"Option_ChangeVolumeEffets" ,"OPTION_ChangeSfxVolume" ,"Proc_OptionChangeSfxVolume" ,fn_p_stOptionChangerProc, USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_OptionChangeVoiceVolume ,"Option_ChangeVolumeVoix" ,"OPTION_ChangeVoiceVolume" ,"Proc_OptionChangeVoiceVolume" ,fn_p_stOptionChangerProc, USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_OptionChangeActionKey ,"Option_ChangeConfigDeTouche" ,"OPTION_ChangeActionKey" ,"Proc_OptionChangeActionKey" ,fn_p_stOptionChangerProc, USE_BUTTON_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_OptionConfigureKey ,"Option_ConfigureTouche" ,"OPTION_ConfigureKey" ,"Proc_ConfigureKey" ,fn_p_stOptionChangerProc, USE_BUTTON_PARAM USE_BUTTON_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* 3D procedures */
|
||||
M_DEFINE_PROCEDURE(eProc_SetPersoAbsolutePosition ,"ACT_ChangePositionAbsoluePerso" ,"ACT_SetPersoAbsolutePosition" ,"Proc_SetPersoAbsolutePosition" ,fn_p_st3DProc, USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SetPersoAtModulePosition ,"ACT_PlaceSurModuleDePerso" ,"ACT_SetPersoAtModulePosition" ,"Proc_SetPersoAtModulePosition" ,fn_p_st3DProc, USE_PERSO_PARAM USE_MODULE_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ForcePersoAveragePosition ,"ACT_ForcePositionMoyennePerso" ,"ACT_ForcePersoAveragePosition" ,"Proc_ForcePersoAveragePosition" ,fn_p_stDynamProcedure, USE_NO_PARAM, /**/ ULTRA_ABLE /**/) /*dans procedur.c*/
|
||||
M_DEFINE_PROCEDURE(eProc_RelativeMovePerso ,"ACT_DeplacePerso" ,"ACT_RelativeMovePerso" ,"Proc_RelativeMovePerso" ,fn_p_st3DProc, USE_VECTOR_PARAM USE_BOOLEAN_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ChangePersoAnySighting ,"ACT_ChangeViseeQuelconquePerso" ,"ACT_SetPersoAnySighting" ,"Proc_ChangePersoAnySighting" ,fn_p_st3DProc, USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ChangePersoSightingWithOffset ,"ACT_ChangeViseePersoAvecOffset" ,"ACT_SetPersoSightingWithOffset" ,"Proc_ChangePersoSightingWithOffset" ,fn_p_st3DProc, USE_VECTOR_PARAM USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_RotatePersoAroundX ,"ACT_TournePersoAutourDeX" ,"ACT_RotatePersoAroundX" ,"Proc_RotatePersoAroundX" ,fn_p_st3DProc, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_RotatePersoAroundY ,"ACT_TournePersoAutourDeY" ,"ACT_RotatePersoAroundY" ,"Proc_RotatePersoAroundY" ,fn_p_st3DProc, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_RotatePersoAroundZ ,"ACT_TournePersoAutourDeZ" ,"ACT_RotatePersoAroundZ" ,"Proc_RotatePersoAroundZ" ,fn_p_st3DProc, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_RotatePersoAroundVector ,"ACT_TournePersoAutourDeVecteur" ,"ACT_RotatePersoAroundVector" ,"Proc_RotatePersoAroundVector" ,fn_p_st3DProc, USE_VECTOR_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_RotatePersoAroundVectorWithOffset ,"ACT_TournePersoAutourDeVecteurAvecOffset" ,"ACT_RotatePersoAroundVectorOffset" ,"Proc_RotatePersoAroundVectorWithOffset" ,fn_p_st3DProc, USE_VECTOR_PARAM USE_REAL_PARAM USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_RotatePersoAroundXwithOffset ,"ACT_TournePersoAutourDeXavecOffset" ,"ACT_RotatePersoAroundXwithOffset" ,"Proc_RotatePersoAroundXwithOffset" ,fn_p_st3DProc, USE_REAL_PARAM USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_RotatePersoAroundYwithOffset ,"ACT_TournePersoAutourDeYavecOffset" ,"ACT_RotatePersoAroundYwithOffset" ,"Proc_RotatePersoAroundYwithOffset" ,fn_p_st3DProc, USE_REAL_PARAM USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_RotatePersoAroundZwithOffset ,"ACT_TournePersoAutourDeZavecOffset" ,"ACT_RotatePersoAroundZwithOffset" ,"Proc_RotatePersoAroundZwithOffset" ,fn_p_st3DProc, USE_REAL_PARAM USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SetFullPersoOrientation ,"ACT_ReorientePerso" ,"ACT_SetFullPersoOrientation" ,"Proc_SetFullPersoOrientation" ,fn_p_st3DProc_ForReorientation, USE_VECTOR_PARAM USE_VECTOR_PARAM USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SetFullPersoOrientationWithOffset ,"ACT_ReorientePersoAvecOffset" ,"ACT_SetFullPersoOrientWithOffset" ,"Proc_SetFullPersoOrientationWithOffset" ,fn_p_st3DProc_ForReorientation, USE_VECTOR_PARAM USE_VECTOR_PARAM USE_CONSTANT_PARAM USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
|
||||
M_DEFINE_PROCEDURE(eProc_ZoomPerso ,"ACT_DeformePerso" ,"ACT_ZoomPerso" ,"Proc_ZoomPerso" ,fn_p_st3DProc, USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeOneCustomBit ,"ACT_ChangeCustomBit" ,"ACT_ChangeOneCustomBit" ,"Proc_ChangeOneCustomBit" ,fn_p_stCustomBitsProc, USE_CONSTANT_PARAM USE_BOOLEAN_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeManyCustomBits ,"ACT_ChangeCustomBits" ,"ACT_ChangeManyCustomBits" ,"Proc_ChangeManyCustomBits" ,fn_p_stCustomBitsProc, USE_CONSTANT_PARAM USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
/* impose relative */
|
||||
M_DEFINE_PROCEDURE(eProc_ImposeSpeed ,"ACT_ImposeVecteurVitesse" ,"ACT_ImposeSpeed" ,"Proc_ImposeSpeed" ,fn_p_SetMechanicSpeedVector, USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_ImposeSpeedX ,"ACT_ImposeVitesseX" ,"ACT_ImposeSpeedX" ,"Proc_ImposeSpeedX" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_ImposeSpeedY ,"ACT_ImposeVitesseY" ,"ACT_ImposeSpeedY" ,"Proc_ImposeSpeedY" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_ImposeSpeedZ ,"ACT_ImposeVitesseZ" ,"ACT_ImposeSpeedZ" ,"Proc_ImposeSpeedZ" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_ImposeSpeedXY ,"ACT_ImposeVitesseXY" ,"ACT_ImposeSpeedXY" ,"Proc_ImposeSpeedXY" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_ImposeSpeedXYZ ,"ACT_ImposeVitesseXYZ" ,"ACT_ImposeSpeedXYZ" ,"Proc_ImposeSpeedXYZ" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM USE_REAL_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
/* impose absolute */
|
||||
M_DEFINE_PROCEDURE(eProc_ImposeAbsoluteSpeed ,"ACT_ImposeVecteurVitesseAbsolu" ,"ACT_ImposeAbsoluteSpeed" ,"Proc_ImposeAbsoluteSpeed" ,fn_p_SetMechanicSpeedVector, USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ImposeAbsoluteSpeedX ,"ACT_ImposeVitesseAbsoluX" ,"ACT_ImposeAbsoluteSpeedX" ,"Proc_ImposeAbsoluteSpeedX" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ImposeAbsoluteSpeedY ,"ACT_ImposeVitesseAbsoluY" ,"ACT_ImposeAbsoluteSpeedY" ,"Proc_ImposeAbsoluteSpeedY" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_ImposeAbsoluteSpeedZ ,"ACT_ImposeVitesseAbsoluZ" ,"ACT_ImposeAbsoluteSpeedZ" ,"Proc_ImposeAbsoluteSpeedZ" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_ImposeAbsoluteSpeedXY ,"ACT_ImposeVitesseAbsoluXY" ,"ACT_ImposeAbsoluteSpeedXY" ,"Proc_ImposeAbsoluteSpeedXY" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_ImposeAbsoluteSpeedXYZ ,"ACT_ImposeVitesseAbsoluXYZ" ,"ACT_ImposeAbsoluteSpeedXYZ" ,"Proc_ImposeAbsoluteSpeedXYZ" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM USE_REAL_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
/* propose relative */
|
||||
M_DEFINE_PROCEDURE(eProc_ProposeSpeed ,"ACT_ProposeVecteurVitesse" ,"ACT_ProposeSpeed" ,"Proc_ProposeSpeed" ,fn_p_SetMechanicSpeedVector, USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_ProposeSpeedX ,"ACT_ProposeVitesseX" ,"ACT_ProposeSpeedX" ,"Proc_ProposeSpeedX" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_ProposeSpeedY ,"ACT_ProposeVitesseY" ,"ACT_ProposeSpeedY" ,"Proc_ProposeSpeedY" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_ProposeSpeedZ ,"ACT_ProposeVitesseZ" ,"ACT_ProposeSpeedZ" ,"Proc_ProposeSpeedZ" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ProposeSpeedXY ,"ACT_ProposeVitesseXY" ,"ACT_ProposeSpeedXY" ,"Proc_ProposeSpeedXY" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ProposeSpeedXYZ ,"ACT_ProposeVitesseXYZ" ,"ACT_ProposeSpeedXYZ" ,"Proc_ProposeSpeedXYZ" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM USE_REAL_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
/* propose absolute */
|
||||
M_DEFINE_PROCEDURE(eProc_ProposeAbsoluteSpeed ,"ACT_ProposeVecteurVitesseAbsolu" ,"ACT_ProposeAbsoluteSpeed" ,"Proc_ProposeAbsoluteSpeed" ,fn_p_SetMechanicSpeedVector, USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ProposeAbsoluteSpeedX ,"ACT_ProposeVitesseAbsoluX" ,"ACT_ProposeAbsoluteSpeedX" ,"Proc_ProposeAbsoluteSpeedX" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ProposeAbsoluteSpeedY ,"ACT_ProposeVitesseAbsoluY" ,"ACT_ProposeAbsoluteSpeedY" ,"Proc_ProposeAbsoluteSpeedY" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_ProposeAbsoluteSpeedZ ,"ACT_ProposeVitesseAbsoluZ" ,"ACT_ProposeAbsoluteSpeedZ" ,"Proc_ProposeAbsoluteSpeedZ" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_ProposeAbsoluteSpeedXY ,"ACT_ProposeVitesseAbsoluXY" ,"ACT_ProposeAbsoluteSpeedXY" ,"Proc_ProposeAbsoluteSpeedXY" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ProposeAbsoluteSpeedXYZ ,"ACT_ProposeVitesseAbsoluXYZ" ,"ACT_ProposeAbsoluteSpeedXYZ" ,"Proc_ProposeAbsoluteSpeedXYZ" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM USE_REAL_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_FixePositionPerso ,"ACT_FixePositionPerso" ,"ACT_FixePositionPerso" ,"Proc_FixePositionPerso" ,fn_p_stFixePositionPerso, USE_PERSO_PARAM USE_VECTOR_PARAM, NOT_ULTRA_ABLE )
|
||||
/* add speed relative */
|
||||
NU_M_DEFINE_PROCEDURE(eProc_AddSpeed ,"ACT_AddVecteurVitesse" ,"ACT_AddSpeed" ,"Proc_AddSpeed" ,fn_p_SetMechanicSpeedVector, USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_AddSpeedX ,"ACT_AddVitesseX" ,"ACT_AddSpeedX" ,"Proc_AddSpeedX" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_AddSpeedY ,"ACT_AddVitesseY" ,"ACT_AddSpeedY" ,"Proc_AddSpeedY" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_AddSpeedZ ,"ACT_AddVitesseZ" ,"ACT_AddSpeedZ" ,"Proc_AddSpeedZ" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_AddSpeedXY ,"ACT_AddVitesseXY" ,"ACT_AddSpeedXY" ,"Proc_AddSpeedXY" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_AddSpeedXYZ ,"ACT_AddVitesseXYZ" ,"ACT_AddSpeedXYZ" ,"Proc_AddSpeedXYZ" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM USE_REAL_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
/* propose absolute */
|
||||
M_DEFINE_PROCEDURE(eProc_AddAbsoluteSpeed ,"ACT_AddVecteurVitesseAbsolu" ,"ACT_AddAbsoluteSpeed" ,"Proc_AddAbsoluteSpeed" ,fn_p_SetMechanicSpeedVector, USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_AddAbsoluteSpeedX ,"ACT_AddVitesseAbsoluX" ,"ACT_AddAbsoluteSpeedX" ,"Proc_AddAbsoluteSpeedX" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_AddAbsoluteSpeedY ,"ACT_AddVitesseAbsoluY" ,"ACT_AddAbsoluteSpeedY" ,"Proc_AddAbsoluteSpeedY" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_AddAbsoluteSpeedZ ,"ACT_AddVitesseAbsoluZ" ,"ACT_AddAbsoluteSpeedZ" ,"Proc_AddAbsoluteSpeedZ" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_AddAbsoluteSpeedXY ,"ACT_AddVitesseAbsoluXY" ,"ACT_AddAbsoluteSpeedXY" ,"Proc_AddAbsoluteSpeedXY" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_AddAbsoluteSpeedXYZ ,"ACT_AddVitesseAbsoluXYZ" ,"ACT_AddAbsoluteSpeedXYZ" ,"Proc_AddAbsoluteSpeedXYZ" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM USE_REAL_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Morphing management procedures */
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PrepareMorph ,"MOD_PrepareMorph" ,"MOD_PrepareMorph" ,"Proc_PrepareMorph" ,fn_p_stPrepareMorph , USE_CONSTANT_PARAM USE_CONSTANT_PARAM USE_CONSTANT_PARAM USE_CONSTANT_PARAM USE_CHANNEL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_StopMorph ,"MOD_StopMorph" ,"MOD_StopMorph" ,"Proc_StopMorph" ,fn_p_stStopMorph , USE_CHANNEL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_Morphing ,"MOD_Morphing" ,"MOD_Morphing" ,"Proc_Morphing" ,fn_p_stMorphing , USE_CONSTANT_PARAM USE_CONSTANT_PARAM USE_CONSTANT_PARAM USE_CHANNEL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ReleaseAllModulesControl ,"MOD_LibererTousLesModules" ,"MOD_ReleaseAllModulesControl" ,"Proc_ReleaseAllModulesControl" ,fn_p_stModuleControlProcedure,USE_NO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeModuleSighting ,"MOD_ChangeViseeModule" ,"MOD_ChangeModuleSighting" ,"Proc_ChangeModuleSighting" ,fn_p_st3DProc, USE_VECTOR_PARAM USE_MODULE_PARAM USE_BOOLEAN_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SetModuleAbsolutePosition ,"MOD_ChangePositionModule" ,"MOD_SetModuleAbsolutePosition" ,"Proc_SetModuleAbsolutePosition" ,fn_p_st3DProc, USE_VECTOR_PARAM USE_MODULE_PARAM USE_BOOLEAN_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_RelativeMoveModule ,"MOD_DeplaceModule" ,"MOD_RelativeMoveModule" ,"Proc_RelativeMoveModule" ,fn_p_st3DProc, USE_VECTOR_PARAM USE_MODULE_PARAM USE_BOOLEAN_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ChangeModuleSightingWithOffset ,"MOD_ChangeViseeModuleAvecOffset" ,"MOD_ChangeModuleSightingWithOffset" ,"Proc_ChangeModuleSightingWithOffset" ,fn_p_st3DProc, USE_VECTOR_PARAM USE_MODULE_PARAM USE_BOOLEAN_PARAM USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_RotateModuleAroundX ,"MOD_TourneModuleAutourDeX" ,"MOD_RotateModuleAroundX" ,"Proc_RotateModuleAroundX" ,fn_p_st3DProc, USE_MODULE_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_RotateModuleAroundY ,"MOD_TourneModuleAutourDeY" ,"MOD_RotateModuleAroundY" ,"Proc_RotateModuleAroundY" ,fn_p_st3DProc, USE_MODULE_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_RotateModuleAroundZ ,"MOD_TourneModuleAutourDeZ" ,"MOD_RotateModuleAroundZ" ,"Proc_RotateModuleAroundZ" ,fn_p_st3DProc, USE_MODULE_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_RotateModuleAroundVector ,"MOD_TourneModuleAutourDeVecteur" ,"MOD_RotateModuleAroundVector" ,"Proc_RotateModuleAroundVector" ,fn_p_st3DProc, USE_MODULE_PARAM USE_VECTOR_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_RotateModuleAroundVectorWithOffset ,"MOD_TourneModuleAutourDeVecteurAvecOffset" ,"MOD_RotateModuleAroundVectorOffset" ,"Proc_RotateModuleAroundVectorOffset" ,fn_p_st3DProc, USE_MODULE_PARAM USE_VECTOR_PARAM USE_REAL_PARAM USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_RotateModuleAroundXwithOffset ,"MOD_TourneModuleAutourDeXavecOffset" ,"MOD_RotateModuleAroundXwithOffset" ,"Proc_RotateModuleAroundXwithOffset" ,fn_p_st3DProc, USE_MODULE_PARAM USE_REAL_PARAM USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_RotateModuleAroundYwithOffset ,"MOD_TourneModuleAutourDeYavecOffset" ,"MOD_RotateModuleAroundYwithOffset" ,"Proc_RotateModuleAroundYwithOffset" ,fn_p_st3DProc, USE_MODULE_PARAM USE_REAL_PARAM USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_RotateModuleAroundZwithOffset ,"MOD_TourneModuleAutourDeZavecOffset" ,"MOD_RotateModuleAroundZwithOffset" ,"Proc_RotateModuleAroundZwithOffset" ,fn_p_st3DProc, USE_MODULE_PARAM USE_REAL_PARAM USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SetFullModuleOrientation ,"MOD_ReorienteModule" ,"MOD_SetFullModuleOrientation" ,"Proc_SetFullModuleOrientation" ,fn_p_st3DProc_ForReorientation, USE_MODULE_PARAM USE_BOOLEAN_PARAM USE_VECTOR_PARAM USE_VECTOR_PARAM USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetFullModuleOrientationWithOffset ,"MOD_ReorienteModuleAvecOffset" ,"MOD_SetFullModuleOrientationOffset" ,"Proc_SetFullModuleOrientationOffset" ,fn_p_st3DProc_ForReorientation, USE_MODULE_PARAM USE_BOOLEAN_PARAM USE_VECTOR_PARAM USE_VECTOR_PARAM USE_CONSTANT_PARAM USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ZoomModule ,"MOD_DeformeModule" ,"MOD_ZoomModule" ,"Proc_ZoomModule" ,fn_p_st3DProc, USE_MODULE_PARAM USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* collision communication management : ULTRA */
|
||||
M_DEFINE_PROCEDURE(eProc_SetColliderType ,"COL_ChangeTypeDeCollisionneur" ,"COL_SetColliderType" ,"Proc_SetColliderType" ,fn_p_stCollideCommunicationProc, USE_CONSTANT_PARAM USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SetColliderVector ,"COL_ChangeVecteurDeCollisionneur" ,"COL_SetColliderVector" ,"Proc_SetColliderVector" ,fn_p_stCollideCommunicationProc, USE_CONSTANT_PARAM USE_CONSTANT_PARAM USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SetColliderReal ,"COL_ChangeReelDeCollisionneur" ,"COL_SetColliderReal" ,"Proc_SetColliderReal" ,fn_p_stCollideCommunicationProc, USE_CONSTANT_PARAM USE_CONSTANT_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ResetLastCollisionActor ,"COL_AnnuleDernierPersoCollisionne" ,"COL_ResetLastCollisionActor" ,"Proc_ResetLastCollisionActor" ,fn_p_stResetLastCollisionActor, USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ClearCollisionReport ,"COL_VideRapportDeCollision" ,"COL_ClearCollisionReport" ,"Proc_ClearCollisionReport" ,fn_p_stResetLastCollisionActor, USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SetGoThroughMechanicsHandling ,"COL_TraiteCollisionTraversee" ,"COL_SetGoThroughMechanicsHandling" ,"Proc_SetGoThroughMechanicsHandling" ,fn_p_stMiscUltraProcedure, USE_BOOLEAN_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_EraseLastGoThroughMaterial ,"COL_EffaceDernierMateriauTraverse" ,"COL_EraseLastGoThroughMaterial" ,"Proc_EraseLastGoThroughMaterial" ,fn_p_stMiscUltraProcedure, USE_NO_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* String procedures */
|
||||
M_DEFINE_PROCEDURE(eProc_StringAddChar ,"TEXT_AjouteCaractere" ,"TEXT_AddChar" ,"Proc_StringAddChar" ,fn_p_stStringProc, USE_STRING_PARAM USE_CONSTANT_PARAM USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_StringReplaceChar ,"TEXT_RemplaceCaractere" ,"TEXT_ReplaceChar" ,"Proc_StringReplaceChar" ,fn_p_stStringProc, USE_STRING_PARAM USE_CONSTANT_PARAM USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_StringRemoveChar ,"TEXT_RetireCaractere" ,"TEXT_RemoveChar" ,"Proc_StringRemoveChar" ,fn_p_stStringProc, USE_STRING_PARAM USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeLanguage ,"TEXT_ChangeLangueCourante" ,"TEXT_ChangeLanguage" ,"Proc_ChangeLanguage" ,fn_p_stStringProc, USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_IntToText ,"TEXT_EntierEnTexte" ,"TEXT_IntToText" ,"Proc_IntToText" ,fn_p_stIntToText, USE_STRING_PARAM USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Meca */
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetMechanicAnimation ,"MEC_ActiveAnimation" ,"MEC_SetMechanicAnimation" ,"Proc_SetMechanicAnimation" ,fn_p_SetMechanicOption, USE_BOOLEAN_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicCollide ,"MEC_ActiveCollision" ,"MEC_SetMechanicCollide" ,"Proc_SetMechanicCollide" ,fn_p_SetMechanicOption, USE_BOOLEAN_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicGravity ,"MEC_ActiveGravite" ,"MEC_SetMechanicGravity" ,"Proc_SetMechanicGravity" ,fn_p_SetMechanicOption, USE_BOOLEAN_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetMechanicTilt ,"MEC_ActiveTilt" ,"MEC_SetMechanicTilt" ,"Proc_SetMechanicTilt" ,fn_p_SetMechanicOption, USE_BOOLEAN_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetMechanicGi ,"MEC_ActiveGi" ,"MEC_SetMechanicGI" ,"Proc_SetMechanicGI" ,fn_p_SetMechanicOption, USE_BOOLEAN_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetMechanicClimb ,"MEC_ActiveVarappe" ,"MEC_SetMechanicClimb" ,"Proc_SetMechanicClimb" ,fn_p_SetMechanicOption, USE_BOOLEAN_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicOnGround ,"MEC_ActivePlaqueAuSol" ,"MEC_SetMechanicOnGround" ,"Proc_SetMechanicOnGround" ,fn_p_SetMechanicOption, USE_BOOLEAN_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetMechanicSpider ,"MEC_ActiveAraignee" ,"MEC_SetMechanicSpider" ,"Proc_SetMechanicSpider" ,fn_p_SetMechanicOption, USE_BOOLEAN_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicShoot ,"MEC_ActiveShoot" ,"MEC_SetMechanicShoot" ,"Proc_SetMechanicShoot" ,fn_p_SetMechanicOption, USE_BOOLEAN_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicSwim ,"MEC_ActiveNage" ,"MEC_SetMechanicSwim" ,"Proc_SetMechanicSwim" ,fn_p_SetMechanicOption, USE_BOOLEAN_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicNeverFall ,"MEC_ActiveNeTombePas" ,"MEC_SetMechanicNeverFall" ,"Proc_SetMechanicNeverFall" ,fn_p_SetMechanicOption, USE_BOOLEAN_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicNewMechanic ,"MEC_DesactiveNouvelleMecanique" ,"MEC_ResetMechanicNewMechanic" ,"Proc_ResetMechanicNewMechanic" ,fn_p_SetMechanicOption, USE_BOOLEAN_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicCollisionControl ,"MEC_ControleCollision" ,"MEC_SetMechanicCollisionControl" ,"Proc_SetMechanicCollisionControl" ,fn_p_SetMechanicOption, USE_BOOLEAN_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetMechanicKeepSpeedZ ,"MEC_ConserveVitesseZ" ,"MEC_SetMechanicKeepSpeedZ" ,"Proc_SetMechanicKeepSpeedZ" ,fn_p_SetMechanicOption, USE_BOOLEAN_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicSpeedLimit ,"MEC_ActiveLimiteVitesse" ,"MEC_SetMechanicSpeedLimit" ,"Proc_SetMechanicSpeedLimit" ,fn_p_SetMechanicOption, USE_BOOLEAN_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicInertia ,"MEC_ActiveInertie" ,"MEC_SetMechanicInertia" ,"Proc_SetMechanicInertia" ,fn_p_SetMechanicOption, USE_BOOLEAN_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicStream ,"MEC_ActiveFlux" ,"MEC_SetMechanicStream" ,"Proc_SetMechanicStream" ,fn_p_SetMechanicOption, USE_BOOLEAN_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicStickOnPlatform ,"MEC_ActiveCollerAuxPlateformes" ,"MEC_SetMechanicStickOnPlatform" ,"Proc_SetMechanicStickOnPlatform" ,fn_p_SetMechanicOption, USE_BOOLEAN_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicScale ,"MEC_ActiveScale" ,"MEC_SetMechanicScale" ,"Proc_SetMechanicScale" ,fn_p_SetMechanicOption, USE_BOOLEAN_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicGravityFactor ,"MEC_FixeGravite" ,"MEC_SetMechanicGravityFactor" ,"Proc_SetMechanicGravityFactor" ,fn_p_SetMechanicRealParameter, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicSlide ,"MEC_FixeGlissement" ,"MEC_SetMechanicSlide" ,"Proc_SetMechanicSlide" ,fn_p_SetMechanicRealParameter, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicRebound ,"MEC_FixeRebond" ,"MEC_SetMechanicMaxRebound" ,"Proc_SetMechanicMaxRebound" ,fn_p_SetMechanicRealParameter, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicSlopeLimit ,"MEC_FixeLimitePente" ,"MEC_SetMechanicSlopeLimit" ,"Proc_SetMechanicSlopeLimit" ,fn_p_SetMechanicRealParameter, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicInertiaX ,"MEC_FixeInertieX" ,"MEC_SetMechanicInertiaX" ,"Proc_SetMechanicInertiaX" ,fn_p_SetMechanicRealParameter, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicInertiaY ,"MEC_FixeInertieY" ,"MEC_SetMechanicInertiaY" ,"Proc_SetMechanicInertiaY" ,fn_p_SetMechanicRealParameter, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicInertiaZ ,"MEC_FixeInertieZ" ,"MEC_SetMechanicInertiaZ" ,"Proc_SetMechanicInertiaZ" ,fn_p_SetMechanicRealParameter, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicInertiaXYZ ,"MEC_FixeInertie" ,"MEC_SetMechanicInertiaXYZ" ,"Proc_SetMechanicInertiaXYZ" ,fn_p_SetMechanic3RealParameter, USE_REAL_PARAM USE_REAL_PARAM USE_REAL_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetMechanicTiltIntensity ,"MEC_FixeIntensiteTilt" ,"MEC_SetMechanicTiltIntensity" ,"Proc_SetMechanicTiltIntensity" ,fn_p_SetMechanicRealParameter, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetMechanicTiltInertia ,"MEC_FixeInertieTilt" ,"MEC_SetMechanicTiltInertia" ,"Proc_SetMechanicTiltInertia" ,fn_p_SetMechanicRealParameter, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetMechanicTiltOrigin ,"MEC_FixeOrigineTilt" ,"MEC_SetMechanicTiltOrigin" ,"Proc_SetMechanicTiltOrigin" ,fn_p_SetMechanicRealParameter, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicSpeedMax ,"MEC_FixeVitesseMax" ,"MEC_SetMechanicSpeedMax" ,"Proc_SetMechanicSpeedMax" ,fn_p_SetMechanicVectorParameter, USE_VECTOR_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicStreamPriority ,"MEC_FixePrioriteFlux" ,"MEC_SetMechanicStreamPriority" ,"Proc_SetMechanicStreamPriority" ,fn_p_SetMechanicRealParameter, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicStreamSpeed ,"MEC_FixeVitesseFlux" ,"MEC_SetMechanicStreamSpeed" ,"Proc_SetMechanicStreamSpeed" ,fn_p_SetMechanicVectorParameter, USE_VECTOR_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetMechanicStreamFactor ,"MEC_FixeFacteurDeFlux" ,"MEC_SetMechanicStreamFactor" ,"Proc_SetMechanicStreamFactor" ,fn_p_SetMechanicRealParameter, USE_REAL_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_AddMechanicStreamSpeed ,"MEC_AjouteVitesseFlux" ,"MEC_AddMechanicStreamSpeed" ,"Proc_AddMechanicStreamSpeed" ,fn_p_SetMechanicVectorParameter, USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_AddMechanicStreamSpeedList ,"MEC_AjouteVitesseFluxListe" ,"MEC_AddMechanicStreamSpeedList" ,"Proc_AddMechanicStreamSpeedList" ,fn_p_SetMechanicListParameter, USE_DSGVARIDLIST_PARAM USE_VECTOR_PARAM, /**/ NOT_ULTRA_ABLE /**/ )
|
||||
/* limit */
|
||||
NU_M_DEFINE_PROCEDURE(eProc_MoveLimit ,"MEC_LimiteDeplacement" ,"MEC_MoveLimit" ,"Proc_MoveLimit" ,fn_p_SetMechanicSpeedVector, USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_MoveLimitX ,"MEC_LimiteDeplacementX" ,"MEC_MoveLimitX" ,"Proc_MoveLimitX" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_MoveLimitY ,"MEC_LimiteDeplacementY" ,"MEC_MoveLimitY" ,"Proc_MoveLimitY" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_MoveLimitZ ,"MEC_LimiteDeplacementZ" ,"MEC_MoveLimitZ" ,"Proc_MoveLimitZ" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_MoveLimitXYZ ,"MEC_LimiteDeplacementXYZ" ,"MEC_MoveLimitXYZ" ,"Proc_MoveLimitXYZ" ,fn_p_SetMechanicSpeedReal, USE_REAL_PARAM USE_REAL_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
/* stop limit */
|
||||
NU_M_DEFINE_PROCEDURE(eProc_StopMoveLimitX ,"MEC_StopLimiteDeplacementX" ,"MEC_StopMoveLimitX" ,"Proc_StopMoveLimitX" ,fn_p_SetMechanicSpeedReal, USE_NO_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_StopMoveLimitY ,"MEC_StopLimiteDeplacementY" ,"MEC_StopMoveLimitY" ,"Proc_StopMoveLimitY" ,fn_p_SetMechanicSpeedReal, USE_NO_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_StopMoveLimitZ ,"MEC_StopLimiteDeplacementZ" ,"MEC_StopMoveLimitZ" ,"Proc_StopMoveLimitZ" ,fn_p_SetMechanicSpeedReal, USE_NO_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_StopMoveLimitXYZ ,"MEC_StopLimiteDeplacementXYZ" ,"MEC_StopMoveLimitXYZ" ,"Proc_StopMoveLimitXYZ" ,fn_p_SetMechanicSpeedReal, USE_NO_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
/* platform */
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetPlatformLink ,"MEC_ForceLienPlateforme" ,"MEC_SetPlatformLink" ,"Proc_SetPlatformLink" ,fn_p_PlatformLink, USE_PERSO_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_FreePlatformLink ,"MEC_LibereLienPlateforme" ,"MEC_FreePlatformLink" ,"Proc_FreePlatformLink" ,fn_p_PlatformLink, USE_NO_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
/* Scale */
|
||||
M_DEFINE_PROCEDURE(eProc_MecSetScale ,"MEC_FixeScale" ,"MEC_SetScale" ,"Proc_SetScale" ,fn_p_SetMechanic3Real, USE_REAL_PARAM USE_REAL_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
/* Slide coeff */
|
||||
M_DEFINE_PROCEDURE(eProc_MecSetSlideFactorXYZ ,"MEC_FixeCoefDeGlisseXYZ" ,"MEC_SetSlideFactorXYZ" ,"Proc_SetSlideFactorXYZ" ,fn_p_SetMechanic3Real, USE_REAL_PARAM USE_REAL_PARAM USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_MecSetSlideFactorX ,"MEC_FixeCoefDeGlisseX" ,"MEC_SetSlideFactorX" ,"Proc_SetSlideFactorX" ,fn_p_SetMechanicRealParameter, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_MecSetSlideFactorY ,"MEC_FixeCoefDeGlisseY" ,"MEC_SetSlideFactorY" ,"Proc_SetSlideFactorY" ,fn_p_SetMechanicRealParameter, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_MecSetSlideFactorZ ,"MEC_FixeCoefDeGlisseZ" ,"MEC_SetSlideFactorZ" ,"Proc_SetSlideFactorZ" ,fn_p_SetMechanicRealParameter, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_MecSetClimbSpeedLimit ,"MEC_FixeLimiteVitesseVarappe" ,"MEC_SetClimbSpeedLimit" ,"Proc_SetClimbSpeedLimit" ,fn_p_SetMechanicClimbSpeedLimit, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
|
||||
M_DEFINE_PROCEDURE(eProc_MecSetHangingLimit ,"MEC_ActiveMecaAccrochage" ,"MEC_SetHangingLimit" ,"Proc_SetHangingLimit" ,fn_p_SetMechanicRealParameter, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_MecSetHangingOff ,"MEC_DesactiveMecaAccrochage" ,"MEC_SetHangingOff" ,"Proc_SetHangingOff" ,fn_p_SetMechanicSpeedReal, USE_NO_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
|
||||
M_DEFINE_PROCEDURE(eProc_MecSetBaseCoeff ,"MEC_FixeCoeffSaut" ,"MEC_SetBaseCoeff" ,"Proc_SetBaseCoeff" ,fn_p_SetMechanicRealParameter, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_MecSetWalkCoeff ,"MEC_FixeCoeffMarche" ,"MEC_SetWalkCoeff" ,"Proc_SetWalkCoeff" ,fn_p_SetMechanicRealParameter, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Hierarchy - Platform */
|
||||
M_DEFINE_PROCEDURE(eProc_HierSetFather ,"HIER_ForcePere" ,"HIER_SetFather" ,"Proc_HierSetFather" ,fn_p_HierFatherLink, USE_PERSO_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_HierFreeFather ,"HIER_LiberePere" ,"HIER_FreeFather" ,"Proc_HierFreeFather" ,fn_p_HierFatherLink, USE_NO_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_HierListOfSon ,"HIER_MesFils" ,"HIER_ListOfSon" ,"Proc_HierListOfSon" ,fn_p_HierFatherLink, USE_DSGVARIDLIST_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_HierSetPlatformType ,"HIER_ForceTypePlateforme" ,"HIER_SetPlatformType" ,"Proc_HierSetPlatformType" ,fn_p_stMiscProcedure, USE_BOOLEAN_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_HierControlLink ,"HIER_ControlePlatforme" ,"HIER_LinkControl" ,"Proc_HierLinkControl" ,fn_p_LinkControl, USE_BOOLEAN_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_HierFreezeEngine ,"HIER_GeleMoteur" ,"HIER_FreezeEngine" ,"Proc_HierFreezeEngine" ,fn_p_stMiscProcedure, USE_BOOLEAN_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_FixePositionZDM ,"ZON_FixePositionZDM" ,"ZON_SetPositionZDM" ,"Proc_FixePositionZDM" ,fn_p_stFixePositionZDx, USE_PERSO_PARAM USE_ZDM_PERSO_PARAM USE_VECTOR_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_FixePositionZDD ,"ZON_FixePositionZDD" ,"ZON_SetPositionZDD" ,"Proc_FixePositionZDD" ,fn_p_stFixePositionZDx, USE_PERSO_PARAM USE_ZDD_PERSO_PARAM USE_VECTOR_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_FixePositionZDE ,"ZON_FixePositionZDE" ,"ZON_SetPositionZDE" ,"Proc_FixePositionZDE" ,fn_p_stFixePositionZDx, USE_PERSO_PARAM USE_ZDE_PERSO_PARAM USE_VECTOR_PARAM, NOT_ULTRA_ABLE )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ChangeLightIntensity ,"LUM_ChangerIntensiteLumineuse" ,"LIGHT_ChangeLightIntensity" ,"Proc_ChangeLightIntensity" ,fn_p_stChangeLigthIntensity ,USE_PERSO_PARAM USE_4_REALS_PARAM,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_SPO_ChangeFlag ,"SPO_ChangeFlag" ,"SPO_ChangeFlag" ,"Proc_SPO_ChangeFlag" ,fn_SPO_p_stChangeFlag, USE_SUPEROBJECT_PARAM USE_CONSTANT_PARAM USE_CONSTANT_PARAM,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_ActChangeSpoFlag ,"ACT_ChangeSpoFlag" ,"ACT_ChangeSpoFlag" ,"ACT_ChangeSpoFlag" ,fn_p_stChangeActorSpoFlag, USE_CONSTANT_PARAM USE_CONSTANT_PARAM,/**/ ULTRA_ABLE /**/ )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeScreenSize ,"Ecran_ChangeTaille" ,"SCREEN_ChangeSize" ,"Proc_EcranChangeTaille" ,fn_p_stChangeScreen, USE_CONSTANT_PARAM USE_2_CONSTANTS_PARAM,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeScreenClip ,"Ecran_ChangeClip" ,"SCREEN_ChangeClip" ,"Proc_EcranChangeClip" ,fn_p_stChangeScreen, USE_CONSTANT_PARAM USE_4_CONSTANTS_PARAM,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeScreenPos ,"Ecran_ChangePos" ,"SCREEN_ChangePos" ,"Proc_EcranChangePos" ,fn_p_stChangeScreen, USE_CONSTANT_PARAM USE_2_CONSTANTS_PARAM,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ChangeScreenPosPercent ,"Ecran_ChangePosPercent" ,"SCREEN_ChangePosPercent" ,"Proc_EcranChangePosPercent" ,fn_p_stChangeScreen, USE_CONSTANT_PARAM USE_2_CONSTANTS_PARAM,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ChangeScreenRatio ,"Ecran_ChangeRatio" ,"SCREEN_ChangeProportion" ,"Proc_EcranChangeRatio" ,fn_p_stChangeScreen, USE_CONSTANT_PARAM USE_REAL_PARAM,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_DisplayShadow ,"OMBRE_Affichage" ,"SHADOW_Display" ,"Proc_OMBREAffichage" ,fn_p_stShadow, USE_CONSTANT_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ChangeShadowHeight ,"OMBRE_ChangeHauteur" ,"SHADOW_ChangeHeight" ,"Proc_OMBREChangeHauteur" ,fn_p_stShadow, USE_REAL_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ChangeShadowVector ,"OMBRE_ChangeVecteurProjection" ,"SHADOW_ChangeVectorProjection" ,"Proc_OMBREChangeVecteurProjection" ,fn_p_stShadow, USE_VECTOR_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_ForceActivationZDD ,"ZON_ForceActivationZDD" ,"ZON_ForceActivationZDD" ,"Proc_ForceActivationZDD" ,fn_p_stSetPrivilegeActivationZDx, USE_ZDD_PERSO_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_ForceActivationZDM ,"ZON_ForceActivationZDM" ,"ZON_ForceActivationZDM" ,"Proc_ForceActivationZDM" ,fn_p_stSetPrivilegeActivationZDx, USE_ZDM_PERSO_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_ForceActivationZDE ,"ZON_ForceActivationZDE" ,"ZON_ForceActivationZDE" ,"Proc_ForceActivationZDE" ,fn_p_stSetPrivilegeActivationZDx, USE_ZDE_PERSO_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ForceActivationZDR ,"ZON_ForceActivationZDR" ,"ZON_ForceActivationZDR" ,"Proc_ForceActivationZDR" ,fn_p_stSetPrivilegeActivationZDx, USE_ZDR_PERSO_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_ForceDesactivationZDD ,"ZON_ForceDesactivationZDD" ,"ZON_ForceDesactivationZDD" ,"Proc_ForceDesactivationZDD" ,fn_p_stSetPrivilegeActivationZDx, USE_ZDD_PERSO_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_ForceDesactivationZDM ,"ZON_ForceDesactivationZDM" ,"ZON_ForceDesactivationZDM" ,"Proc_ForceDesactivationZDM" ,fn_p_stSetPrivilegeActivationZDx, USE_ZDM_PERSO_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_ForceDesactivationZDE ,"ZON_ForceDesactivationZDE" ,"ZON_ForceDesactivationZDE" ,"Proc_ForceDesactivationZDE" ,fn_p_stSetPrivilegeActivationZDx, USE_ZDE_PERSO_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ForceDesactivationZDR ,"ZON_ForceDesactivationZDR" ,"ZON_ForceDesactivationZDR" ,"Proc_ForceDesactivationZDR" ,fn_p_stSetPrivilegeActivationZDx, USE_ZDR_PERSO_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_LibereActivationZDD ,"ZON_LibereActivationZDD" ,"ZON_ReleaseActivationZDD" ,"Proc_LibereActivationZDD" ,fn_p_stSetPrivilegeActivationZDx, USE_ZDD_PERSO_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_LibereActivationZDM ,"ZON_LibereActivationZDM" ,"ZON_ReleaseActivationZDM" ,"Proc_LibereActivationZDM" ,fn_p_stSetPrivilegeActivationZDx, USE_ZDM_PERSO_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_LibereActivationZDE ,"ZON_LibereActivationZDE" ,"ZON_ReleaseActivationZDE" ,"Proc_LibereActivationZDE" ,fn_p_stSetPrivilegeActivationZDx, USE_ZDE_PERSO_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_LibereActivationZDR ,"ZON_LibereActivationZDR" ,"ZON_ReleaseActivationZDR" ,"Proc_LibereActivationZDR" ,fn_p_stSetPrivilegeActivationZDx, USE_ZDR_PERSO_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_ActiveZDR ,"ZON_ActiveZDR" ,"ZON_ActiveZDR" ,"Proc_ActiveZDR" ,fn_p_stActivationZDR, USE_BOOLEAN_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Collision Flags and Computing collisions frequency */
|
||||
M_DEFINE_PROCEDURE(eProc_SetNoCollisionWithMap ,"ACT_FixePasDeCollisionAvecMap" ,"ACT_SetNoColWithMap" ,"Proc_SetNoColWithMap" ,fn_p_stSetCollSetCollisionFlag, USE_BOOLEAN_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetNoCollisionWithProjectile ,"ACT_FixePasDeCollisionAvecProjectiles" ,"ACT_SetNoColWithProjectile" ,"Proc_SetNoColWithProjectile" ,fn_p_stSetCollSetCollisionFlag, USE_BOOLEAN_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_SetNoCollisionWithSecondCharact ,"ACT_FixePasDeCollisionAvecActeursSecondaires" ,"ACT_SetNoColWithSeconfCharact" ,"Proc_SetNoColWithSeconfCharact" ,fn_p_stSetCollSetCollisionFlag, USE_BOOLEAN_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_SetNoCollisionWithMainCharact ,"ACT_FixePasDeCollisionAvecActeurPrincipal" ,"ACT_SetNoColWithMainCharact" ,"Proc_SetNoColWithMainCharact" ,fn_p_stSetCollSetCollisionFlag, USE_BOOLEAN_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_SetNoCollisionWithOtherSectors ,"ACT_FixePasDeCollisionAvecAutresSecteurs" ,"ACT_SetNoColWithOtherSectors" ,"Proc_SetNoColWithOtherSectors" ,fn_p_stSetCollSetCollisionFlag, USE_BOOLEAN_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_SetNoCollisionZdeWithProjectile ,"ACT_FixePasDeCollisionZdeAvecProjectiles" ,"ACT_SetNoColZdeWithProjectile" ,"Proc_SetNoColZdeWithProjectile" ,fn_p_stSetCollSetCollisionFlag, USE_BOOLEAN_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_SetCollComputeFrequency ,"ACT_FixeFrequenceCalculCollisions" ,"ACT_SetCollComputeFreq" ,"Proc_SetCollComputeFreq" ,fn_p_stSetComputationFrequency, USE_CONSTANT_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_SetBrainComputeFrequency ,"ACT_FixeFrequenceCalculIA" ,"ACT_SetBrainComputeFreq" ,"Proc_SetBrainComputeFreq" ,fn_p_stSetComputationFrequency, USE_CONSTANT_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_SetLightComputeFrequency ,"ACT_FixeFrequenceCalculLumieres" ,"ACT_SetLightComputeFreq" ,"Proc_SetLightComputeFreq" ,fn_p_stSetComputationFrequency, USE_CONSTANT_PARAM ,/**/ ULTRA_ABLE /**/ )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* map exits management for world map update */
|
||||
M_DEFINE_PROCEDURE(eProc_SetUsedExitIdentifier ,"MAP_IndiqueLaSortieUtilisee" ,"MAP_SetUsedExitIdentifier" ,"Proc_SetUsedExitIdentifier" ,fn_p_stWorldMapProc, USE_CONSTANT_PARAM USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_GetUsedExitIdentifier ,"MAP_LitLaSortieUtilisee" ,"MAP_GetUsedExitIdentifier" ,"Proc_GetUsedExitIdentifier" ,fn_p_stWorldMapProc, USE_ADDR_LONG_PARAM USE_ADDR_LONG_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_SetGlobalCounter ,"MAP_ChangeCompteurGlobal" ,"MAP_SetGlobalCounter" ,"eProc_SetGlobalCounter" ,fn_p_stWorldMapProc, USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_ReadAnalogJoystick ,"PAD_LitJoyAnalogiqueModeMario" ,"PAD_ReadAnalogJoystickMarioMode" ,"PAD_ReadAnalogJoystickMarioMode" ,fn_p_stReadAnalogJoystickMario, USE_4_REALS_PARAM USE_CONSTANT_PARAM USE_2_BOOLEANS_PARAM,/**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_SetAnalogJoystickAxes ,"PAD_JoyAnalogiqueFixeAxes" ,"PAD_InitAnalogJoystickAxes" ,"PAD_InitAnalogJoystickAxes" ,fn_p_stSetAnalogJoystickAxes, USE_BUTTON_PARAM USE_BUTTON_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_SetPadReadingDsgvars ,"PAD_FixeVariablesDeLecture" ,"PAD_SetPadReadingDsgvars" ,"Proc_SetPadReadingDsgvars" ,fn_p_stSetAnalogJoystickAxes, USE_ADDR_VECTOR_PARAM USE_ADDR_LONG_PARAM USE_ADDR_LONG_PARAM USE_ADDR_REAL_PARAM USE_ADDR_REAL_PARAM USE_ADDR_REAL_PARAM USE_ADDR_LONG_PARAM,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
#if (!defined U64)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_CancelKeyboardInertia ,"PAD_AnnuleInertieClavier" ,"PAD_CancelKeyboardInertia" ,"Proc_CancelKeyboardInertia" ,fn_p_stSetAnalogJoystickAxes, USE_NO_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
#else
|
||||
NU_M_DEFINE_PROCEDURE(eProc_CancelKeyboardInertia ,"PAD_AnnuleInertieClavier" ,"PAD_CancelKeyboardInertia" ,"Proc_CancelKeyboardInertia" ,fn_p_stDummy, USE_NO_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
#endif /* U64*/
|
||||
NU_M_DEFINE_PROCEDURE(eProc_GetPadCalibration ,"PAD_LitCalibration" ,"PAD_GetPadCalibration" ,"Proc_GetPadCalibration" ,fn_p_stSetAnalogJoystickAxes, USE_ADDR_LONG_PARAM USE_ADDR_LONG_PARAM,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_SetPadCalibration ,"PAD_ChangeCalibration" ,"PAD_SetPadCalibration" ,"Proc_SetPadCalibration" ,fn_p_stSetAnalogJoystickAxes, USE_CONSTANT_PARAM USE_CONSTANT_PARAM,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_SetBooleanInArray ,"ACT_FixeBooleenDansTableau" ,"ACT_SetBooleanInArray" ,"ACT_SetBooleanInArray" ,fn_p_stSetBooleanInArray, USE_ADDR_ARRAY_PARAM USE_CONSTANT_PARAM USE_BOOLEAN_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_SetDefaultFormatCharacter ,"TEXT_SetDefaultFormatCharacter" ,"TEXT_SetDefaultFormatCharacter" ,"TEXT_SetDefaultFormatCharacter" ,fn_p_stSetDefaultFormatCharacter, USE_3_REALS_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
#if (!defined U64)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SelectDriver ,"VID_SelectDriver" ,"VID_SelectDriver" ,"VID_SelectDriver" ,fn_p_stSelectDriver, USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
#else
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SelectDriver ,"VID_SelectDriver" ,"VID_SelectDriver" ,"VID_SelectDriver" ,fn_p_stDummy, USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
#endif /* U64*/
|
||||
|
||||
|
||||
#ifdef U64
|
||||
M_DEFINE_PROCEDURE(eProc_SelectShapnessMax ,"VID_SelectShapnessMax" ,"VID_SelectShapnessMax" ,"Proc_SelectShapnessMax" ,Proc_SelectShapnessMax, USE_BOOLEAN_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_CenterScreen ,"VID_CenterScreen" ,"VID_CenterScreen" ,"Proc_CenterScreen" ,fn_p_stCenterScreen, USE_NO_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
#else
|
||||
M_DEFINE_PROCEDURE(eProc_SelectShapnessMax ,"VID_SelectShapnessMax" ,"VID_SelectShapnessMax" ,"Proc_SelectShapnessMax" ,fn_p_stDummy, USE_BOOLEAN_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_CenterScreen ,"VID_CenterScreen" ,"VID_CenterScreen" ,"Proc_CenterScreen" ,fn_p_stDummy, USE_NO_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
#endif /* U64 */
|
||||
|
||||
|
||||
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_SelectResolution ,"VID_SelectResolution" ,"VID_SelectResolution" ,"VID_SelectResolution" ,fn_p_stSelectResolution, USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeBrightness ,"VID_ChangeBrightness" ,"VID_ChangeBrightness" ,"VID_ChangeBrightness" ,fn_p_stChangeBrightness, USE_REAL_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_TexteEntier ,"TEXT_ParametreEntier" ,"TEXT_IntegerParameter" ,"TEXT_IntegerParameter" ,fn_p_stTextIntegerParameter, USE_2_CONSTANTS_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_TexteReel ,"TEXT_ParametreReel" ,"TEXT_RealParameter" ,"TEXT_RealParameter" ,fn_p_stTextRealParameter, USE_CONSTANT_PARAM USE_REAL_PARAM,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_SetTextureFiltering ,"VID_SetTextureFiltering" ,"VID_SetTextureFiltering" ,"VID_SetTextureFiltering" ,fn_p_stSetVideoOptions, USE_CONSTANT_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_SetAntiAliasing ,"VID_SetAntiAliasing" ,"VID_SetAntiAliasing" ,"VID_SetAntiAliasing" ,fn_p_stSetVideoOptions, USE_CONSTANT_PARAM USE_REAL_PARAM,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_SetInStereoMode ,"SOUND_SetInStereoMode" ,"SOUND_SetInStereoMode" ,"SOUND_SetInStereoMode" ,fn_p_stSetInStereoMode, USE_BOOLEAN_PARAM ,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_SetSaturationBackGroundDistance ,"ACT_FixeDistanceSaturationBackGround" ,"ACT_SetSaturationBackGroundDistance" ,"Proc_SetSaturationBackGroundDistance",fn_p_stSetaturationAndBackgroundDistance,USE_CONSTANT_PARAM USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_SaveSoundEventInSlotMemory ,"SOUND_SauveRequeteCourante" ,"SOUND_SaveCurrentRequest" ,"Proc_SaveCurrentRequest" ,fn_p_stSaveCurrentSoundRequest,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_RestoreSoundEventInSlotMemory ,"SOUND_RestaureRequete" ,"SOUND_RestoreRequest" ,"Proc_RestoreRequest" ,fn_p_stSaveCurrentSoundRequest,USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/ )
|
||||
|
||||
#if defined(WIN32) && defined(_DEBUG)
|
||||
M_DEFINE_PROCEDURE(eProc_DrawSegment ,"DEBUG_DessineSegment" ,"DEBUG_DrawSegment" ,"Proc_DrawSegment" ,fn_p_stDebugDrawSegment,USE_VECTOR_PARAM USE_VECTOR_PARAM USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/ )
|
||||
#else
|
||||
M_DEFINE_PROCEDURE(eProc_DrawSegment ,"DEBUG_DessineSegment" ,"DEBUG_DrawSegment" ,"Proc_DrawSegment" ,fn_p_stDummy,USE_VECTOR_PARAM USE_VECTOR_PARAM USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/ )
|
||||
#endif /* WIN32 && _DEBUG */
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
#if defined(WIN32)
|
||||
M_DEFINE_PROCEDURE(eProc_UpdateChecksum ,"ACT_MetAJourChecksum" ,"ACT_UpdateChecksum" ,"Proc_UpdateChecksum" ,fn_p_stMiscProtectProcedure, USE_VECTOR_PARAM USE_CONSTANT_PARAM, ULTRA_ABLE)
|
||||
#else
|
||||
M_DEFINE_PROCEDURE(eProc_UpdateChecksum ,"ACT_MetAJourChecksum" ,"ACT_UpdateChecksum" ,"Proc_UpdateChecksum" ,fn_p_stDummy, USE_VECTOR_PARAM USE_CONSTANT_PARAM, ULTRA_ABLE)
|
||||
#endif /* WIN32 */
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
#if defined(WIN32)
|
||||
M_DEFINE_PROCEDURE(eProc_ShellExecute ,"ShellExecute" ,"ShellExecute" ,"Proc_ShellExecute" ,fn_p_stShellExecuteProcedure, USE_STRING_PARAM , NOT_ULTRA_ABLE)
|
||||
#else
|
||||
M_DEFINE_PROCEDURE(eProc_ShellExecute ,"ShellExecute" ,"ShellExecute" ,"Proc_ShellExecute" ,fn_p_stDummy, USE_STRING_PARAM , NOT_ULTRA_ABLE)
|
||||
#endif /* WIN32 */
|
||||
|
||||
M_DEFINE_PROCEDURE(eProc_ForceVerticalUsingX ,"ACT_ForceVerticalUsingX" ,"ACT_ForceVerticalUsingX" ,"Proc_ForceVerticalUsingX" ,fn_p_st3DProcVertical, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ForceVerticalUsingY ,"ACT_ForceVerticalUsingY" ,"ACT_ForceVerticalUsingY" ,"Proc_ForceVerticalUsingY" ,fn_p_st3DProcVertical, USE_REAL_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
|
||||
#include "ProcRay2.h"
|
19
Rayman_X/cpa/public/AI/AIGame/DefSAI.h
Normal file
19
Rayman_X/cpa/public/AI/AIGame/DefSAI.h
Normal file
@@ -0,0 +1,19 @@
|
||||
/*-------------------------------------------------------------------------------------
|
||||
DefSAI.h : Variables save type definitions (use SAI flags (cf Francois Mahieu))
|
||||
Author : Olivier Couvreur 25/09/97
|
||||
--------------------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(M_DEFINE_DSGVAR_SAVE_TYPE)
|
||||
#error You should define M_DEFINE_DSGVAR_SAVE_TYPE accordingly before including this file !
|
||||
#endif
|
||||
|
||||
#define DEFAULT_DSGVAR_SAVE_TYPE_ENTRY 0
|
||||
|
||||
M_DEFINE_DSGVAR_SAVE_TYPE("Aucune","None",(SAI_tdeFlags) 0)
|
||||
M_DEFINE_DSGVAR_SAVE_TYPE("Joueur","Player",SAI_ePlayerSaveCurrentValue)
|
||||
M_DEFINE_DSGVAR_SAVE_TYPE("Niveau","Level",SAI_eLevelSaveCurrentValue)
|
||||
/*M_DEFINE_DSGVAR_SAVE_TYPE("JoueurEtNiveau","PlayerAndLevel",(SAI_tdeFlags) (SAI_ePlayerSaveCurrentValue|SAI_eLevelSaveCurrentValue) )*/
|
||||
|
||||
#if defined(M_DEFINE_DSGVAR_SAVE_TYPE)
|
||||
#undef M_DEFINE_DSGVAR_SAVE_TYPE
|
||||
#endif
|
45
Rayman_X/cpa/public/AI/AIGame/DefVar.h
Normal file
45
Rayman_X/cpa/public/AI/AIGame/DefVar.h
Normal file
@@ -0,0 +1,45 @@
|
||||
/*-------------------------------------------------------------------------------------
|
||||
DefVar.h : Variables type definitions
|
||||
Author : Olivier Couvreur 25/09/97
|
||||
--------------------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(M_DEFINE_DSGVAR_TYPE)
|
||||
#error You should define M_DEFINE_DSGVAR_TYPE accordingly before including this file !
|
||||
#endif
|
||||
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType_Boolean ,"Booleen" ,"Boolean" ,E_vt_Boolean ,C_ADDR_BOOLEAN_PARAM ,C_NO_PARAM ,fn_ucGetDsgVarBoolean ,fn_ucSetDsgVarBoolean ,fn_p_cBinaryLoadDsgVarBoolean ,fn_p_cBinarySaveDsgVarBoolean)
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType__128To127 ,"Entier_128To127" ,"_128To127" ,E_vt__128To127 ,C_ADDR_LONG_PARAM ,C_NO_PARAM ,fn_ucGetDsgVar_128To127 ,fn_ucSetDsgVar_128To127 ,fn_p_cBinaryLoadDsgVar_128To127 ,fn_p_cBinarySaveDsgVar_128To127)
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType_0To255 ,"Entier0To255" ,"0To255" ,E_vt_0To255 ,C_ADDR_LONG_PARAM ,C_NO_PARAM ,fn_ucGetDsgVar0To255 ,fn_ucSetDsgVar0To255 ,fn_p_cBinaryLoadDsgVar0To255 ,fn_p_cBinarySaveDsgVar0To255)
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType__32768To32767 ,"Entier_32768To32767" ,"_32768To32767" ,E_vt__32768To32767 ,C_ADDR_LONG_PARAM ,C_NO_PARAM ,fn_ucGetDsgVar_32768To32767 ,fn_ucSetDsgVar_32768To32767 ,fn_p_cBinaryLoadDsgVar_32768To32767 ,fn_p_cBinarySaveDsgVar_32768To32767)
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType_0To65535 ,"Entier0To65535" ,"0To65535" ,E_vt_0To65535 ,C_ADDR_LONG_PARAM ,C_NO_PARAM ,fn_ucGetDsgVar0To65535 ,fn_ucSetDsgVar0To65535 ,fn_p_cBinaryLoadDsgVar0To65535 ,fn_p_cBinarySaveDsgVar0To65535)
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType_Integer ,"Entier" ,"Integer" ,E_vt_Integer ,C_ADDR_LONG_PARAM ,C_NO_PARAM ,fn_ucGetDsgVarInteger ,fn_ucSetDsgVarInteger ,fn_p_cBinaryLoadDsgVarInteger ,fn_p_cBinarySaveDsgVarInteger)
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType_PositiveInteger,"EntierPositif" ,"PositiveInteger" ,E_vt_PositiveInteger,C_ADDR_LONG_PARAM ,C_NO_PARAM ,fn_ucGetDsgVarPositiveInteger ,fn_ucSetDsgVarPositiveInteger ,fn_p_cBinaryLoadDsgVarPositiveInteger ,fn_p_cBinarySaveDsgVarPositiveInteger)
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType_Float ,"Reel" ,"Float" ,E_vt_Float ,C_ADDR_REAL_PARAM ,C_NO_PARAM ,fn_ucGetDsgVarFloat ,fn_ucSetDsgVarFloat ,fn_p_cBinaryLoadDsgVarFloat ,fn_p_cBinarySaveDsgVarFloat)
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType_WayPoint ,"WayPoint" ,"WayPoint" ,E_vt_WayPoint ,C_ADDR_WAYPOINT_PARAM ,C_NO_PARAM ,fn_ucGetDsgVarWayPoint ,fn_ucSetDsgVarWayPoint ,fn_p_cBinaryLoadDsgVarWayPoint ,fn_p_cBinarySaveDsgVarWayPoint)
|
||||
/*M_DEFINE_DSGVAR_TYPE(eDsgVarType_Way ,"Way" ,"Way" ,E_vt_Way ,C_ADDR_LONG_PARAM ,C_NO_PARAM ,fn_ucGetDsgVarWay ,fn_ucSetDsgVarWay ,fn_p_cBinaryLoadDsgVarWay ,fn_p_cBinarySaveDsgVarWay)*/
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType_Perso ,"Perso" ,"Perso" ,E_vt_Perso ,C_ADDR_PERSO_PARAM ,C_NO_PARAM ,fn_ucGetDsgVarPerso ,fn_ucSetDsgVarPerso ,fn_p_cBinaryLoadDsgVarPerso ,fn_p_cBinarySaveDsgVarPerso)
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType_List ,"Liste" ,"List" ,E_vt_List ,C_ADDR_LIST_PARAM ,C_NO_PARAM ,fn_ucGetDsgVarList ,fn_ucSetDsgVarList ,fn_p_cBinaryLoadDsgVarList ,fn_p_cBinarySaveDsgVarList)
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType_Vector ,"TypeVecteur" ,"Vector" ,E_vt_Vector ,C_ADDR_VECTOR_PARAM ,C_NO_PARAM ,fn_ucGetDsgVarVector ,fn_ucSetDsgVarVector ,fn_p_cBinaryLoadDsgVarVector ,fn_p_cBinarySaveDsgVarVector)
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType_Comport ,"TypeComportement" ,"Comport" ,E_vt_Comport ,C_ADDR_COMPORT_PARAM ,C_NO_PARAM ,fn_ucGetDsgVarComport ,fn_ucSetDsgVarComport ,fn_p_cBinaryLoadDsgVarComport ,fn_p_cBinarySaveDsgVarComport)
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType_Action ,"TypeAction" ,"Action" ,E_vt_Action ,C_ADDR_ACTION_PARAM ,C_NO_PARAM ,fn_ucGetDsgVarAction ,fn_ucSetDsgVarAction ,fn_p_cBinaryLoadDsgVarAction ,fn_p_cBinarySaveDsgVarAction)
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType_Text ,"Texte" ,"Text" ,E_vt_Text ,C_ADDR_TEXT_PARAM ,C_NO_PARAM ,fn_ucGetDsgVarText ,fn_ucSetDsgVarText ,fn_p_cBinaryLoadDsgVarText ,fn_p_cBinarySaveDsgVarText)
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType_GameMaterial ,"TypeMateriauJeu" ,"GameMaterial" ,E_vt_GameMaterial ,C_ADDR_GMT_PARAM ,C_NO_PARAM ,fn_ucGetDsgVarGameMaterial ,fn_ucSetDsgVarGameMaterial ,fn_p_cBinaryLoadDsgVarGameMaterial ,fn_p_cBinarySaveDsgVarGameMaterial)
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType_Caps ,"TypeCapacite" ,"Capability" ,E_vt_Caps ,C_ADDR_CAPS_PARAM ,C_NO_PARAM ,fn_ucGetDsgVarCaps ,fn_ucSetDsgVarCaps ,fn_p_cBinaryLoadDsgVarCaps ,fn_p_cBinarySaveDsgVarCaps)
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType_Graph ,"TypeReseau" ,"Graph" ,E_vt_Graph ,C_ADDR_GRAPH_PARAM ,C_NO_PARAM ,fn_ucGetDsgVarGraph ,fn_ucSetDsgVarGraph ,fn_p_cBinaryLoadDsgVarGraph ,fn_p_cBinarySaveDsgVarGraph)
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType_PersoArray ,"TypeTableauPerso" ,"PersoArray" ,E_vt_Array ,C_ADDR_ARRAY_PARAM ,C_ADDR_PERSO_PARAM ,fn_ucGetDsgVarArray ,fn_ucSetDsgVarArray ,fn_p_cBinaryLoadDsgVarArray ,fn_p_cBinarySaveDsgVarArray)
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType_VectorArray ,"TypeTableauVecteur" ,"VectorArray" ,E_vt_Array ,C_ADDR_ARRAY_PARAM ,C_ADDR_VECTOR_PARAM ,fn_ucGetDsgVarArray ,fn_ucSetDsgVarArray ,fn_p_cBinaryLoadDsgVarArray ,fn_p_cBinarySaveDsgVarArray)
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType_FloatArray ,"TypeTableauReel" ,"FloatArray" ,E_vt_Array ,C_ADDR_ARRAY_PARAM ,C_ADDR_REAL_PARAM ,fn_ucGetDsgVarArray ,fn_ucSetDsgVarArray ,fn_p_cBinaryLoadDsgVarArray ,fn_p_cBinarySaveDsgVarArray)
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType_IntegerArray ,"TypeTableauEntier" ,"IntegerArray" ,E_vt_Array ,C_ADDR_ARRAY_PARAM ,C_ADDR_LONG_PARAM ,fn_ucGetDsgVarArray ,fn_ucSetDsgVarArray ,fn_p_cBinaryLoadDsgVarArray ,fn_p_cBinarySaveDsgVarArray)
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType_WayPointArray ,"TypeTableauWayPoint" ,"WayPointArray" ,E_vt_Array ,C_ADDR_ARRAY_PARAM ,C_ADDR_WAYPOINT_PARAM ,fn_ucGetDsgVarArray ,fn_ucSetDsgVarArray ,fn_p_cBinaryLoadDsgVarArray ,fn_p_cBinarySaveDsgVarArray)
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType_TextArray ,"TypeTableauTexte" ,"TextArray" ,E_vt_Array ,C_ADDR_ARRAY_PARAM ,C_ADDR_TEXT_PARAM ,fn_ucGetDsgVarArray ,fn_ucSetDsgVarArray ,fn_p_cBinaryLoadDsgVarArray ,fn_p_cBinarySaveDsgVarArray)
|
||||
|
||||
/* ANNECY OA - 05/08/99 { */
|
||||
#ifndef U64
|
||||
M_DEFINE_DSGVAR_TYPE(eDsgVarType_SuperObject ,"TypeSuperObjet" ,"SuperObject" ,E_vt_SuperObject ,C_SUPEROBJECT_PARAM ,C_NO_PARAM ,fn_ucGetDsgVarSuperObject ,fn_ucSetDsgVarSuperObject ,fn_p_cBinaryLoadDsgVarSuperObject ,fn_p_cBinarySaveDsgVarSuperObject)
|
||||
#endif
|
||||
/* END ANNECY OA } */
|
||||
|
||||
|
||||
#if defined(M_DEFINE_DSGVAR_TYPE)
|
||||
#undef M_DEFINE_DSGVAR_TYPE
|
||||
#endif
|
26
Rayman_X/cpa/public/AI/AIGame/EnumAct.h
Normal file
26
Rayman_X/cpa/public/AI/AIGame/EnumAct.h
Normal file
@@ -0,0 +1,26 @@
|
||||
/*-------------------------------------------------------------------------------------
|
||||
EnumAct.h : enum for metaactions
|
||||
Author : Olivier Couvreur 23/04/97
|
||||
Modify :
|
||||
--------------------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(__ENUM_ACT_H__)
|
||||
#define __ENUM_ACT_H__
|
||||
|
||||
#define M_DEFINE_METAACTION(a,b,english,c,d,e,f) a,
|
||||
|
||||
/****************************************************************************************/
|
||||
/* ACTIONS CONSTANTS */
|
||||
/****************************************************************************************/
|
||||
typedef enum tdeMetaActionId_
|
||||
{
|
||||
#include "DefAct.h"
|
||||
|
||||
/******************************************************************/
|
||||
eNbMetaAction /* WARNING : Keep it on the last position.*/
|
||||
/******************************************************************/
|
||||
} tdeMetaActionId;
|
||||
|
||||
#undef M_DEFINE_METAACTION
|
||||
|
||||
#endif /* __ENUM_ACT_H__*/
|
24
Rayman_X/cpa/public/AI/AIGame/EnumCond.h
Normal file
24
Rayman_X/cpa/public/AI/AIGame/EnumCond.h
Normal file
@@ -0,0 +1,24 @@
|
||||
/*-------------------------------------------------------------------------------------
|
||||
EnumCond.h : enum for conditions and keywords
|
||||
Author : Olivier Couvreur 23/04/97
|
||||
Modify : Olivier Couvreur 27/05/97 ZDD + ZDE stuff
|
||||
--------------------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(__ENUM_COND_H__)
|
||||
#define __ENUM_COND_H__
|
||||
|
||||
#define M_DEFINE_CONDITION(a,b,english,c,d,e,f) a,
|
||||
|
||||
/* Definition des Conditions.*/
|
||||
typedef enum tdeCondId_
|
||||
{
|
||||
#include "DefCond.h"
|
||||
|
||||
/*************** MUST BE AT END ***************/
|
||||
eNbCond /* = NB COND */
|
||||
/**********************************************/
|
||||
} tdeCondId;
|
||||
|
||||
#undef M_DEFINE_CONDITION
|
||||
|
||||
#endif /* __ENUM_COND_H__*/
|
37
Rayman_X/cpa/public/AI/AIGame/EnumFild.h
Normal file
37
Rayman_X/cpa/public/AI/AIGame/EnumFild.h
Normal file
@@ -0,0 +1,37 @@
|
||||
/*-------------------------------------------------------------------------------------
|
||||
EnumFild.h : enum for fields
|
||||
Author : Olivier Couvreur 23/04/97
|
||||
Modify :
|
||||
--------------------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(__ENUM_FIELD_H__)
|
||||
#define __ENUM_FIELD_H__
|
||||
|
||||
#define M_DEFINE_FIELD(a,b,english,c,d,e,f) a,
|
||||
|
||||
typedef enum tdeFieldId_
|
||||
{
|
||||
#include "DefFild.h"
|
||||
|
||||
/*************** MUST BE AT END ***************/
|
||||
eNbField /* = NB FIELD */
|
||||
/**********************************************/
|
||||
} tdeFieldId;
|
||||
|
||||
#undef M_DEFINE_FIELD
|
||||
|
||||
|
||||
#define M_DEFINE_FIELD_TYPE(a,b,c,d) a,
|
||||
|
||||
typedef enum tdeFieldTypeId_
|
||||
{
|
||||
#include "FildType.h"
|
||||
|
||||
/*************** MUST BE AT END ***************/
|
||||
eNbFieldType /* = NB FIELD TYPE*/
|
||||
/**********************************************/
|
||||
} tdeFieldTypeId;
|
||||
#undef M_DEFINE_FIELD_TYPE
|
||||
|
||||
|
||||
#endif /* __ENUM_FIELD_H__*/
|
25
Rayman_X/cpa/public/AI/AIGame/EnumFunc.h
Normal file
25
Rayman_X/cpa/public/AI/AIGame/EnumFunc.h
Normal file
@@ -0,0 +1,25 @@
|
||||
/*-------------------------------------------------------------------------------------
|
||||
EnumFunc.h : enum for functions and functions list
|
||||
Author : 23/04/1997 (Olivier Couvreur
|
||||
Modify : 21/05/1997 (Olivier Couvreur) HitPoints support
|
||||
Modify : 27/05/1997 (Olivier Couvreur) ZDD + ZDE stuff
|
||||
--------------------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(__ENUM_FUNC_H__)
|
||||
#define __ENUM_FUNC_H__
|
||||
|
||||
#define M_DEFINE_FUNCTION(a,b,english,c,d,e,f,g) a,
|
||||
|
||||
/* Definition of Functions.*/
|
||||
typedef enum tdeFuncId_
|
||||
{
|
||||
#include "DefFunc.h"
|
||||
|
||||
/*************** MUST BE AT END ***************/
|
||||
eNbFunc /* = NB FUNC */
|
||||
/**********************************************/
|
||||
} tdeFuncId;
|
||||
|
||||
#undef M_DEFINE_FUNCTION
|
||||
|
||||
#endif /* __ENUM_FUNC_H__*/
|
23
Rayman_X/cpa/public/AI/AIGame/EnumKey.h
Normal file
23
Rayman_X/cpa/public/AI/AIGame/EnumKey.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/*-------------------------------------------------------------------------------------
|
||||
EnumCond.h : enum for eywords
|
||||
Author : Olivier Couvreur 19/08/97
|
||||
--------------------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(__ENUM_KEY_H__)
|
||||
#define __ENUM_KEY_H__
|
||||
|
||||
#define M_DEFINE_KEYWORD(a,b,english,c,d,e,f) a,
|
||||
|
||||
typedef enum tdeKeyWordId_
|
||||
{
|
||||
|
||||
#include "DefKey.h"
|
||||
|
||||
/*************** MUST BE AT END ***************/
|
||||
eNbKeyWord /* = NB KEYWORD */
|
||||
/**********************************************/
|
||||
} tdeKeyWordId;
|
||||
|
||||
#undef M_DEFINE_KEYWORD
|
||||
|
||||
#endif /* __ENUM_KEY_H__*/
|
28
Rayman_X/cpa/public/AI/AIGame/EnumOper.h
Normal file
28
Rayman_X/cpa/public/AI/AIGame/EnumOper.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/*-------------------------------------------------------------------------------------
|
||||
EnumOper.h : enum for operators
|
||||
Author : Olivier Couvreur 23/04/97
|
||||
Modify :
|
||||
--------------------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(__ENUM_OPER_H__)
|
||||
#define __ENUM_OPER_H__
|
||||
|
||||
/* Scalar means it's working for scalar only*/
|
||||
/* Vector means it's working for vector only*/
|
||||
/* else for both*/
|
||||
|
||||
#define M_DEFINE_OPERATOR(a,b,c,d,e,f) a,
|
||||
|
||||
/* Definition of Operators.*/
|
||||
typedef enum tdeOperatorId_
|
||||
{
|
||||
#include "DefOper.h"
|
||||
|
||||
/*************** MUST BE AT END ***************/
|
||||
eNbOperator /* = NB OPERATOR */
|
||||
/**********************************************/
|
||||
} tdeOperatorId;
|
||||
|
||||
#undef M_DEFINE_OPERATOR
|
||||
|
||||
#endif /* __ENUM_OPER_H__*/
|
24
Rayman_X/cpa/public/AI/AIGame/EnumProc.h
Normal file
24
Rayman_X/cpa/public/AI/AIGame/EnumProc.h
Normal file
@@ -0,0 +1,24 @@
|
||||
/*-------------------------------------------------------------------------------------
|
||||
EnumProc.h : enum for procedures
|
||||
Author : 23/04/1997 (Olivier Couvreur)
|
||||
Modify : 21/05/1997 (Olivier Couvreur) HitPoints support
|
||||
--------------------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(__ENUM_PROC_H__)
|
||||
#define __ENUM_PROC_H__
|
||||
|
||||
#define M_DEFINE_PROCEDURE(a,b,english,c,d,e,f) a,
|
||||
|
||||
/* Definition of Procedures.*/
|
||||
typedef enum tdeProcedureId_
|
||||
{
|
||||
#include "DefProc.h"
|
||||
|
||||
/*************** MUST BE AT END ***************/
|
||||
eNbProcedure /* = NB PROCEDURE */
|
||||
/**********************************************/
|
||||
} tdeProcedureId;
|
||||
|
||||
#undef M_DEFINE_PROCEDURE
|
||||
|
||||
#endif /* __ENUM_PROC_H__*/
|
21
Rayman_X/cpa/public/AI/AIGame/EnumVar.h
Normal file
21
Rayman_X/cpa/public/AI/AIGame/EnumVar.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/*-------------------------------------------------------------------------------------
|
||||
EnumVar.h : enum for DsgVar Type
|
||||
--------------------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(__ENUM_VAR_H__)
|
||||
#define __ENUM_VAR_H__
|
||||
|
||||
#define M_DEFINE_DSGVAR_TYPE(a,b,c,d,e,f,g,h,i,j) a,
|
||||
|
||||
typedef enum tdeDsgVarTypeId_
|
||||
{
|
||||
#include "DefVar.h"
|
||||
|
||||
/*************** MUST BE AT END ***************/
|
||||
eNbDsgVarType /* = NB DSGVARTYPE */
|
||||
/**********************************************/
|
||||
} tdeDsgVarTypeId;
|
||||
|
||||
#undef M_DEFINE_DSGVAR_TYPE
|
||||
|
||||
#endif /* __ENUM_VAR_H__*/
|
20
Rayman_X/cpa/public/AI/AIGame/FildType.h
Normal file
20
Rayman_X/cpa/public/AI/AIGame/FildType.h
Normal file
@@ -0,0 +1,20 @@
|
||||
/*-------------------------------------------------------------------------------------
|
||||
FildType.h : Field type definition
|
||||
Author : Olivier Couvreur 28/10/97
|
||||
--------------------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(M_DEFINE_FIELD_TYPE)
|
||||
#error You should define M_DEFINE_FIELD_TYPE accordingly before including this file !
|
||||
#endif
|
||||
|
||||
/* Field Type Prototypes : type, internal type, post processing , preprocessing */
|
||||
M_DEFINE_FIELD_TYPE(eFieldType_Integer ,E_vt_Integer ,fn_vGetFieldTypeInteger ,fn_vSetFieldTypeInteger)
|
||||
M_DEFINE_FIELD_TYPE(eFieldType_Float ,E_vt_Float ,fn_vGetFieldTypeFloat ,fn_vSetFieldTypeFloat)
|
||||
M_DEFINE_FIELD_TYPE(eFieldType_Vector ,E_vt_Vector ,fn_vGetFieldTypeVector ,fn_vSetFieldTypeVector)
|
||||
M_DEFINE_FIELD_TYPE(eFieldType_Comport ,E_vt_Comport ,fn_vGetFieldTypeComport ,fn_vSetFieldTypeComport)
|
||||
M_DEFINE_FIELD_TYPE(eFieldType_0To255 ,E_vt_0To255 ,fn_vGetFieldType0To255 ,fn_vSetFieldType0To255)
|
||||
|
||||
#if defined(M_DEFINE_FIELD_TYPE)
|
||||
#undef M_DEFINE_FIELD_TYPE
|
||||
#endif
|
||||
|
103
Rayman_X/cpa/public/AI/AIGame/FuncRay2.h
Normal file
103
Rayman_X/cpa/public/AI/AIGame/FuncRay2.h
Normal file
@@ -0,0 +1,103 @@
|
||||
/************************************************************************************************
|
||||
* Name: FuncRay2.h *
|
||||
* Use : Macro Definition of functions for AI of Rayman II *
|
||||
* Author: Christophe Giraud *
|
||||
* (c) UBI Simulations Annecy *
|
||||
************************************************************************************************/
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Management of magic points for Rayman */
|
||||
NU_M_DEFINE_FUNCTION(eFunc_LitPointsDeMagie ,"RAY_LitPointsDeMagie" ,"RAY_GetMagicPoints" ,"Func_LitPointsDeMagie" ,fn_p_stCode4PointsDeMagie , USE_NO_PARAM , USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_LitPointsDeMagieMax ,"RAY_LitPointsDeMagieMax" ,"RAY_GetMagicPointsMax" ,"Func_LitPointsDeMagieMax" ,fn_p_stCode4PointsDeMagie , USE_NO_PARAM , USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_AjouteEtLitPointsDeMagie ,"RAY_AjouteEtLitPointsDeMagie" ,"RAY_AddAndGetMagicPoints" ,"Func_AjouteEtLitPointsDeMagie" ,fn_p_stCode4PointsDeMagie , USE_CONSTANT_PARAM, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_AjouteEtLitPointsDeMagieMax ,"RAY_AjouteEtLitPointsDeMagieMax" ,"RAY_AddAndGetMagicPointsMax" ,"Func_AjouteEtLitPointsDeMagieMax" ,fn_p_stCode4PointsDeMagie , USE_CONSTANT_PARAM, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_EnleveEtLitPointsDeMagie ,"RAY_EnleveEtLitPointsDeMagie" ,"RAY_RemoveAndGetMagicPoints" ,"Func_EnleveEtLitPointsDeMagie" ,fn_p_stCode4PointsDeMagie , USE_CONSTANT_PARAM, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_EnleveEtLitPointsDeMagieMax ,"RAY_EnleveEtLitPointsDeMagieMax" ,"RAY_RemoveAndGetMagicPointsMax" ,"Func_EnleveEtLitPointsDeMagieMax" ,fn_p_stCode4PointsDeMagie , USE_CONSTANT_PARAM, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
/* Management of air points for Rayman */
|
||||
M_DEFINE_FUNCTION(eFunc_LitPointsDair ,"RAY_LitPointsDair" ,"RAY_GetAirPoints" ,"Func_LitPointsDair" ,fn_p_stCode4PointsDair , USE_NO_PARAM , USE_REAL_PARAM, NOT_ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_LitPointsDairMax ,"RAY_LitPointsDairMax" ,"RAY_GetAirPointsMax" ,"Func_LitPointsDairMax" ,fn_p_stCode4PointsDair , USE_NO_PARAM , USE_REAL_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_AjouteEtLitPointsDair ,"RAY_AjouteEtLitPointsDair" ,"RAY_AddAndGetAirPoints" ,"Func_AjouteEtLitPointsDair" ,fn_p_stCode4PointsDair , USE_REAL_PARAM , USE_REAL_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_AjouteEtLitPointsDairMax ,"RAY_AjouteEtLitPointsDairMax" ,"RAY_AddAndGetAirPointsMax" ,"Func_AjouteEtLitPointsDairMax" ,fn_p_stCode4PointsDair , USE_REAL_PARAM , USE_REAL_PARAM, NOT_ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_EnleveEtLitPointsDair ,"RAY_EnleveEtLitPointsDair" ,"RAY_RemoveAndGetAirPoints" ,"Func_EnleveEtLitPointsDair" ,fn_p_stCode4PointsDair , USE_REAL_PARAM , USE_REAL_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_EnleveEtLitPointsDairMax ,"RAY_EnleveEtLitPointsDairMax" ,"RAY_RemoveAndGetAirPointsMax" ,"Func_EnleveEtLitPointsDairMax" ,fn_p_stCode4PointsDair , USE_REAL_PARAM , USE_REAL_PARAM, NOT_ULTRA_ABLE )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
NU_M_DEFINE_FUNCTION(eFunc_PersoLePlusProche ,"ACT_PersoLePlusProche" ,"ACT_NearestActor" ,"Func_PersoLePlusProche" ,fn_p_stCode4PersoLePlusProche, USE_CONSTANT_PARAM , USE_PERSO_PARAM , ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_PersoLePlusProcheDansSecteurCourant ,"ACT_PersoLePlusProcheDansSecteurCourant" ,"ACT_NearestActorInCurrentSector" ,"Func_NearestActorInCurrentSector" ,fn_p_stGetNearestActorInCurrentSector, USE_CONSTANT_PARAM , USE_PERSO_PARAM , ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_NearerActorInFieldOfVision ,"ACT_PersoLePlusProcheDansChampsDeVision" ,"ACT_NearerActorInFieldOfVision" ,"Func_NearerActorInFieldOfVision" ,fn_p_stCode4PersoLePlusProche, USE_CONSTANT_PARAM , USE_PERSO_PARAM , ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetNbActivePerso ,"ACT_LitNbPersoActifs" ,"ACT_GetNbActivePerso" ,"Func_GetNbActivePerso" ,fn_p_stGetNbActivePerso,USE_NO_PARAM,USE_CONSTANT_PARAM,NOT_ULTRA_ABLE)
|
||||
M_DEFINE_FUNCTION(eFunc_CibleLaPlusProche ,"ACT_CibleLaPlusProche" ,"ACT_CibleLaPlusProche" ,"Func_CibleLaPlusProche" ,fn_p_stCode4PersoLePlusProche, USE_4_CONSTANTS_PARAM USE_VECTOR_PARAM , USE_PERSO_PARAM , ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_CibleLaPlusProcheAvecAngles ,"ACT_CibleLaPlusProcheAvecAngles" ,"ACT_CibleLaPlusProcheAvecAngles" ,"Func_CibleLaPlusProcheavecAngles" ,fn_p_stCode4PersoLePlusProche, USE_4_CONSTANTS_PARAM USE_VECTOR_PARAM USE_REAL_PARAM USE_REAL_PARAM, USE_PERSO_PARAM , ULTRA_ABLE )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Graph function management */
|
||||
|
||||
/* To reach a graph before building a way (or to travel on a graph without building a way) */
|
||||
M_DEFINE_FUNCTION(eFunc_ReseauWPLePlusProche ,"Reseau_WPLePlusProche", "NETWORK_CloserWPn" ,"Func_ReseauWPnLePlusProche" ,fn_p_stCloserWPInGraph, USE_GRAPH_PARAM USE_CONSTANT_PARAM, USE_WAYPOINT_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_NetworkCloserWPOfType ,"Reseau_WPDeTelTypeLePlusProche", "NETWORK_CloserWPOfType" ,"Func_NetworkCloserWPOfType" ,fn_p_stCloserWPInGraph, USE_GRAPH_PARAM USE_CONSTANT_PARAM USE_CAPS_PARAM USE_WAYPOINT_PARAM USE_WAYPOINT_PARAM, USE_WAYPOINT_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_ReseauWPLePlusDansLAxe ,"Reseau_WPLePlusDansLAxe", "NETWORK_CloserWPnInAxis" ,"Func_ReseauWPnLePlusDansLAxe" ,fn_p_stCloserWPInGraph, USE_GRAPH_PARAM USE_CONSTANT_PARAM USE_VECTOR_PARAM, USE_WAYPOINT_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_ReseauWPLePlusDansLAxe2 ,"Reseau_WPDeTelTypeLePlusDansLAxe", "NETWORK_CloserWPnInAxis2" ,"Func_ReseauWPnLePlusDansLAxe2" ,fn_p_stCloserWPInGraph, USE_GRAPH_PARAM USE_CONSTANT_PARAM USE_CAPS_PARAM USE_WAYPOINT_PARAM USE_WAYPOINT_PARAM USE_VECTOR_PARAM, USE_WAYPOINT_PARAM, ULTRA_ABLE )
|
||||
|
||||
/* To travel on a graph without building a way */
|
||||
M_DEFINE_FUNCTION(eFunc_NetworkNextWPWithCapa, "Reseau_ProchainWPJoignableAvecCapacite", "NETWORK_NextWPWithCapa", "eFunc_NetworkNextWPWithCapa" ,fn_p_stTravelOnAGraph, USE_GRAPH_PARAM USE_WAYPOINT_PARAM USE_CAPS_PARAM, USE_WAYPOINT_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_NetworkAffectTypeOfConnectedWP, "Reseau_ChangeTypeDesWPJoignables", "NETWORK_AffectTypeOfConnectedWP", "Func_NetworkAffectTypeOfConnectedWP" ,fn_p_stTravelOnAGraph, USE_GRAPH_PARAM USE_CAPS_PARAM USE_WAYPOINT_PARAM USE_CONSTANT_PARAM, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_NetworkAffectTypeOfConnectedWPWithCapa, "Reseau_ChangeTypeDesWPJoignablesAvecCapacite", "NETWORK_AffectTypeOfConnectedWP2", "Func_NetworkAffectTypeOfConnectedWP2",fn_p_stTravelOnAGraph, USE_GRAPH_PARAM USE_CAPS_PARAM USE_WAYPOINT_PARAM USE_CAPS_PARAM USE_CONSTANT_PARAM, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
|
||||
/* To build a way from a graph */
|
||||
M_DEFINE_FUNCTION(eFunc_ReseauCheminLePlusCourt, "Reseau_CheminLePlusCourt", "NETWORK_ShorterWay", "Func_ReseauCheminLePlusCourt" ,fn_p_stGraphToWayFunction, USE_GRAPH_PARAM USE_WAYPOINT_PARAM USE_WAYPOINT_PARAM, USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_NetworkBuildOrderedPath, "Reseau_ConstruitCheminOrdonne", "NETWORK_BuildOrderedPath", "Func_NetworkBuildOrderedPath" ,fn_p_stGraphToWayFunction, USE_GRAPH_PARAM USE_WAYPOINT_PARAM, USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_NetworkBuildOrderedPathCircular, "Reseau_ConstruitCheminCirculaireOrdonne", "NETWORK_BuildOrderedPathCircular", "Func_NetworkBuildOrderedPathCircular" ,fn_p_stGraphToWayFunction, USE_GRAPH_PARAM USE_WAYPOINT_PARAM, USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_NetworkAllocateGraphToMSWay, "Reseau_AffecteGraphAChemin", "NETWORK_AllocateGraphToMSWay", "Func_NetworkAllocateGraphToMSWay" ,fn_p_stGraphToWayFunction, USE_GRAPH_PARAM, USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_NetworkAllocateGraphToMSWayCircular, "Reseau_AffecteGraphACheminCirculaire", "NETWORK_AllocateGraphToMSWay", "Func_NetworkAllocateGraphToMSWayCircular" ,fn_p_stGraphToWayFunction, USE_GRAPH_PARAM, USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
|
||||
/* To travel on the way built (no graph in parameter, bicose everything is tested with the MsWay) */
|
||||
M_DEFINE_FUNCTION(eFunc_ReseauLitIndexCourant, "Reseau_LitIndexCourant", "NETWORK_GetCurrentIndex", "Func_ReseauLitIndexCourant" ,fn_p_stWayFunction, USE_NO_PARAM, USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_ReseauForceIndexCourant, "Reseau_ForceIndexCourant", "NETWORK_SetCurrentIndex", "Func_ReseauForceIndexCourant" ,fn_p_stWayFunction, USE_CONSTANT_PARAM, USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_ReseauLitPremierIndex, "Reseau_LitPremierIndex", "NETWORK_GetFirstIndex", "Func_ReseauLitPremierIndex" ,fn_p_stWayFunction, USE_NO_PARAM, USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_ReseauLitDernierIndex, "Reseau_LitDernierIndex", "NETWORK_GetLastIndex", "Func_ReseauLitDernierIndex" ,fn_p_stWayFunction, USE_NO_PARAM, USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_ReseauIncrementIndex, "Reseau_IncrementIndex", "NETWORK_IncrementIndex", "Func_ReseauIncrementIndex" ,fn_p_stWayFunction, USE_CONSTANT_PARAM, USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_ReseauDecrementIndex, "Reseau_DecrementIndex", "NETWORK_DecrementIndex", "Func_ReseauDecrementIndex" ,fn_p_stWayFunction, USE_CONSTANT_PARAM, USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_ReseauLitWPAIndex, "Reseau_LitWPAIndex", "NETWORK_GetWPAIndex", "Func_ReseauLitWPAIndex" ,fn_p_stWayFunction, USE_CONSTANT_PARAM, USE_WAYPOINT_PARAM, ULTRA_ABLE )
|
||||
|
||||
M_DEFINE_FUNCTION(eFunc_ReseauLitCapaciteLiaisonAIndex, "Reseau_LitCapaciteLiaisonAIndex", "NETWORK_GetLinkCapacityToIndex", "Func_ReseauLitCapaciteLiaisonAIndex" ,fn_p_stWayFunction, USE_CONSTANT_PARAM, USE_CAPS_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_ReseauChangeCapaciteLiaisonAIndex, "Reseau_ChangeCapaciteLiaisonAIndex", "NETWORK_ChangeLinkCapacityToIndex", "Func_ReseauChangeCapaciteLiaisonAIndex" ,fn_p_stWayFunction, USE_CONSTANT_PARAM USE_CAPS_PARAM USE_CONSTANT_PARAM, USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_ReseauLitPoidsLiaisonAIndex, "Reseau_LitPoidsLiaisonAIndex", "NETWORK_GetLinkWeightToIndex", "Func_ReseauLitPoidsLiaisonAIndex" ,fn_p_stWayFunction, USE_CONSTANT_PARAM, USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_ReseauChangePoidsLiaisonAIndex, "Reseau_ChangePoidsLiaisonAIndex", "NETWORK_ChangeLinkWeightToIndex", "Func_ReseauChangePoidsLiaisonAIndex" ,fn_p_stWayFunction, USE_CONSTANT_PARAM USE_CONSTANT_PARAM, USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
|
||||
M_DEFINE_FUNCTION(eFunc_NetworkGetIndexOfWPInMSWay, "Reseau_ChercheIndiceDuWP", "NETWORK_GetIndexOfWPInMSWay", "Func_NetworkGetIndexOfWPInMSWay" ,fn_p_stWayFunction, USE_WAYPOINT_PARAM, USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_NetworkForceWPToCurrent, "Reseau_ForceWPCourant", "NETWORK_ForceWPToCurrent", "Func_NetworkForceWPToCurrent" ,fn_p_stWayFunction, USE_WAYPOINT_PARAM, USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
|
||||
NU_M_DEFINE_FUNCTION(eFunc_NetworkTestTheEnds, "Reseau_TestExtremities", "NETWORK_TestExtremite", "Func_ReseauTestExtremite" ,fn_p_stGetSituationOnRail, USE_REAL_PARAM, USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
|
||||
|
||||
/* miscellaneous */
|
||||
M_DEFINE_FUNCTION(eFunc_ReseauLitCapaciteLiaisonDansGraph, "Reseau_LitCapaciteLiaisonDansGraph", "NETWORK_GetLinkCapInGraph", "Func_ReseauLitCapaciteLiaisonDansGraph" ,fn_p_stGraphFunction, USE_GRAPH_PARAM USE_WAYPOINT_PARAM USE_WAYPOINT_PARAM, USE_CAPS_PARAM, NOT_ULTRA_ABLE )
|
||||
M_DEFINE_FUNCTION(eFunc_ReseauChangeCapaciteLiaisonDansGraph, "Reseau_ChangeCapaciteLiaisonDansGraph", "NETWORK_SetLinkCapInGraph", "Func_ReseauChangeCapaciteLiaisonDansGraph" ,fn_p_stGraphFunction, USE_GRAPH_PARAM USE_WAYPOINT_PARAM USE_WAYPOINT_PARAM USE_CAPS_PARAM USE_CONSTANT_PARAM, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_ReseauLitPoidsLiaisonDansGraph, "Reseau_LitPoidsLiaisonDansGraph", "NETWORK_GetLinkWeightInGraph", "Func_ReseauLitPoidsLiaisonDansGraph" ,fn_p_stGraphFunction, USE_GRAPH_PARAM USE_WAYPOINT_PARAM USE_WAYPOINT_PARAM, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_ReseauChangePoidsLiaisonDansGraph, "Reseau_ChangePoidsLiaisonDansGraph", "NETWORK_SetLinkWeightInGraph", "Func_ReseauChangePoidsLiaisonDansGraph" ,fn_p_stGraphFunction, USE_GRAPH_PARAM USE_WAYPOINT_PARAM USE_WAYPOINT_PARAM USE_CONSTANT_PARAM, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
|
||||
M_DEFINE_FUNCTION(eFunc_NetworkGetTypeOfWP, "Reseau_LitTypeDuWP", "NETWORK_GetTypeOfWP", "Func_NetworkGetTypeOfWP" ,fn_p_stMiscFuncOnTypeOfWP, USE_GRAPH_PARAM USE_WAYPOINT_PARAM, USE_CAPS_PARAM, NOT_ULTRA_ABLE )
|
||||
/* Capability functions */
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetCapabilities, "Caps_LitCapacites", "CAPS_GetCapabilities", "Func_CapsGetCapabilities" ,fn_p_stPersoCapabilityFunction, USE_NO_PARAM, USE_CAPS_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_FUNCTION(eFunc_CapabilityAtBitNumber, "Caps_CapaciteAuBitNumero", "CAPS_CapabilityAtBitNumber", "Func_CapabilityAtBitNumber" ,fn_p_stCapabilityFunction, USE_CONSTANT_PARAM, USE_CAPS_PARAM, NOT_ULTRA_ABLE )
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_FUNCTION(eFunc_GetScrollSpeed , "MAT_VitesseTexture" ,"MAT_GetScrollSpeed", "Func_GetScrollSpeed" ,fn_p_stGetScrollSpeed,USE_CONSTANT_PARAM,USE_VECTOR_PARAM,NOT_ULTRA_ABLE)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_FUNCTION(eFunc_GetNbFrame , "ANI_LitNbFrame" ,"MAT_GetNbFrame", "Func_GetNbFrame" ,fn_p_stGetNbFrame,USE_NO_PARAM,USE_CONSTANT_PARAM,ULTRA_ABLE)
|
||||
//M_DEFINE_FUNCTION(eFunc_GetCurrentFrame , "ANI_LitFramecourante" ,"ANI_LitFramecourante", "Func_GetFramecourante" ,fn_p_stGetNbFrame,USE_NO_PARAM,USE_CONSTANT_PARAM,ULTRA_ABLE)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_FUNCTION(eFunc_DotProduct , "VEC_ProduitScalaire" ,"VEC_DotProduct", "Func_DotProduct" ,fn_p_stDotProduct,USE_VECTOR_PARAM USE_VECTOR_PARAM,USE_REAL_PARAM,NOT_ULTRA_ABLE)
|
||||
M_DEFINE_FUNCTION(eFunc_CrossProduct , "VEC_ProduitVectoriel" ,"VEC_CrossProduct", "Func_CrossProduct" ,fn_p_stVectorOperations,USE_VECTOR_PARAM USE_VECTOR_PARAM,USE_VECTOR_PARAM,NOT_ULTRA_ABLE)
|
||||
M_DEFINE_FUNCTION(eFunc_Normalize , "VEC_Normer" ,"VEC_Normalize", "Func_Normalize" ,fn_p_stVectorOperations,USE_VECTOR_PARAM,USE_VECTOR_PARAM,NOT_ULTRA_ABLE)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetSPOCoordinates , "SPO_LitCoordonnees" ,"SPO_GetSPOCoordinates", "Func_GetSPOCoordinates" ,fn_p_stGetSPOCoordinates,USE_SUPEROBJECT_PARAM,USE_VECTOR_PARAM,NOT_ULTRA_ABLE)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_FUNCTION(eFunc_GetTractionFactor , "ACT_LitFacteurDeTraction" ,"ACT_GetTractionFactor", "Func_ACTGetTractionFactor" ,fn_p_stTractionFactorFunction, USE_NO_PARAM, USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_FUNCTION(eFunc_GetCenterZDEType , "ZON_LitCentreZDEType" ,"ZON_GetCenterZDEType", "Func_GetCenterZDEType" ,fn_p_stGetZDxCenter,USE_PERSO_MASK_PARAM,USE_VECTOR_PARAM,NOT_ULTRA_ABLE)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetCenterZDMType , "ZON_LitCentreZDMType" ,"ZON_GetCenterZDMType", "Func_GetCenterZDMType" ,fn_p_stGetZDxCenter,USE_PERSO_MASK_PARAM,USE_VECTOR_PARAM,NOT_ULTRA_ABLE)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetCenterZDRType , "ZON_LitCentreZDRType" ,"ZON_GetCenterZDRType", "Func_GetCenterZDRType" ,fn_p_stGetZDxCenter,USE_PERSO_MASK_PARAM,USE_VECTOR_PARAM,NOT_ULTRA_ABLE)
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetCenterZDDType , "ZON_LitCentreZDDType" ,"ZON_GetCenterZDDType", "Func_GetCenterZDDType" ,fn_p_stGetZDxCenter,USE_PERSO_MASK_PARAM,USE_VECTOR_PARAM,NOT_ULTRA_ABLE)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_FUNCTION(eFunc_TextAffiche , "TEXT_Affiche" ,"TEXT_DisplayText", "Func_TextAffiche" ,fn_p_stCode4TextAffiche, USE_ADDR_PERSO_PARAM USE_ALWAYS_PARAM USE_VECTOR_PARAM USE_STRING_PARAM USE_ADDR_LONG_PARAM, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
NU_M_DEFINE_FUNCTION(eFunc_GetCPUCounter , "DEBUG_LitCompteurCPU" ,"DEBUG_GetCPUCounter", "Func_GetCPUCounter" ,fn_p_stGetCPUCounter, USE_NO_PARAM, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
120
Rayman_X/cpa/public/AI/AIGame/ProcRay2.h
Normal file
120
Rayman_X/cpa/public/AI/AIGame/ProcRay2.h
Normal file
@@ -0,0 +1,120 @@
|
||||
/************************************************************************************************
|
||||
* Name: ProcRay2.h *
|
||||
* Use : Macro Definition of procedures for AI of Rayman II *
|
||||
* Author: Christophe Giraud *
|
||||
* (c) UBI Simulations Annecy *
|
||||
************************************************************************************************/
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Magic points management */
|
||||
NU_M_DEFINE_PROCEDURE(eProc_FixePointsDeMagie ,"RAY_FixePointsDeMagie" ,"RAY_SetMagicPoints" ,"Proc_FixePointsDeMagie" ,fn_p_stCode4MagicPointsProcedures, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_FixePointsDeMagieMax ,"RAY_FixePointsDeMagieMax" ,"RAY_SetMagicPointsMax" ,"Proc_FixePointsDeMagieMax" ,fn_p_stCode4MagicPointsProcedures, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_InitPointsDeMagie ,"RAY_InitPointsDeMagie" ,"RAY_InitMagicPoints" ,"Proc_InitPointsDeMagie" ,fn_p_stCode4MagicPointsProcedures, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_InitPointsDeMagieMax ,"RAY_InitPointsDeMagieMax" ,"RAY_InitMagicPointsMax" ,"Proc_InitPointsDeMagieMax" ,fn_p_stCode4MagicPointsProcedures, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_AjoutePointsDeMagie ,"RAY_AjoutePointsDeMagie" ,"RAY_AddMagicPoints" ,"Proc_AddMagicPoints" ,fn_p_stCode4MagicPointsProcedures, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_AjoutePointsDeMagieMax ,"RAY_AjoutePointsDeMagieMax" ,"RAY_AddMagicPointsMax" ,"Proc_AddMagicPointsMax" ,fn_p_stCode4MagicPointsProcedures, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_EnlevePointsDeMagie ,"RAY_EnlevePointsDeMagie" ,"RAY_SubMagicPoints" ,"Proc_SubMagicPoints" ,fn_p_stCode4MagicPointsProcedures, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_EnlevePointsDeMagieMax ,"RAY_EnlevePointsDeMagieMax" ,"RAY_SubMagicPointsMax" ,"Proc_SubMagicPointsMax" ,fn_p_stCode4MagicPointsProcedures, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
/* Air points management */
|
||||
M_DEFINE_PROCEDURE(eProc_FixePointsDair ,"RAY_FixePointsDair" ,"RAY_SetAirPoints" ,"Proc_FixePointsDair" ,fn_p_stCode4AirPointsProcedures, USE_REAL_PARAM, NOT_ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_FixePointsDairMax ,"RAY_FixePointsDairMax" ,"RAY_SetAirPointsMax" ,"Proc_FixePointsDairMax" ,fn_p_stCode4AirPointsProcedures, USE_REAL_PARAM, NOT_ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_InitPointsDair ,"RAY_InitPointsDair" ,"RAY_InitAirPoints" ,"Proc_InitPointsDair" ,fn_p_stCode4AirPointsProcedures, USE_REAL_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_InitPointsDairMax ,"RAY_InitPointsDairMax" ,"RAY_InitAirPointsMax" ,"Proc_InitPointsDairMax" ,fn_p_stCode4AirPointsProcedures, USE_REAL_PARAM, NOT_ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_AjoutePointsDair ,"RAY_AjoutePointsDair" ,"RAY_AddAirPoints" ,"Proc_AddAirPoints" ,fn_p_stCode4AirPointsProcedures, USE_REAL_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_AjoutePointsDairMax ,"RAY_AjoutePointsDairMax" ,"RAY_AddAirPointsMax" ,"Proc_AddAirPointsMax" ,fn_p_stCode4AirPointsProcedures, USE_REAL_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_EnlevePointsDair ,"RAY_EnlevePointsDair" ,"RAY_SubAirPoints" ,"Proc_SubAirPoints" ,fn_p_stCode4AirPointsProcedures, USE_REAL_PARAM, NOT_ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_EnlevePointsDairMax ,"RAY_EnlevePointsDairMax" ,"RAY_SubAirPointsMax" ,"Proc_SubAirPointsMax" ,fn_p_stCode4AirPointsProcedures, USE_REAL_PARAM, NOT_ULTRA_ABLE )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
NU_M_DEFINE_PROCEDURE(eProc_FixePositionFade ,"FAD_FixePositionFade" ,"FAD_FixePositionFade" ,"Proc_FixePositionFade" ,fn_p_stFixePositionFade, USE_SUPEROBJECT_PARAM USE_CONSTANT_PARAM USE_CONSTANT_PARAM USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_FixeLumierePersoLocal ,"LUM_FixeLumierePersoLocal" ,"LIGHT_SetLocalPersoLight" ,"Proc_SetLocalPersoLight" ,fn_p_stSetLocalLight,USE_PERSO_PARAM USE_BOOLEAN_PARAM USE_BOOLEAN_PARAM,NOT_ULTRA_ABLE)
|
||||
M_DEFINE_PROCEDURE(eProc_FixeLumiereStaticOnOff ,"LUM_FixeLumiereStaticOnOff" ,"LIGHT_SetStaticLightOnOff" ,"Proc_SetStaticLightOnOff" ,fn_p_stSetLight,USE_LIGHT_PARAM USE_BOOLEAN_PARAM,NOT_ULTRA_ABLE)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_FixeLumiereStaticNearFar,"LUM_FixeLumiereStaticNearFar" ,"LIGHT_SetStaticLightNearFar" ,"Proc_SetStaticLightNearFar" ,fn_p_stSetLight,USE_LIGHT_PARAM USE_2_REALS_PARAM,NOT_ULTRA_ABLE)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_FixeLumiereStaticColor ,"LUM_FixeLumiereStaticCouleur" ,"LIGHT_SetStaticLightColor" ,"Proc_SetStaticLightColor" ,fn_p_stSetLight,USE_LIGHT_PARAM USE_4_REALS_PARAM,NOT_ULTRA_ABLE)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_CalculeLumiereEffet ,"LUM_CalculeLumiereEffet" ,"LIGHT_ComputeLightEffect" ,"Proc_ComputeLightEffect" ,fn_p_stSetLight,USE_NO_PARAM,NOT_ULTRA_ABLE)
|
||||
/* Blend RLI */
|
||||
M_DEFINE_PROCEDURE(eProc_NoRLI ,"LUM_RLIDesactive" ,"LIGHT_RLIPasDeRLI" ,"Proc_RLIPasDeRLI" ,fn_p_stRLIProcedure, USE_NO_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_FixeRLI ,"LUM_RLIFixe" ,"LIGHT_RLIFixe" ,"Proc_RLIFixe" ,fn_p_stRLIProcedure, USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_BlendRLI ,"LUM_RLIBlend" ,"LIGHT_RLIBlend" ,"Proc_RLIBlend" ,fn_p_stRLIProcedure, USE_CONSTANT_PARAM USE_CONSTANT_PARAM USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
/* Type Of WP */
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeTypeOfWP ,"Reseau_ChangeTypeDuWP" ,"NETWORK_ChangeWPType" ,"Proc_ChangeTypeOfWP" ,fn_p_stMiscProcOnTypeOfWP, USE_GRAPH_PARAM USE_WAYPOINT_PARAM USE_CAPS_PARAM USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
/* Capability procedures */
|
||||
M_DEFINE_PROCEDURE(eProc_SetCapabilities ,"Caps_FixeCapacites" ,"CAPS_SetCapabilities" ,"Proc_CAPSSetCapabilities" ,fn_p_stCapabilityProcedure, USE_CAPS_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_AddCapabilities ,"Caps_AjouteCapacites" ,"CAPS_AddCapabilities" ,"Proc_CAPSAddCapabilities" ,fn_p_stCapabilityProcedure, USE_CAPS_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SubCapabilities ,"Caps_EnleveCapacites" ,"CAPS_SubCapabilities" ,"Proc_CAPSSubCapabilities" ,fn_p_stCapabilityProcedure, USE_CAPS_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ChangeCapabilities ,"Caps_ChangeCapacites" ,"CAPS_ChangeCapabilities" ,"Proc_CAPSChangeCapabilities" ,fn_p_stCapabilityProcedure, USE_CAPS_PARAM USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
/* Reinit Graph */
|
||||
M_DEFINE_PROCEDURE(eProc_ReinitGraph ,"Reseau_ReinitGraph" ,"NETWORK_ReinitGraph" ,"Proc_ReinitGraph" ,fn_p_stReinitGraphProcedure, USE_GRAPH_PARAM, NOT_ULTRA_ABLE )
|
||||
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
NU_M_DEFINE_PROCEDURE(eProc_FixeVitesseTexture ,"MAT_FixeVitesseTexture" ,"MAT_SetScrollSpeed" ,"Proc_SetScrollSpeed" ,fn_p_stSetScrollSpeed, USE_GMT_PARAM USE_2_REALS_PARAM, NOT_ULTRA_ABLE)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ScrollingOnOff ,"MAT_ScrollingOnOff" ,"MAT_SetScrollOnOff" ,"Proc_SetScrollOnOff" ,fn_p_stSetScrollSpeed, USE_GMT_PARAM USE_BOOLEAN_PARAM, NOT_ULTRA_ABLE)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_FixeDecalageTexture ,"MAT_FixeDecalageTexture" ,"MAT_SetTextureOffset" ,"Proc_SetTextureOffset" ,fn_p_stSetScrollSpeed, USE_GMT_PARAM USE_2_REALS_PARAM, NOT_ULTRA_ABLE)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_ScrollingPause ,"MAT_ScrollingPause" ,"MAT_SetScrollPause" ,"Proc_SetScrollPause" ,fn_p_stSetScrollSpeed, USE_GMT_PARAM USE_BOOLEAN_PARAM, NOT_ULTRA_ABLE)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeCurrFrame ,"ANI_ChangeFrameCourante" ,"ANI_ChangeCurrFrame" ,"Proc_ChangeCurrFrame" ,fn_p_stManageFrame,USE_CONSTANT_PARAM,ULTRA_ABLE)
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeRandomFrame ,"ANI_ChangeFrameAleatoire" ,"ANI_ChangeRandomFrame" ,"Proc_ChangeRandomFrame" ,fn_p_stManageFrame,USE_NO_PARAM,ULTRA_ABLE)
|
||||
M_DEFINE_PROCEDURE(eProc_FreezeAnim ,"ANI_GelerPerso" ,"ANI_FreezeAnim" ,"Proc_FreezeAnim" ,fn_p_stFreezeAnim,USE_NO_PARAM,ULTRA_ABLE)
|
||||
M_DEFINE_PROCEDURE(eProc_UnFreezeAnim ,"ANI_DegelerPerso" ,"ANI_UnFreezeAnim" ,"Proc_UnFreezeAnim" ,fn_p_stFreezeAnim,USE_NO_PARAM,ULTRA_ABLE)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_SetSuperimposed ,"SPO_SetSuperimposed" ,"SPO_SetSuperimposed" ,"Proc_SetSuperimposed" ,fn_p_stSPOSuperimpoed, USE_CONSTANT_PARAM USE_CONSTANT_PARAM USE_CONSTANT_PARAM , ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_SetSuperimposed2 ,"SPO_SetSuperimposed2" ,"SPO_SetSuperimposed2" ,"Proc_SetSuperimposed2" ,fn_p_stSPOSuperimpoed, USE_REAL_PARAM USE_REAL_PARAM USE_REAL_PARAM , ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_ReleaseSuperimposed ,"SPO_ReleaseSuperimposed" ,"SPO_ReleaseSuperimposed" ,"Proc_ReleaseSuperimposed" ,fn_p_stSPOSuperimpoed, USE_NO_PARAM, ULTRA_ABLE )
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetSPOCoordinates ,"SPO_FixeCoordonnees" ,"SPO_SetCoordinates" ,"Proc_SetCoordinates" ,fn_p_stSetSPOCoordinates,USE_SUPEROBJECT_PARAM USE_VECTOR_PARAM,NOT_ULTRA_ABLE)
|
||||
M_DEFINE_PROCEDURE(eProc_SwitchSuperimposedTab ,"SPO_SwitchSuperimposedTab" ,"SPO_SwitchSuperimposedTab" ,"Proc_SwitchSuperimposedTab" ,fn_p_stSPOSuperimpoed, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_SetTractionFactor ,"ACT_FixeFacteurDeTraction" ,"ACT_SetTractionFactor" ,"Proc_ACTsetTractionFactor" ,fn_p_stTractionFactorProcedure, USE_CONSTANT_PARAM, ULTRA_ABLE )
|
||||
M_DEFINE_PROCEDURE(eProc_TurnToPositionAngle ,"ACT_OrienteVersPositionAngle" ,"ACT_TurnToPositionAngle" ,"Proc_TurnToPositionAngle" ,fn_p_stTurnToPosition,USE_VECTOR_PARAM USE_REAL_PARAM,ULTRA_ABLE)
|
||||
M_DEFINE_PROCEDURE(eProc_TurnToPositionSpeed ,"ACT_OrienteVersPositionVitesse" ,"ACT_TurnToPositionSpeed" ,"Proc_TurnToPositionSpeed" ,fn_p_stTurnToPosition,USE_VECTOR_PARAM USE_REAL_PARAM,ULTRA_ABLE)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SortArray ,"TAB_Trie" ,"ARRAY_Sort" ,"Proc_TABSortArray" ,fn_p_stSortArray,USE_ADDR_ARRAY_PARAM USE_2_CONSTANTS_PARAM, NOT_ULTRA_ABLE )
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_ActiveJoystickAnal ,"Option_ActiveJoystickAnalogique" ,"OPTION_ActiveJoystickAnal" ,"Proc_ActiveJoystickAnal" ,fn_p_stActiveJoystickAnal,USE_NO_PARAM,NOT_ULTRA_ABLE)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_UnActiveJoystickAnal ,"Option_DesactiveJoystickAnalogique","OPTION_UnActiveJoystickAnal" ,"Proc_UnActiveJoystickAnal" ,fn_p_stActiveJoystickAnal,USE_NO_PARAM,NOT_ULTRA_ABLE)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_SetZDMSizeSphere ,"ZON_FixeTailleZDMSphere" ,"ZON_SetZDMSizeSphere" ,"Proc_SetZDMSizeSphere" ,fn_p_stSetZDxSize,USE_ZDM_PERSO_PARAM USE_REAL_PARAM,ULTRA_ABLE)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetZDDSizeCone ,"ZON_FixeTailleZDDCone" ,"ZON_SetZDDSizeCone" ,"Proc_SetZDDSizeCone" ,fn_p_stSetZDxSize,USE_ZDD_PERSO_PARAM USE_2_REALS_PARAM,ULTRA_ABLE)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_SetSoundVolumeAnim ,"SON_FixeAnimVolume" ,"SOUND_SetVolumeAnim" ,"Proc_SetVolumeAnim" ,fn_p_stSetSoundVolume,USE_CONSTANT_PARAM,ULTRA_ABLE)
|
||||
M_DEFINE_PROCEDURE(eProc_SetSoundVolumeMusic ,"SON_FixeMusicVolume" ,"SOUND_SetVolumeMusic" ,"Proc_SetVolumeMusic" ,fn_p_stSetSoundVolume,USE_CONSTANT_PARAM,NOT_ULTRA_ABLE)
|
||||
M_DEFINE_PROCEDURE(eProc_SetSoundVolumeAmbiance ,"SON_FixeAmbianceVolume" ,"SOUND_SetVolumeAmbiance" ,"Proc_SetVolumeAmbiance" ,fn_p_stSetSoundVolume,USE_CONSTANT_PARAM,NOT_ULTRA_ABLE)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetDopplerEffect ,"SON_ChangeEffetDoppler" ,"SOUND_SetDopplerEffect" ,"Proc_SetDopplerEffect" ,fn_p_stSetDopplerEffect,USE_REAL_PARAM,NOT_ULTRA_ABLE)
|
||||
M_DEFINE_PROCEDURE(eProc_PauseSound ,"SON_Pause" ,"SOUND_PauseSound" ,"Proc_PauseSound" ,fn_p_stPauseSound,USE_NO_PARAM,NOT_ULTRA_ABLE)
|
||||
M_DEFINE_PROCEDURE(eProc_ResumeSound ,"SON_Reprendre" ,"SOUND_ResumeSound" ,"Proc_ResumeSound" ,fn_p_stPauseSound,USE_NO_PARAM,NOT_ULTRA_ABLE)
|
||||
M_DEFINE_PROCEDURE(eProc_StopMenuSound ,"SON_ArretSonMenu" ,"SOUND_StopMenuSound" ,"Proc_StopMenuSound" ,fn_p_stPauseSound,USE_NO_PARAM,NOT_ULTRA_ABLE)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeCaractere ,"TEXT_ChangeCaractere" ,"TEXT_ChangeCharactere" ,"Proc_ChangeCaractere" ,fn_p_stCode4ChangeCaractere, USE_ALWAYS_PARAM USE_STRING_PARAM USE_CONSTANT_PARAM USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_FormateTexte ,"TEXT_FormateTexte" ,"TEXT_FormatText" ,"Proc_FormateTexte" ,fn_p_stCode4FormateTexte , USE_STRING_PARAM USE_STRING_PARAM USE_STRING_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ValideNomDuSlot ,"MNU_ValideNomDuSlot" ,"MNU_ValidateSlotName" ,"Proc_ValideNomDuSlot" ,fn_p_stCode4ValideNomDuSlot, USE_CONSTANT_PARAM USE_STRING_PARAM USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_RestoreNomDuSlot ,"MNU_RestoreNomDuSlot" ,"MNU_RestoreSlotName" ,"Proc_RestoreNomDuSlot" ,fn_p_stCode4RestoreNomDuSlot, USE_CONSTANT_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ChangePersoSighting ,"ACT_ChangeViseePerso" ,"ACT_ChangeActorSighting" ,"Proc_ChangePersoSighting" ,fn_p_stChangePersoHorizSighting, USE_VECTOR_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_PlayDemo ,"DEM_JoueDemo" ,"DEM_PlayDemo" ,"Proc_PlayDemo" ,fn_p_stPlayDemo , USE_STRING_PARAM USE_STRING_PARAM USE_BOOLEAN_PARAM USE_STRING_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/* Specific PC IA procs*/
|
||||
#ifndef U64
|
||||
|
||||
M_DEFINE_PROCEDURE(eProc_InitKeyBoardDirections ,"PAD_InitKeyBoardDirections" ,"PAD_InitKeyBoardDirections" ,"PAD_InitKeyBoardDirections" ,fn_p_stInitKeyBoardDirections, USE_BUTTON_PARAM USE_BUTTON_PARAM USE_BUTTON_PARAM USE_BUTTON_PARAM USE_BUTTON_PARAM,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_PadSetCenterposition ,"PAD_SetCenterPosition" ,"PAD_SetCenterPosition" ,"PAD_SetCenterPosition" ,fn_p_stSetCenterPosition, USE_NO_PARAM, NOT_ULTRA_ABLE)
|
||||
M_DEFINE_PROCEDURE(eProc_PadSetMaximalValues ,"PAD_SetMaximalValues" ,"PAD_SetMaximalValues" ,"PAD_SetMaximalValues" ,fn_p_stSetMaximalValues, USE_NO_PARAM, NOT_ULTRA_ABLE)
|
||||
#else
|
||||
/*XB Groumpf !!!!!*/
|
||||
/*Add dummy entries because of CFast IA functions'call is index based !!!!*/
|
||||
|
||||
M_DEFINE_PROCEDURE(eProc_InitKeyBoardDirections ,"PAD_InitKeyBoardDirections" ,"PAD_InitKeyBoardDirections" ,"PAD_InitKeyBoardDirections" ,fn_p_stDummy, USE_BUTTON_PARAM USE_BUTTON_PARAM USE_BUTTON_PARAM USE_BUTTON_PARAM USE_BUTTON_PARAM,/**/ NOT_ULTRA_ABLE /**/ )
|
||||
M_DEFINE_PROCEDURE(eProc_PadSetCenterposition ,"PAD_SetCenterPosition" ,"PAD_SetCenterPosition" ,"PAD_SetCenterPosition" ,fn_p_stDummy, USE_NO_PARAM, NOT_ULTRA_ABLE)
|
||||
NU_M_DEFINE_PROCEDURE(eProc_PadSetMaximalValues ,"PAD_SetMaximalValues" ,"PAD_SetMaximalValues" ,"PAD_SetMaximalValues" ,fn_p_stDummy, USE_NO_PARAM, NOT_ULTRA_ABLE)
|
||||
/*End XB*/
|
||||
#endif
|
||||
/* End Specific PC IA procs*/
|
||||
|
||||
/* ANNECY MT - 22/10/98 {*/
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeTooFarLimit ,"ACT_FixeLimiteEloignement" ,"ACT_ChangeTooFarLimit" ,"Proc_ChangeTooFarLimit" ,fn_p_stSetTooFarLimit, USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_ChangeTransparencyZone ,"ACT_FixeZoneTransparence" ,"ACT_ChangeTransparencyZone" ,"Proc_ChangeTransparencyZone" ,fn_p_stSetTransparencyZone, USE_CONSTANT_PARAM USE_CONSTANT_PARAM, /**/ ULTRA_ABLE /**/)
|
||||
/* END ANNECY MT }*/
|
||||
|
||||
NU_M_DEFINE_PROCEDURE(eProc_SetBaseFrequenceForMenu ,"Effect_SetBaseFrequenceForMenu" ,"Effect_SetBaseFrequenceForMenu" ,"Proc_SetBaseFrequenceForMenu" ,fn_p_stBaseFrequenceForMenu, USE_REAL_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_SaveSinusContext ,"Effect_SaveSinusContext" ,"Effect_SaveSinusContext" ,"Proc_SaveSinusContext" ,fn_p_stSaveSinusEffectContext, USE_NO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
M_DEFINE_PROCEDURE(eProc_RestoreSinusContext ,"Effect_RestoreSinusContext" ,"Effect_RestoreSinusContext" ,"Proc_RestoreSinusContext" ,fn_p_stSaveSinusEffectContext, USE_NO_PARAM, /**/ NOT_ULTRA_ABLE /**/)
|
||||
/**********************************************************************************************************************************************************************************************************************************************************/
|
||||
M_DEFINE_PROCEDURE(eProc_TextSuperImposed, "TEXT_SuperImposed" ,"TEXT_SuperImposed", "Func_TextSuperImposed" ,fn_p_stTextSuperImposed, USE_CONSTANT_PARAM, NOT_ULTRA_ABLE )
|
11
Rayman_X/cpa/public/AI/AIGame/ProtAct.h
Normal file
11
Rayman_X/cpa/public/AI/AIGame/ProtAct.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#if !defined(__PROT_ACT_H__)
|
||||
#define __PROT_ACT_H__
|
||||
|
||||
/* MetaAction Prototypes*/
|
||||
#define M_DEFINE_METAACTION(a,b,english,c,dddd,eeee,f) \
|
||||
struct tdstNodeInterpret_ *##dddd(HIE_tdxHandleToSuperObject, struct tdstNodeInterpret_ *); \
|
||||
tducActionReturn eeee(HIE_tdxHandleToSuperObject);
|
||||
#include "DefAct.h"
|
||||
#undef M_DEFINE_METAACTION
|
||||
|
||||
#endif /* __PROT_ACT_H__*/
|
9
Rayman_X/cpa/public/AI/AIGame/ProtCond.h
Normal file
9
Rayman_X/cpa/public/AI/AIGame/ProtCond.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#if !defined(__PROT_COND_H__)
|
||||
#define __PROT_COND_H__
|
||||
|
||||
/* Condition prototypes*/
|
||||
#define M_DEFINE_CONDITION(a,b,english,c,dddd,e,f) struct tdstNodeInterpret_ *##dddd(HIE_tdxHandleToSuperObject, struct tdstNodeInterpret_ *, long *);
|
||||
#include "DefCond.h"
|
||||
#undef M_DEFINE_CONDITION
|
||||
|
||||
#endif /* __PROT_COND_H__*/
|
19
Rayman_X/cpa/public/AI/AIGame/ProtFild.h
Normal file
19
Rayman_X/cpa/public/AI/AIGame/ProtFild.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#if !defined(__PROT_FILD_H__)
|
||||
#define __PROT_FILD_H__
|
||||
|
||||
|
||||
/* Field Prototypes*/
|
||||
#define M_DEFINE_FIELD(a,b,english,c,d,eeee,ffff) \
|
||||
unsigned char eeee(HIE_tdxHandleToSuperObject, struct tdstGetSetParam_ *); \
|
||||
unsigned char ffff(HIE_tdxHandleToSuperObject, struct tdstGetSetParam_ *);
|
||||
#include "DefFild.h"
|
||||
#undef M_DEFINE_FIELD
|
||||
|
||||
/* Field Prototypes Type*/
|
||||
#define M_DEFINE_FIELD_TYPE(a,b,cccc,dddd) \
|
||||
void cccc(struct tdstGetSetParam_ *); \
|
||||
void dddd(struct tdstGetSetParam_ *);
|
||||
#include "FildType.h"
|
||||
#undef M_DEFINE_FIELD_TYPE
|
||||
|
||||
#endif /* __PROT_FILD_H__*/
|
9
Rayman_X/cpa/public/AI/AIGame/ProtFunc.h
Normal file
9
Rayman_X/cpa/public/AI/AIGame/ProtFunc.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#if !defined(__PROT_FUNC_H__)
|
||||
#define __PROT_FUNC_H__
|
||||
|
||||
/* Function prototypes*/
|
||||
#define M_DEFINE_FUNCTION(a,b,english,c,dddd,e,f,g) struct tdstNodeInterpret_ *##dddd(HIE_tdxHandleToSuperObject, struct tdstNodeInterpret_ *, struct tdstGetSetParam_ *);
|
||||
#include "DefFunc.h"
|
||||
#undef M_DEFINE_FUNCTION
|
||||
|
||||
#endif /* __PROT_FUNC__*/
|
9
Rayman_X/cpa/public/AI/AIGame/ProtKey.h
Normal file
9
Rayman_X/cpa/public/AI/AIGame/ProtKey.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#if !defined(__PROT_KEY_H__)
|
||||
#define __PROT_KEY_H__
|
||||
|
||||
/* KeyWord prototypes*/
|
||||
#define M_DEFINE_KEYWORD(a,b,english,c,dddd,e,f) struct tdstNodeInterpret_ *##dddd(HIE_tdxHandleToSuperObject, struct tdstNodeInterpret_ *, struct tdstGetSetParam_ *);
|
||||
#include "DefKey.h"
|
||||
#undef M_DEFINE_KEYWORD
|
||||
|
||||
#endif /* __PROT_KEY__*/
|
9
Rayman_X/cpa/public/AI/AIGame/ProtOper.h
Normal file
9
Rayman_X/cpa/public/AI/AIGame/ProtOper.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#if !defined(__PROT_OPER_H__)
|
||||
#define __PROT_OPER_H__
|
||||
|
||||
/* Operator Prototypes*/
|
||||
#define M_DEFINE_OPERATOR(a,b,c,dddd,e,f) struct tdstNodeInterpret_ *##dddd(HIE_tdxHandleToSuperObject, struct tdstNodeInterpret_ *, struct tdstGetSetParam_ *);
|
||||
#include "DefOper.h"
|
||||
#undef M_DEFINE_OPERATOR
|
||||
|
||||
#endif /* __PROT_KEY__*/
|
9
Rayman_X/cpa/public/AI/AIGame/ProtProc.h
Normal file
9
Rayman_X/cpa/public/AI/AIGame/ProtProc.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#if !defined(__PROT_PROC_H__)
|
||||
#define __PROT_PROC_H__
|
||||
|
||||
/* Procedure prototypes*/
|
||||
#define M_DEFINE_PROCEDURE(a,b,english,c,d,e,f) struct tdstNodeInterpret_ *##d(HIE_tdxHandleToSuperObject, struct tdstNodeInterpret_ *);
|
||||
#include "DefProc.h"
|
||||
#undef M_DEFINE_PROCEDURE
|
||||
|
||||
#endif /* __PROT_PROC__*/
|
11
Rayman_X/cpa/public/AI/AIGame/ProtVar.h
Normal file
11
Rayman_X/cpa/public/AI/AIGame/ProtVar.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#if !defined(__PROT_VAR_H__)
|
||||
#define __PROT_VAR_H__
|
||||
|
||||
/* DsgVar Get/Set Prototypes*/
|
||||
#define M_DEFINE_DSGVAR_TYPE(a,b,c,d,e,f,gggg,hhhh,i,j) \
|
||||
unsigned char gggg(void *,unsigned char,struct tdstGetSetParam_ *); \
|
||||
unsigned char hhhh(void *,unsigned char,struct tdstGetSetParam_ *);
|
||||
#include "DefVar.h"
|
||||
#undef M_DEFINE_DSGVAR_TYPE
|
||||
|
||||
#endif /* __PROT_VAR_H__*/
|
39
Rayman_X/cpa/public/AI/AIGame/TypePtr.h
Normal file
39
Rayman_X/cpa/public/AI/AIGame/TypePtr.h
Normal file
@@ -0,0 +1,39 @@
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* TypePtr.h : Definition of Function Pointers.*/
|
||||
/* author : Olivier Couvreur*/
|
||||
/* date : 25/06/1997*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#if !defined(__TYPEPTR_H__)
|
||||
#define __TYPEPTR_H__
|
||||
|
||||
#if defined(U64)
|
||||
#include "GSParam.h"
|
||||
#endif
|
||||
|
||||
/* pointers on Condition,,Operator,Procedure,Function,KeyWord function*/
|
||||
typedef struct tdstNodeInterpret_ *(*tdp_fn_p_stConditionFunctionPtr)(HIE_tdxHandleToSuperObject, struct tdstNodeInterpret_ *, long *);
|
||||
typedef struct tdstNodeInterpret_ *(*tdp_fn_p_stOperatorFunctionPtr)(HIE_tdxHandleToSuperObject, struct tdstNodeInterpret_ *, struct tdstGetSetParam_ *);
|
||||
typedef struct tdstNodeInterpret_ *(*tdp_fn_p_stProcedureFunctionPtr)(HIE_tdxHandleToSuperObject, struct tdstNodeInterpret_ *);
|
||||
typedef struct tdstNodeInterpret_ *(*tdp_fn_p_stFunctionFunctionPtr)(HIE_tdxHandleToSuperObject, struct tdstNodeInterpret_ *, struct tdstGetSetParam_ *);
|
||||
typedef struct tdstNodeInterpret_ *(*tdp_fn_p_stKeyWordFunctionPtr)(HIE_tdxHandleToSuperObject, struct tdstNodeInterpret_ *, struct tdstGetSetParam_ *);
|
||||
|
||||
/* pointer on Eval Node function*/
|
||||
typedef struct tdstNodeInterpret_ *(*tdp_fn_p_stEvalTypePtr)(HIE_tdxHandleToSuperObject, struct tdstNodeInterpret_ *, struct tdstGetSetParam_ *);
|
||||
|
||||
/* pointer on Get/Set function for Fields*/
|
||||
typedef unsigned char (*tdp_fn_cGetFunctionPtr)(HIE_tdxHandleToSuperObject, struct tdstGetSetParam_ *);
|
||||
typedef unsigned char (*tdp_fn_cSetFunctionPtr)(HIE_tdxHandleToSuperObject, struct tdstGetSetParam_ *);
|
||||
typedef void (*tdp_fn_vGetTypeFunctionPtr)(struct tdstGetSetParam_ *);
|
||||
typedef void (*tdp_fn_vSetTypeFunctionPtr)(struct tdstGetSetParam_ *);
|
||||
|
||||
/* pointer on Get/Set function for DsgVar*/
|
||||
typedef unsigned char (*tdp_fn_ucGetDsgVarFunctionPtr)(void *,unsigned char,struct tdstGetSetParam_ *);
|
||||
typedef unsigned char (*tdp_fn_ucSetDsgVarFunctionPtr)(void *,unsigned char,struct tdstGetSetParam_ *);
|
||||
|
||||
typedef unsigned char tducActionReturn;
|
||||
/* pointer on metaaction INIT function*/
|
||||
typedef struct tdstNodeInterpret_ *(*tdp_fn_p_stMetaActionInitFunctionPtr)(HIE_tdxHandleToSuperObject, struct tdstNodeInterpret_ *);
|
||||
/* pointer on metaaction NEXT function*/
|
||||
typedef tducActionReturn (*tdp_fn_ucMetaActionFunctionPtr)(HIE_tdxHandleToSuperObject p_SuperObjPerso);
|
||||
|
||||
#endif /* __TYPE_PTR_H__*/
|
41
Rayman_X/cpa/public/AI/AI_Edit.h
Normal file
41
Rayman_X/cpa/public/AI/AI_Edit.h
Normal file
@@ -0,0 +1,41 @@
|
||||
/*-----------------------------------------------------------------------------------------*/
|
||||
/* AI_Edit.h : This file must contains all necessary Intelligence Engine Header files */
|
||||
/* for Editor.*/
|
||||
/* author : Olivier Couvreur*/
|
||||
/* date : 14/02/1997*/
|
||||
/*-----------------------------------------------------------------------------------------*/
|
||||
|
||||
#if !defined(__AI_EDIT_H__)
|
||||
#define __AI_EDIT_H__
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
#include "Gam/ToolsCPA.h"
|
||||
#include "Gam.h"
|
||||
#include "AIBase/StrIntel.h" /* All allocations functions*/
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
|
||||
#include "AIBase/ReadRule.h" /* for C_..... defines*/
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
#include "AIBase/DsgMem.h" /* tables of DsgVar types*/
|
||||
#include "AIBase/Action.h" /* bof*/
|
||||
#include "AIBase/GetSet.h" /* bof*/
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
|
||||
#if defined(ACTIVE_EDITOR)
|
||||
#include "AIGame/Convert.h" /* type of parameters*/
|
||||
#include "AIGame/EnumAct.h" /* tables of action names*/
|
||||
#include "AIGame/EnumCond.h" /* tables of conditions names*/
|
||||
#include "AIGame/EnumKey.h" /* tables of keywords names*/
|
||||
#include "AIGame/EnumFunc.h" /* tables of functions names*/
|
||||
#include "AIGame/EnumOper.h" /* tables of operator*/
|
||||
#include "AIGame/EnumProc.h" /* tables of Procedure.*/
|
||||
#include "AIGame/EnumFild.h" /* tables of fields*/
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
|
||||
#include "AIBase/WPWayPt.h"
|
||||
|
||||
#endif /* __AI_EDIT_H__*/
|
||||
|
||||
|
||||
|
25
Rayman_X/cpa/public/AI/AI_Pub.h
Normal file
25
Rayman_X/cpa/public/AI/AI_Pub.h
Normal file
@@ -0,0 +1,25 @@
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* AI.h : This file contains all necessary Intelligence Engine Header files.*/
|
||||
/* author : Olivier Didelot.*/
|
||||
/* date : 24/01/1997*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#ifndef __AI_PUB_H__
|
||||
#define __AI_PUB_H__
|
||||
|
||||
#include "AIBase/Specif/AIOption.h" /* for Xavier*/
|
||||
|
||||
#define AI_FRIEND
|
||||
|
||||
#ifdef AI_FRIEND
|
||||
#include "AIBase/AI_Struc.h" /* private structure & access macros*/
|
||||
#include "AIBase/AI_Macro.h" /* to change function calls into macros*/
|
||||
#include "AIBase/AI_Handl.h" /* handle definition*/
|
||||
#include "AIBase/AI_Proto.h" /* complex functions*/
|
||||
#include "AIBase/CFast.h"
|
||||
#else
|
||||
#include "AIBase/AI_Handl.h" /* handle definition*/
|
||||
#include "AIBase/AI_Funct.h" /* accessors*/
|
||||
#include "AIBase/AI_Proto.h" /* complex functions*/
|
||||
#endif
|
||||
|
||||
#endif /* __AI_PUB_H__*/
|
226
Rayman_X/cpa/public/AI/Unused/WP_Edi.h
Normal file
226
Rayman_X/cpa/public/AI/Unused/WP_Edi.h
Normal file
@@ -0,0 +1,226 @@
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
HEADER FILE FOR :
|
||||
Prototype of waypoints, links and ways exported functions
|
||||
------------------------------------------------------------------------------------------
|
||||
File Name :
|
||||
WP_F_nc.h
|
||||
------------------------------------------------------------------------------------------
|
||||
Creation :
|
||||
* Date :
|
||||
March 14,1997
|
||||
* Author :
|
||||
Albert Pais
|
||||
------------------------------------------------------------------------------------------
|
||||
Contents :
|
||||
defines prototype and functions used for waypoints, links and
|
||||
ways
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
#if !defined(ONLY_TYPES)
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
WAYPOINT FUNCTIONS DECLARATION:
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
#ifdef _WP_D_DEFINE_WAYPOINTS_
|
||||
|
||||
#if !defined (__WP_WAYPOINTS_FUNCTIONS_PROTOS__)
|
||||
#define __WP_WAYPOINTS_FUNCTIONS_PROTOS__
|
||||
|
||||
/* creation function :*/
|
||||
WP_tdhWayPoint WP_fnh_WayPoint_Create(void);
|
||||
/* destruction */
|
||||
void WP_fnv_WayPoint_Destroy(WP_tdhWayPoint);
|
||||
/* add reference and release */
|
||||
void WP_fnv_WayPoint_AddRef(WP_tdhWayPoint);
|
||||
void WP_fnv_WayPoint_Release(WP_tdhWayPoint);
|
||||
|
||||
/* "constructor" : */
|
||||
WP_tdhWayPoint WP_fnh_WayPoint_Build(MTH3D_tdstVector*,MTH_tdxReal,HIE_tdxHandleToSuperObject);
|
||||
/* duplicate : */
|
||||
WP_tdhWayPoint WP_fnh_WayPoint_Duplicate(WP_tdhWayPoint);
|
||||
/* copy */
|
||||
void WP_fnv_WayPoint_Copy(WP_tdhWayPoint,WP_tdhWayPoint);
|
||||
/* sizeof */
|
||||
unsigned short WP_fnuw_WayPoint_SizeOf(void);
|
||||
/* accessing to members :*/
|
||||
void WP_fnv_WayPoint_GetVertex(WP_tdhWayPoint,MTH3D_tdstVector*);
|
||||
void WP_fnv_WayPoint_SetVertex(WP_tdhWayPoint,MTH3D_tdstVector*);
|
||||
|
||||
MTH_tdxReal WP_fnx_WayPoint_GetRadius(WP_tdhWayPoint);
|
||||
void WP_fnv_WayPoint_SetRadius(WP_tdhWayPoint,MTH_tdxReal);
|
||||
|
||||
HIE_tdxHandleToSuperObject WP_fnh_WayPoint_GetSuperObject(WP_tdhWayPoint);
|
||||
void WP_fnv_WayPoint_SetSuperObject(WP_tdhWayPoint,HIE_tdxHandleToSuperObject);
|
||||
|
||||
/* validity of handles : */
|
||||
void WP_fnv_WayPoint_Invalidate(WP_tdhWayPoint*);
|
||||
ACP_tdxBool WP_fnb_WayPoint_IsValid(WP_tdhWayPoint);
|
||||
ACP_tdxBool WP_fnb_WayPoint_IsInvalid(WP_tdhWayPoint);
|
||||
|
||||
ACP_tdxBool WP_fnb_WayPoint_IsDynamic(WP_tdhWayPoint);
|
||||
ACP_tdxBool WP_fnb_WayPoint_IsStatic(WP_tdhWayPoint);
|
||||
|
||||
/* loading waypoints */
|
||||
SCR_tde_Anl_ReturnValue WP_fne_WayPoint_ScriptCallBackLoad(SCR_tdst_File_Description *,char *,char **, SCR_tde_Anl_Action);
|
||||
SCR_tde_Anl_ReturnValue WP_fne_WayPoint_ScriptSubSectionCallBackLoad(SCR_tdst_File_Description *,char *,char **, SCR_tde_Anl_Action);
|
||||
/* tools */
|
||||
void WP_fnv_WayPoint_ComputeLocation(WP_tdhWayPoint,MTH3D_tdstVector*);
|
||||
|
||||
#endif /*__WP_WAYPOINTS_FUNCTIONS_PROTOS__ */
|
||||
|
||||
#endif /* _WP_D_DEFINE_WAYPOINTS_ */
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
LINK FUNCTIONS DECLARATION:
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
#ifdef _WP_D_DEFINE_LINKS_
|
||||
|
||||
#if !defined (__WP_LINKS_FUNCTIONS_PROTOS__)
|
||||
#define __WP_LINKS_FUNCTIONS_PROTOS__
|
||||
|
||||
/* creation function :*/
|
||||
WP_tdhLink WP_fnh_Link_Create(void);
|
||||
/* destruction */
|
||||
void WP_fnv_Link_Destroy(WP_tdhLink);
|
||||
/* add reference and release */
|
||||
void WP_fnv_Link_AddRef(WP_tdhLink);
|
||||
void WP_fnv_Link_Release(WP_tdhLink);
|
||||
/* "constructor" : */
|
||||
WP_tdhLink WP_fnh_Link_Build(void *,ACP_tdstDynaParam*,WP_tde_ucConnectionType,WP_tde_ucConnectionDynamicType,WP_tduc_SamplingRate);
|
||||
/* duplicate : */
|
||||
WP_tdhLink WP_fnh_Link_Duplicate(WP_tdhLink);
|
||||
/* copy */
|
||||
void WP_fnv_Link_Copy(WP_tdhLink,WP_tdhLink);
|
||||
/* sizeof */
|
||||
unsigned short WP_fnuw_Link_SizeOf(void);
|
||||
/* accessing to members :*/
|
||||
void WP_fnv_Link_GetDynamicParameter(WP_tdhLink,ACP_tdstDynaParam*);
|
||||
void WP_fnv_Link_SetDynamicParameter(WP_tdhLink,ACP_tdstDynaParam*);
|
||||
WP_tde_ucConnectionType WP_fneuc_Link_GetConnectionType(WP_tdhLink);
|
||||
void WP_fnv_Link_SetConnectionType(WP_tdhLink,WP_tde_ucConnectionType);
|
||||
|
||||
WP_tde_ucConnectionDynamicType WP_fneuc_Link_GetConnectionDynamicType(WP_tdhLink);
|
||||
void WP_fnv_Link_SetConnectionDynamicType(WP_tdhLink,WP_tde_ucConnectionDynamicType);
|
||||
|
||||
unsigned char WP_fnuc_Link_GetCurrentSample(WP_tdhLink);
|
||||
void WP_fnv_Link_SetCurrentSample(WP_tdhLink,unsigned char);
|
||||
|
||||
/* validity of handles : */
|
||||
void WP_fnv_Link_Invalidate(WP_tdhLink*);
|
||||
ACP_tdxBool WP_fnb_Link_IsValid(WP_tdhLink);
|
||||
ACP_tdxBool WP_fnb_Link_IsInvalid(WP_tdhLink);
|
||||
|
||||
/* allocate fields :*/
|
||||
void WP_fnv_Link_Allocate(WP_tdhLink,WP_tde_ucConnectionType,WP_tde_ucConnectionDynamicType);
|
||||
/* free structures : */
|
||||
void WP_fnv_Link_Free(WP_tdhLink);
|
||||
|
||||
/* changing connection type :*/
|
||||
void WP_fnv_Link_ChangeConnectionTypeBezier(WP_tdhLink,MTH3D_tdhBezierCurve);
|
||||
MTH3D_tdhBezierCurve WP_fnv_Link_GetConnectionTypeBezierCurve(WP_tdhLink);
|
||||
void WP_fnv_Link_ChangeConnectionTypeCircleArc(WP_tdhLink,MTH3D_tdhCircleArcCurve);
|
||||
MTH3D_tdhCircleArcCurve WP_fnv_Link_GetConnectionTypeCircleArcCurve(WP_tdhLink);
|
||||
void WP_fnv_Link_ChangeConnectionTypeStaticLineObject(WP_tdhLink,WP_tdhWayPoint);
|
||||
WP_tdhWayPoint WP_fnv_Link_GetConnectionTypeStaticLineObjectWayPoint(WP_tdhLink);
|
||||
void WP_fnv_Link_ChangeConnectionTypeDynamicLine(WP_tdhLink,WP_tdhWayPoint);
|
||||
WP_tdhWayPoint WP_fnv_Link_GetConnectionTypeDynamicLineWayPoint(WP_tdhLink);
|
||||
|
||||
void WP_fnv_Link_UpdateDynamicInfo(WP_tdhLink);
|
||||
|
||||
#endif /*__WP_LINKS_FUNCTIONS_PROTOS__ */
|
||||
|
||||
#endif /* _WP_D_DEFINE_LINKS_ */
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------------------------
|
||||
WAY FUNCTIONS DECLARATION:
|
||||
------------------------------------------------------------------------------------------
|
||||
*/
|
||||
#ifdef _WP_D_DEFINE_WAYS_
|
||||
|
||||
#if !defined (__WP_WAYS_FUNCTIONS_PROTOS__)
|
||||
#define __WP_WAYS_FUNCTIONS_PROTOS__
|
||||
|
||||
/* creation function :*/
|
||||
WP_tdhWay WP_fnh_Way_Create(void);
|
||||
/* destruction */
|
||||
void WP_fnv_Way_Destroy(WP_tdhWay);
|
||||
/* add reference and release */
|
||||
void WP_fnv_Way_AddRef(WP_tdhWay);
|
||||
void WP_fnv_Way_Release(WP_tdhWay);
|
||||
/* current wp index : */
|
||||
void WP_fnv_Way_SetCurrentWPIndex(WP_tdhWay,WP_tduc_WPIndex);
|
||||
|
||||
/* "constructor" : */
|
||||
WP_tdhWay WP_fnh_Way_Build(WP_tduc_WPIndex);
|
||||
/* "Destructor" */
|
||||
void WP_fnv_Way_Free(WP_tdhWay);
|
||||
/* allocate : */
|
||||
void WP_fnv_Way_Alloc(WP_tdhWay,WP_tduc_WPIndex);
|
||||
/* re-size the way : */
|
||||
void WP_fnv_Way_Realloc(WP_tdhWay,WP_tduc_WPIndex);
|
||||
/* duplicate : */
|
||||
WP_tdhWay WP_fnh_Way_Duplicate(WP_tdhWay);
|
||||
/* copy */
|
||||
void WP_fnv_Way_Copy(WP_tdhWay,WP_tdhWay);
|
||||
/* sizeof */
|
||||
unsigned short WP_fnuw_Way_SizeOf(void);
|
||||
/* accessing to members :*/
|
||||
WP_tdhWayPoint* WP_fnd_h_Way_GetWayPointArray(WP_tdhWay);
|
||||
void WP_fnv_Way_SetWayPointArray(WP_tdhWay,WP_tdhWayPoint*);
|
||||
|
||||
WP_tdhLink* WP_fnd_h_Way_GetLinkArray(WP_tdhWay);
|
||||
void WP_fnv_Way_SetLinkArray(WP_tdhWay,WP_tdhLink*);
|
||||
|
||||
WP_tduc_WPIndex WP_fnuc_Way_GetSizeWay(WP_tdhWay);
|
||||
void WP_fnv_Way_SetSizeWay(WP_tdhWay,WP_tduc_WPIndex);
|
||||
|
||||
WP_tduc_WPIndex WP_fnuc_Way_GetCurrentWPIndex(WP_tdhWay);
|
||||
void WP_fnv_Way_SetCurrentWPIndex(WP_tdhWay,WP_tduc_WPIndex);
|
||||
|
||||
unsigned char WP_fnuc_Way_GetUsedCount(WP_tdhWay);
|
||||
void WP_fnv_Way_SetUsedCount(WP_tdhWay,unsigned char);
|
||||
|
||||
WP_tdhWayPoint WP_fnh_Way_GetElementFromWayPointArray(WP_tdhWay,WP_tduc_WPIndex);
|
||||
void WP_fnv_Way_SetElementFromWayPointArray(WP_tdhWay,WP_tduc_WPIndex,WP_tdhWayPoint);
|
||||
|
||||
WP_tdhLink WP_fnh_Way_GetElementFromLinkArray(WP_tdhWay,WP_tduc_WPIndex);
|
||||
void WP_fnv_Way_SetElementFromLinkArray(WP_tdhWay,WP_tduc_WPIndex,WP_tdhLink);
|
||||
|
||||
/* validity of handles : */
|
||||
void WP_fnv_Way_Invalidate(WP_tdhWay*);
|
||||
ACP_tdxBool WP_fnb_Way_IsValid(WP_tdhWay);
|
||||
ACP_tdxBool WP_fnb_Way_IsInvalid(WP_tdhWay);
|
||||
|
||||
/* adding and removing waypoints : */
|
||||
void WP_fnv_Way_InsertWayPoint(WP_tdhWay,WP_tdhWayPoint, WP_tdhLink,WP_tdhLink,WP_tduc_WPIndex);
|
||||
void WP_fnv_Way_DeleteWayPoint(WP_tdhWay,WP_tduc_WPIndex,WP_tdhLink);
|
||||
|
||||
/* retrieving waypoints : */
|
||||
WP_tduc_WPIndex WP_fnuc_Way_PositionWayPoint(WP_tdhWay,WP_tdhWayPoint);
|
||||
WP_tdhWayPoint WP_fnh_Way_NextWayPoint(WP_tdhWay);
|
||||
WP_tdhWayPoint WP_fnh_Way_PrevWayPoint(WP_tdhWay);
|
||||
WP_tdhWayPoint WP_fnh_Way_CurrentWayPoint(WP_tdhWay);
|
||||
|
||||
/* load*/
|
||||
SCR_tde_Anl_ReturnValue WP_fne_Way_ScriptCallBackLoad
|
||||
(SCR_tdst_File_Description*,char*,char**,SCR_tde_Anl_Action);
|
||||
/* Tools :*/
|
||||
void WP_fnv_Way_InitBeforeFollowing(HIE_tdxHandleToSuperObject,WP_tdhWay);
|
||||
/* function called when the specific vertex has been reached */
|
||||
unsigned char WP_fnuc_Way_CurrentVertexReached(HIE_tdxHandleToSuperObject,WP_tdhWay);
|
||||
/* function called to get the speed : */
|
||||
MTH_tdxReal WP_fnx_Way_GetCurrentSpeed(HIE_tdxHandleToSuperObject,WP_tdhWay);
|
||||
/* function called to get the vertex to reach */
|
||||
void WP_fnv_Way_GetNextPoint(HIE_tdxHandleToSuperObject,WP_tdhWay,MTH3D_tdstVector*,MTH_tdxReal*);
|
||||
|
||||
|
||||
#endif /* __WP_WAYS_FUNCTIONS_PROTOS__ */
|
||||
|
||||
#endif /* _WP_D_DEFINE_WAYS_ */
|
||||
|
||||
#endif /* !ONLY_TYPES */
|
Reference in New Issue
Block a user