/*---------------------------------------------------------------------------*/ /* Action parameters functions and macros for intelligence engine*/ /* author : Olivier Couvreur*/ /* date : 7/11/1996*/ /* modify : Fabien MORALES*/ /* date : 29/01/1997 Vertex param*/ /* modify : Olivier Couvreur*/ /* date : 03/02/1997 Lint 0 warnings*/ /* modify : Olivier Couvreur*/ /* date : 09/02/1997 error handling*/ /* modify : Olivier Couvreur 23/04/97 MMG + DIR*/ /*---------------------------------------------------------------------------*/ #include "AIUseCPA.h" #include "specif/AIOption.h" #include "AIMacros.h" #include "AI_Erm.h" #include "StrIntel.h" #include "AI_Struc.h" #include "specif/ActTable.h" /* XB 20/05/1999 */ #ifndef D_THROW_COMPLEX_ACTION_TABLE #define M_ActionParam(n) M_ActionTableParam((n),M_ActionTableCurrentEntry(n)) /* En Bref un truc du genre*/ /* M_ActionParam(p_stIntellOrReflex)*/ /* =*/ /* p_stIntelligence->stActionTable.a_stEntry[p_stIntelligence->stActionTable.ucCurrentEntry].stActionParam*/ #else /* D_THROW_COMPLEX_ACTION_TABLE */ #define M_ActionParam(n) M_ActionTableParam0((n)) #endif /* D_THROW_COMPLEX_ACTION_TABLE */ /* End XB 20/05/1999 */ #define M_InternalSetActionParam(p_SuperObjPerso, ucN, Value, AccesMacro) \ tdstIntelligence *p_stIntellOrReflex = M_GetIntellOrReflex(AI_M_stGetMindOfSuperObj((p_SuperObjPerso))); \ ##AccesMacro(&M_ActionParam(p_stIntellOrReflex).a_uParam[(ucN)]) = (Value); #if defined(__DEBUG_AI__) #define M_SetActionParam(p_SuperObjPerso, ucN, Value, AccesMacro) \ if (ucN