/*******************************************************/ /**** For the structures and variables declarations ****/ /*******************************************************/ #define D_MSWay_StructureDefine #define D_MSWay_VariableDefine #include "ToolsCPA.h" #include "Options/Options.h" #include "Macros.h" #include "Actions/AllActs.h" #include "Structur/MemGame.h" #include "Structur/ErrGame.h" #include "Structur/Objects.h" #include "Structur/GameScpt.h" #include "Structur/StdObjSt.h" #include "Structur/EngMode.h" #include "Basic.h" #include "ObjInit.h" #include "ZeMem.h" /*ANNECY JMD{*/ #define _WP_D_WPGRAPH_FRIEND_ #include "AI/AIBASE/WPgraphe.h" #undef _WP_D_WPGRAPH_FRIEND_ /*ENDANNECY JMD }*/ #include "AI.h" #include "safe.h" /*BART*/ /*XB980504*/ #ifdef GAM_USE_SNA #include "sna.h" #endif /* GAM_USE_SNA */ /*End XB*/ #include "ldt.h" /***************************************************************** Function name : fn_iCreateMSWay Description : Author : Ovidiu Scripa (oscripa@ubisoft.ro) - ROMTEAM Creation Date : 13-Oct-98 Modified : Return type : int Argument : LDT_tdst_Link *pLink *****************************************************************/ int fn_iCreateMSWay( LDT_tdst_Link *pLink ) { MS_tdxHandleToMSWay h_MSWay; struct tdstEngineObject_ *p_stEngineObject = (struct tdstEngineObject_ *)pLink->pParent->pObject; MMG_fn_vBeginMemoryInfo (MMG_C_lTypeMiniStructure , MMG_C_lSubTypeMSWay , p_stEngineObject); h_MSWay = fn_h_MSWayRealAlloc(); MMG_fn_vEndMemoryInfo (); p_stEngineObject->h_MSWay=h_MSWay; pLink->pObject = (void*)h_MSWay; return 0; } /* load for 'MSWay' section is default*/