Add rayman2 source files
This commit is contained in:
46
Rayman_X/cpa/main/Inc/DlgOpt.h
Normal file
46
Rayman_X/cpa/main/Inc/DlgOpt.h
Normal file
@@ -0,0 +1,46 @@
|
||||
// DlgOpt.h: interface for the CDlgUpdateOptions class.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#if !defined(AFX_DLGOPT_H__50A6C4E1_FEA2_11D1_A246_006097671DC9__INCLUDED_)
|
||||
#define AFX_DLGOPT_H__50A6C4E1_FEA2_11D1_A246_006097671DC9__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "_Project.h"
|
||||
/*
|
||||
=======================================================================================
|
||||
CDlgUpdateOptions dialog
|
||||
=======================================================================================
|
||||
*/
|
||||
class CDlgUpdateOptions : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CDlgUpdateOptions(CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CUpdateOptionsDlg)
|
||||
enum { IDD = IDD_DIALOG_UPDATEOPTIONS };
|
||||
// NOTE: the ClassWizard will add data members here
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CDlgUpdateOptions)
|
||||
virtual BOOL OnInitDialog();
|
||||
virtual void OnOK();
|
||||
afx_msg void OnCheckUseBinaryData();
|
||||
afx_msg void OnCheckAskAtEachTime();
|
||||
//afx_msg BOOL OnCheckSavePrgPreferences();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
|
||||
#endif // !defined(AFX_DLGOPT_H__50A6C4E1_FEA2_11D1_A246_006097671DC9__INCLUDED_)
|
83
Rayman_X/cpa/main/Inc/GameITF.h
Normal file
83
Rayman_X/cpa/main/Inc/GameITF.h
Normal file
@@ -0,0 +1,83 @@
|
||||
#if !defined (__GameITF_H__)
|
||||
#define __GameITF_H__
|
||||
|
||||
/******************************************/
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif /* _MSC_VER >= 1000 */
|
||||
/******************************************/
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C"
|
||||
{
|
||||
#endif /* __cplusplus */
|
||||
|
||||
void fn_vChangeWindowTitle(char *szWindowName);
|
||||
void fn_vSetEngineWorldForITF(HIE_tdxHandleToSuperObject _hActualWorld);
|
||||
|
||||
GLD_tdhDevice fn_hGetGLDDevice(unsigned long _ulValue);
|
||||
GLD_tdhViewport fn_hGetGLDViewport(unsigned long _ulValue);
|
||||
void GAMITF_fn_vResizeGameViewport(void);
|
||||
|
||||
void *fn_hGetDrawSemaphore(void);
|
||||
|
||||
void fn_vForceToCloseApplication();
|
||||
|
||||
void fn_vEditorDrawObjectExpect0(void);
|
||||
void fn_vEditorDataHasChange(void);
|
||||
|
||||
unsigned char fn_ucIsEditorsActive(void);
|
||||
void fn_vEnableEditorsMainWnd(unsigned char _ulValue);
|
||||
|
||||
void fn_vEditorSetCurrentMap(char *_szCurrentMap);
|
||||
|
||||
HWND fn_hGetBaseFrameWnd(void);
|
||||
|
||||
void fn_vInitSoundStruct(void *SndInit);
|
||||
void fn_vSwapDeviceToFullScreen(void);
|
||||
|
||||
char *fn_szGetExeCommandLine(void);
|
||||
|
||||
void MAIN_fn_vSetDeviceWidth(unsigned long ulWidth,unsigned long ulHeigh);
|
||||
unsigned long MAIN_fn_ulGetDeviceWidth(void);
|
||||
unsigned long MAIN_fn_ulGetDeviceHeight(void);
|
||||
|
||||
//VL0
|
||||
void MAIN_fn_vSetDeviceMode(unsigned long ulIsFullScreen );
|
||||
unsigned long MAIN_fn_ulDeviceIsFullScreen(void);
|
||||
//EVL
|
||||
|
||||
BOOL fn_bInFullScreen(void);
|
||||
BOOL fn_bBadRes(void);
|
||||
void fn_vChangeDeviceResolution( void );
|
||||
|
||||
//ANNECY VL SPOFLAG 03/12/97{
|
||||
BOOL fn_bIsEditorsActive(void);
|
||||
//ENDANNECY VL SPOFLAG}
|
||||
|
||||
HINSTANCE fn_hGetApplicationInstance(void);
|
||||
HWND fn_hGetApplicationWindow(void);
|
||||
HWND fn_hGetApplicationWindowWithChoise(BOOL _isFullScreen);//chbani
|
||||
|
||||
//************************************************************************************
|
||||
//************************************************************************************
|
||||
//************************** nouvelle synchro ****************************************
|
||||
//************************************************************************************
|
||||
//************************************************************************************
|
||||
//************************************************************************************
|
||||
//************************************************************************************
|
||||
void fn_vCheckPause();
|
||||
void fn_vCheckEditor();
|
||||
void fn_vForceEditor();
|
||||
void fn_vCheckEnd();
|
||||
void fn_vEngineHasFinished();
|
||||
ACP_tdxBool fn_bTestIfEndOfAppliAsked();
|
||||
ACP_tdxBool fn_bTestIfEditorRunning();
|
||||
|
||||
void fn_vChoicePreferences(void);
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GameITF_H__ */
|
43
Rayman_X/cpa/main/Inc/InfoWin.h
Normal file
43
Rayman_X/cpa/main/Inc/InfoWin.h
Normal file
@@ -0,0 +1,43 @@
|
||||
#if !defined(__InfoWin_h__)
|
||||
#define __InfoWin_h__
|
||||
|
||||
#undef EXTERN
|
||||
#undef extern
|
||||
#if !defined(D_InfoWin_VariableDefine)
|
||||
#define EXTERN extern
|
||||
#else
|
||||
#define EXTERN
|
||||
#endif /* D_InfoWin_VariableDefine */
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C"
|
||||
{
|
||||
#endif /* __cplusplus */
|
||||
|
||||
struct tdstInfoWindow_
|
||||
{
|
||||
char *szAppName;
|
||||
WNDCLASS wndclass;
|
||||
HINSTANCE hInstance;
|
||||
HWND hWnd;
|
||||
HDC hDC;
|
||||
RECT rClientRect;
|
||||
|
||||
char zsString[1000];
|
||||
};
|
||||
|
||||
EXTERN struct tdstInfoWindow_ g_stInfoWindow;
|
||||
|
||||
void fn_vCreateInfoWindow(void);
|
||||
void fn_vDestroyInfoWindow(void);
|
||||
void fn_vShowInfoWindow(void);
|
||||
|
||||
LONG WINAPI fn_lInfoWindowProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam);
|
||||
|
||||
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __InfoWin_h__ */
|
82
Rayman_X/cpa/main/Inc/MainCPA.h
Normal file
82
Rayman_X/cpa/main/Inc/MainCPA.h
Normal file
@@ -0,0 +1,82 @@
|
||||
/*=========================================================================
|
||||
* ToolsCPA.h : CPA tools include
|
||||
*
|
||||
*
|
||||
* Version 1.0
|
||||
* Creation date 10/01/97
|
||||
* Revision date
|
||||
*
|
||||
* That file needs to be compatible for all platforms.
|
||||
*
|
||||
* (c) Ubi Studios 1997
|
||||
*=======================================================================*/
|
||||
|
||||
#if !defined(__MAINCPA_H__)
|
||||
#define __MAINCPA_H__
|
||||
|
||||
/******************************************/
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif /* _MSC_VER >= 1000 */
|
||||
/******************************************/
|
||||
|
||||
/****************************************
|
||||
* Here is the list of disabled WARNING *
|
||||
****************************************/
|
||||
#if defined(VISUAL)
|
||||
#pragma warning(disable:4010) //* single-line comment contains line-continuation character *
|
||||
#pragma warning(disable:4032) //* formal parameter 1 has different type when promoted *
|
||||
#pragma warning(disable:4100) //* unreferenced formal parameter *
|
||||
#pragma warning(disable:4115) //* named type definition in parentheses *
|
||||
#pragma warning(disable:4127) //* conditional expression is constant *
|
||||
#pragma warning(disable:4201) //* nonstandard extension used : nameless struct/union *
|
||||
#pragma warning(disable:4214) //* nonstandard extension used : bit field types other than int *
|
||||
#pragma warning(disable:4310) //* cast truncates constant value *
|
||||
#pragma warning(disable:4514) //* unreferenced inline function has been removed *
|
||||
#pragma warning(disable:4702) //* unreachable code *
|
||||
#pragma warning(disable:4711) //* selected for automatic inline expansion *
|
||||
#endif /* VISUAL */
|
||||
|
||||
#include "ACP_Base.h"
|
||||
#if defined(WIN32)&&defined(__cplusplus)
|
||||
#include "stdafx.h"
|
||||
#endif /* WIN32&&__cplusplus */
|
||||
|
||||
#define HieFriend
|
||||
#include "CPA_Expt.h"
|
||||
#include "CPA_Std.h"
|
||||
|
||||
|
||||
#include "GEO.h"
|
||||
#include "SAI.h"
|
||||
#include "GLI.h"
|
||||
#include "COL.h"
|
||||
#include "MEC.h"
|
||||
// Shaitan Clean Env {
|
||||
//#include "ENV.h"
|
||||
//End Shaitan Clean Env }
|
||||
#include "SND.h"
|
||||
// Shaitan Clean Env {
|
||||
//#include "SRF.h"
|
||||
//End Shaitan Clean Env }
|
||||
#include "SCT.h"
|
||||
#include "SPO.h"
|
||||
#include "LST.h"
|
||||
#include "AI.h"
|
||||
#include "ERM.h"
|
||||
#include "GMT.h"
|
||||
#include "INO.h"
|
||||
#include "IPT.h"
|
||||
#include "MMG.h"
|
||||
#include "SCR.h"
|
||||
#include "TMR.h"
|
||||
#include "RND.h"
|
||||
#include "PCS.h"
|
||||
#include "PO.h"
|
||||
//#include "FON.h"
|
||||
#include "FIL.h"
|
||||
#include "PRT.h"
|
||||
#include "VIG.h"
|
||||
#include "GAM.h"
|
||||
|
||||
#endif /* __MAINCPA_H__ */
|
361
Rayman_X/cpa/main/Inc/_EditID.h
Normal file
361
Rayman_X/cpa/main/Inc/_EditID.h
Normal file
@@ -0,0 +1,361 @@
|
||||
/*===================================================================
|
||||
* Editors ID
|
||||
*=================================================================*/
|
||||
|
||||
#ifndef __EDITID_H__
|
||||
#define __EDITID_H__
|
||||
#include "itf/stddllid.h"
|
||||
|
||||
|
||||
// ============================================================================
|
||||
// ============================================================================
|
||||
// Name of the DLLs
|
||||
// ============================================================================
|
||||
// ============================================================================
|
||||
|
||||
// Object DLLs
|
||||
#define C_szDLLZDxName "Zdd"
|
||||
#define C_szDLLWayPointName "WayPoint"
|
||||
#define C_szDLLActorName "Actor"
|
||||
#define C_szDLLLightName "Light"
|
||||
|
||||
|
||||
// Tool DLL
|
||||
#define C_szDLLActionName "Action"
|
||||
#define C_szDLLFamilyName "Family"
|
||||
#define C_szDLLAnimationName "Animation"
|
||||
#define C_szDLLTool3DName "Tool3D"
|
||||
#define C_szDLLViewerName "Viewer"
|
||||
#define C_szDLLMaterialName "Material"
|
||||
#define C_szDLLMecaName "Mechanics"
|
||||
#define C_szDLLObjectTableName "ObjectTable"
|
||||
#define C_szDLLSoundName "Sound"
|
||||
#define C_szDLLPartGenName "ParticlesGenerator"
|
||||
#define C_szDLLTutorialName "Tutorial"
|
||||
#define C_szDLLAIEditorName "ArtificialIntelligence"
|
||||
|
||||
// Shaitan => streaming (banks editor)
|
||||
#define C_szDLLBanksEditorName "BanksEditor"
|
||||
// End Shaitan => streaming (banks editor)
|
||||
|
||||
// ============================================================================
|
||||
// ============================================================================
|
||||
// Object Type Name
|
||||
// ============================================================================
|
||||
// ============================================================================
|
||||
|
||||
// Sector.dll
|
||||
#define C_szSurfaceTypeName "Surface"
|
||||
#define C_szEnvironmentTypeName "Environment"
|
||||
#define C_szMecEnvironmentTypeName "MecEnvironment"
|
||||
#define C_szVisEnvironmentTypeName "VisEnvironment"
|
||||
|
||||
// Material.dll
|
||||
#define C_szGameMaterialTypeName "GameMaterial"
|
||||
#define C_szVisualMaterialTypeName "VisualMaterial"
|
||||
#define C_szMechanicsMaterialTypeName "MechanicsMaterial"
|
||||
#define C_szCollideMaterialTypeName "CollideMaterial"
|
||||
#define C_szTextureTypeName "Texture"
|
||||
#define C_szMaterialColName "MaterialCol"
|
||||
|
||||
|
||||
// _TAction.dll
|
||||
#define C_szActionTypeName "Action"
|
||||
#define C_szStateTypeName "State"
|
||||
#define C_szZATypeName "ZA"
|
||||
#define C_szZAListTypeName "ZAList"
|
||||
|
||||
// _TFamily.dll
|
||||
#define C_szFamilyTypeName "Family"
|
||||
#define C_szTestPointsListTypeName "TestPointsList"
|
||||
#define C_szChannelTypeName "Channel"
|
||||
// _TAnim.dll
|
||||
#define C_szAnimationTypeName "Animation"
|
||||
|
||||
// _ObjTable.dll
|
||||
#define C_szObjectTableTypeName "ObjectTable"
|
||||
|
||||
// Zdd.dll
|
||||
#define C_szZddName "ZDD"
|
||||
#define C_szZdeName "ZDE"
|
||||
#define C_szZdmName "ZDM"
|
||||
#define C_szZdrName "ZDR"
|
||||
#define C_szBoundingVolumeName "BV"
|
||||
#define C_szWayName "Way"
|
||||
|
||||
// Actor.dll
|
||||
#define C_szActorInstanceTypeName "Actor"
|
||||
#define C_szActorModelTypeName "Actor_Model"
|
||||
|
||||
#define C_szGenericNameListType "NameList"
|
||||
#define C_szZDeNameListType C_szGenericNameListType C_szZdeName
|
||||
#define C_szZDmNameListType C_szGenericNameListType C_szZdmName
|
||||
#define C_szZDdNameListType C_szGenericNameListType C_szZddName
|
||||
#define C_szZDrNameListType C_szGenericNameListType C_szZdrName
|
||||
#define C_szWayNameListType C_szGenericNameListType C_szWayName
|
||||
#define C_szEdtListTypeName "EdtList"
|
||||
|
||||
#define C_szObjectNameType "ObjectName"
|
||||
|
||||
//Meca.dll
|
||||
#define C_szMecaCardTypeName "MecaCard"
|
||||
|
||||
// Object table DLL
|
||||
#define C_szObjectTableTypeNAme "ObjectTable"
|
||||
|
||||
// Waypoint.dll
|
||||
#define C_szWayPointTypeName "Waypoint"
|
||||
#define C_szWayTypeName "Way"
|
||||
//ROMTEAM Networks (Gabriela Dumitrascu 25/02/98)
|
||||
#define C_szGraphTypeName "Graph"
|
||||
//ENDROMTEAM Networks (Gabriela Dumitrascu)
|
||||
|
||||
// Light.dll
|
||||
#define C_szLightTypeName "Light"
|
||||
|
||||
// Sound DLL
|
||||
#define C_szSoundEventTypeName "SoundEvent"
|
||||
#define C_szSoundInfoMaterialTypeName "SIF_Material"
|
||||
#define C_szSoundInfoEnvironmentTypeName "SIF_Environment"
|
||||
|
||||
#define C_szLipSynchroTypeName "LipsSynchro"
|
||||
|
||||
// Particles Generator DLL
|
||||
#define C_szPartGenGeneratorName "ParticlesGenerator"
|
||||
#define C_szPartGenSourceName "GeneratorSource"
|
||||
#define C_szPartGenSystemName "GeneratorSystem"
|
||||
#define C_szPartGenEnvName "GeneratorEnv"
|
||||
|
||||
//Artificial Intelligence DLL
|
||||
#define C_szIABehaviourTypeName "IA_Behaviour"
|
||||
|
||||
// Shaitan => streaming (banks editor)
|
||||
#define C_szBankTypeName "Bank"
|
||||
// End Shaitan => streaming (banks editor)
|
||||
|
||||
// ============================================================================
|
||||
// ============================================================================
|
||||
// Query
|
||||
// ============================================================================
|
||||
// ============================================================================
|
||||
|
||||
// Tool3D
|
||||
// ======
|
||||
|
||||
// Open
|
||||
#define C_wTool3D_None 0
|
||||
#define C_wTool3D_Char 1
|
||||
#define C_wTool3D_Mod_Object 2
|
||||
#define C_wTool3D_Mod_List 3
|
||||
#define C_wTool3D_Table 4
|
||||
#define C_wTool3D_Geom_Object 5
|
||||
#define C_wTool3D_Viewer 6
|
||||
#define C_wTool3D_Object 7
|
||||
// Close
|
||||
// ...
|
||||
// Action
|
||||
#define C_wTool3D_QA_ShowGrid 11
|
||||
#define C_wTool3D_QA_HideGrid 12
|
||||
#define C_wTool3D_QA_ShowSelect 13
|
||||
#define C_wTool3D_QA_HideSelect 14
|
||||
#define C_wTool3D_QA_NewChar 20
|
||||
#define C_wTool3D_QA_NewSuperObject 21
|
||||
#define C_wTool3D_QA_NewTable 22
|
||||
#define C_wTool3D_QA_NewObject 23
|
||||
// Info
|
||||
#define C_wTool3D_QI_CanOpenChar 1
|
||||
#define C_wTool3D_QI_CanOpenMod 2
|
||||
#define C_wTool3D_QI_CanOpenGeom 3
|
||||
#define C_wTool3D_QI_CanOpenTable 4
|
||||
#define C_wTool3D_QI_CanOpenViewer 5
|
||||
#define C_wTool3D_QI_CanOpenObject 6
|
||||
#define C_wTool3D_QI_GetState 10
|
||||
#define C_wTool3D_QI_GetWorld 11
|
||||
#define C_wTool3D_QI_GetDevice 12
|
||||
#define C_wTool3D_QI_GetContact 13
|
||||
#define C_wTool3D_QI_GetSOOnGrid 14
|
||||
|
||||
//Actor
|
||||
//=====
|
||||
|
||||
#define C_uiActor_GetANameList 1
|
||||
#define C_uiActor_CreateANewObjectList 2
|
||||
#define C_uiActor_DeleteAnObjectList 3
|
||||
#define C_uiActor_GetAnObjectList 4
|
||||
#define C_uiActor_SetAnObjectList 5
|
||||
#define C_uiActor_SetAnObjectInObjectList 6
|
||||
#define C_uiActor_GetFirstActorUsingThisList 7
|
||||
#define C_uiActor_LoadNamesList 8
|
||||
#define C_uiActor_DisplayActor 10
|
||||
#define C_uiActor_GetDesignerVariablesView 11
|
||||
#define C_uiActor_GetIndexOfName 12
|
||||
#define C_uiActor_GetSelectedActor 13
|
||||
#define C_uiActor_GetDocument 14
|
||||
#define C_uiActor_ActionModif 16
|
||||
#define C_uiActor_ActionDeleted 17
|
||||
#define C_uiActor_ActionRestored 18
|
||||
#define C_uiActor_ObjectsTableLoaded 19
|
||||
#define C_uiActor_IsAnInstance 20
|
||||
#define C_uiActor_AddDataInWatch 21
|
||||
#define C_uiActor_RemoveDataFromWatch 22
|
||||
#define C_uiActor_UpdateTreeView 23
|
||||
#define C_uiActor_LoadFamilyModels 24
|
||||
#define C_uiActor_GetAnActorInstance 25
|
||||
#define C_uiActor_DeleteTempActorInstance 26
|
||||
|
||||
// AI
|
||||
// ===
|
||||
#define C_uiAI_GetNewDesignerVariableList 01
|
||||
#define C_uiAI_DeleteDesignerVariableList 02
|
||||
#define C_uiAI_DesignerVariableView_UpdateDisplayWithValues 10
|
||||
#define C_uiAI_DesignerVariableView_UpdateDisplay 11
|
||||
#define C_uiAI_DesignerVariableView_UpdateControls 12
|
||||
#define C_uiAI_DesignerVariableView_GetOldHeight 13
|
||||
#define C_uiAI_DesignerVariableView_SetOldHeight 14
|
||||
#define C_uiAI_DesignerVariableView_GetRuntimeClass 15
|
||||
#define C_uiAI_GetNewIA 20
|
||||
#define C_uiAI_GetNewCopyOfIA 21
|
||||
#define C_uiAI_DeleteIA 22
|
||||
#define C_uiAI_ShowIA 23
|
||||
#define C_uiAI_LoadIA 24
|
||||
#define C_uiAI_ProcessIA 25
|
||||
#define C_uiAI_SaveIA 26
|
||||
#define C_uiAI_UpdateIA 27
|
||||
#define C_uiAI_SaveInitValuesInBrainMS 28
|
||||
#define C_uiAI_MustSaveAIEntryInModel 29
|
||||
#define C_uiAI_GetDsgVarName 30
|
||||
#define C_uiAI_ShowBehaviour 31
|
||||
#define C_uiAI_ShowEditor 40
|
||||
#define C_uiAI_HideEditor 41
|
||||
#define C_uiAI_HasLostFocus 42
|
||||
#define C_uiAI_MustBuildDebugInfo 50
|
||||
#define C_uiAI_GetBehaviourName 51
|
||||
#define C_uiAI_ClearExecutedNodes 52
|
||||
#define C_uiAI_SetOneExecutedNode 53
|
||||
#define C_uiAI_ShowBehaviourByEngineNode 54
|
||||
#define C_uiAI_ShowBehaviourByName 55
|
||||
#define C_uiAI_ShowFlags 60
|
||||
#define C_uiAI_ViewVariable 61
|
||||
#define C_uiAI_DesignerVariableView_HideVariables 62
|
||||
#define C_uiAI_DesignerVariableView_ShowVariables 63
|
||||
// BEGIN ROMTEAM Cristi Petrescu 98-08-
|
||||
#define C_uiAI_GetVariableValue 64
|
||||
#define C_uiAI_GetVariableIndex 65
|
||||
// END ROMTEAM Cristi Petrescu 98-08-
|
||||
#define C_uiAI_AddVariableInWatch 70
|
||||
// Shaitan => state list in the level
|
||||
#define C_uiAI_ProcessModifiedIA 71
|
||||
// End Shaitan => state list in the level
|
||||
// Shaitan => optimisation lists in the level
|
||||
#define C_uiAI_UpdateAndProcessIA 72
|
||||
// End Shaitan => optimisation lists in the level
|
||||
|
||||
// Zone
|
||||
// ====
|
||||
|
||||
// OnQueryAction
|
||||
#define C_uiQueryEditAnObject 1
|
||||
#define C_uiQueryEditAnObjectList 2
|
||||
#define C_uiQueryAnObjectHasBeenChanged 3
|
||||
#define C_uiQueryCreateZDxObject 4
|
||||
#define C_uiQueryCreateZDxTestPoints 5
|
||||
// OnQueryInfos
|
||||
#define C_uiQueryInfoT3DStateChange 1
|
||||
#define C_uiQueryGetZDxType 2
|
||||
// Answer to the OnQueryInfos
|
||||
#define C_lNotAZone 0
|
||||
#define C_lZddOfActor 1
|
||||
#define C_lZdeOfActor 2
|
||||
#define C_lZdmOfActor 3
|
||||
#define C_lZdrOfActor 4
|
||||
#define C_lZddOfModule 5
|
||||
#define C_lZdeOfModule 6
|
||||
#define C_lZdmOfModule 7
|
||||
#define C_lZdrOfModule 8
|
||||
//ROMTEAM WorldEditor (Cristi Petrescu 15/12/97)
|
||||
#define C_uiQueryTypeOfZoneByGeometricObject 6
|
||||
//ENDROMTEAM WorldEditor (Cristi Petrescu)
|
||||
|
||||
|
||||
// Way
|
||||
// ===
|
||||
// C_uiQueryEditAnObject 1
|
||||
// C_uiQueryEditAnObjectList 2
|
||||
// C_uiQueryAnObjectHasBeenChanged 3 -> shared with Zdx
|
||||
#define C_uiQueryCreateWayObject 4
|
||||
#define C_uiQueryInsertWayObject 5
|
||||
#define C_uiQueryDeleteWayObject 6
|
||||
|
||||
|
||||
// Family
|
||||
// ======
|
||||
|
||||
#define C_uiSaveFamilies 1
|
||||
#define C_uiLoadAFamily 2
|
||||
#define C_uiGetUnLoadedFamiliesList 3
|
||||
#define C_uiGetChannel 4
|
||||
#define C_uiCreateTPList 5
|
||||
#define C_uiGetTestPoint 6
|
||||
#define C_uiUpdateFamilies 7
|
||||
#define C_uiSetCompleteLoadModeTFA 8
|
||||
#define C_uiGetCompleteLoadModeTFA 10
|
||||
|
||||
// Action
|
||||
// ======
|
||||
|
||||
#define C_uiLoadAllActions 1
|
||||
#define C_uiSaveAction 2
|
||||
#define C_uiSaveStates 3
|
||||
#define C_uiRemoveZone 4
|
||||
#define C_uiLoadZA 5
|
||||
#define C_uiLoadZAList 6
|
||||
#define C_uiInsertZone 7
|
||||
#define C_uiUpdateFamiliesList 8
|
||||
#define C_uiOpenWithNone 10
|
||||
#define C_uiOpenWithFamily 11
|
||||
#define C_uiOpenWithAction 12
|
||||
#define C_uiOpenWithState 13
|
||||
#define C_uiOpenWithNameList 14
|
||||
#define C_uiOpenWithZAList 15
|
||||
#define C_uiOpenWithZA 16
|
||||
#define C_uiUpdateZAList 17
|
||||
#define C_uiUpdateAnimList 18
|
||||
|
||||
// Material
|
||||
// ========
|
||||
#define C_cCreateNewGameMaterial 1
|
||||
#define C_cGetDefaultGameMaterial 2
|
||||
|
||||
// 3DGeom
|
||||
// ======
|
||||
#define C_uiCreateGeometricObject 1
|
||||
#define C_uiDeleteGeometricObject 2
|
||||
#define C_uiComputeOGDType 3
|
||||
#define C_uiGetOGDTypePath 4
|
||||
#define C_uiGetOwnerByFileName 5
|
||||
|
||||
// Object Table
|
||||
// ============
|
||||
#define C_uiCreateObjectTable 1
|
||||
#define C_uiDeleteObjectTable 2
|
||||
#define C_uiLoadFamilyObjectTables 3
|
||||
|
||||
// Light
|
||||
// =====
|
||||
#define C_uiCreateDynamicLight 1
|
||||
#define C_uiDeleteDynamicLight 2
|
||||
|
||||
// Sound
|
||||
// =====
|
||||
#define C_uiEngineLoadEvent 1
|
||||
|
||||
// TME
|
||||
//=====
|
||||
#define Cw_TME_Query_updateAfterLoading 0
|
||||
|
||||
// Light
|
||||
//=======
|
||||
#define C_uiQueryComputeRli 1
|
||||
|
||||
// ============================================================================
|
||||
#endif // __EDITID_H__
|
5
Rayman_X/cpa/main/Inc/_Flags.h
Normal file
5
Rayman_X/cpa/main/Inc/_Flags.h
Normal file
@@ -0,0 +1,5 @@
|
||||
/******************************************/
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif /* _MSC_VER >= 1000 */
|
||||
/******************************************/
|
BIN
Rayman_X/cpa/main/Inc/_PROJECT.RES
Normal file
BIN
Rayman_X/cpa/main/Inc/_PROJECT.RES
Normal file
Binary file not shown.
101
Rayman_X/cpa/main/Inc/_ProjApp.hpp
Normal file
101
Rayman_X/cpa/main/Inc/_ProjApp.hpp
Normal file
@@ -0,0 +1,101 @@
|
||||
#ifndef __PROJAPP_HPP__
|
||||
#define __PROJAPP_HPP__
|
||||
|
||||
/******************************************/
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif /* _MSC_VER >= 1000 */
|
||||
/******************************************/
|
||||
|
||||
/* here are the directive you must respect when changing this file :
|
||||
|
||||
* === don't use malloc, but use memory module functions
|
||||
* === absolutely no file handling in this file
|
||||
* === always specify 'void' keyword for functions parameters and return value
|
||||
* === take care of upper / lower case for #include and other filenames
|
||||
* === NO C++ style comentary
|
||||
* === NO ASSERT, use error module equivalent function
|
||||
|
||||
*/
|
||||
|
||||
|
||||
/***************************************************************
|
||||
/ WIN32 PLATFORM
|
||||
***************************************************************/
|
||||
#ifdef WIN32 /* WIN32 platform*/
|
||||
|
||||
#include "ITF.h"
|
||||
|
||||
//
|
||||
// Definition of project application
|
||||
//
|
||||
class _ProjectApp : public CPA_ProjectApp
|
||||
{
|
||||
public:
|
||||
void fn_vUpdateFrameTitle(void);
|
||||
void fn_vCreateEngineThread(void);
|
||||
void fn_vWhenAppGainFocus(void);
|
||||
void fn_vWhenAppLooseFocus(void);
|
||||
void fn_vBeforeEngineStarts(void);
|
||||
void fn_vAfterEngineStops(void);
|
||||
void fn_vDynaFatalError(char *);
|
||||
BOOL InitApplication(void);
|
||||
void ExitApplication(void);
|
||||
BOOL InitInstance(void);
|
||||
void fn_vReinitCurrentMap(void);
|
||||
|
||||
#ifdef ACTIVE_EDITOR
|
||||
void fn_vUpdateDynamicLights (void);
|
||||
void fn_vFindDynamicLights (HIE_tdxHandleToSuperObject hCharacter, long *lNbLights, GLI_tdxHandleToLight a_hLights[]);
|
||||
BOOL fn_bActivateDLL(char *szDLLName);
|
||||
BOOL fn_bTreatAppKeyboard(UINT);
|
||||
#endif
|
||||
};
|
||||
extern _ProjectApp theApp; // One instance of application
|
||||
|
||||
//***************************************************************
|
||||
// OTHER PLATFORM
|
||||
//***************************************************************
|
||||
#else /*WIN32 other platform than WIN32*/
|
||||
|
||||
/*
|
||||
* Constants for device (screen) parameters
|
||||
*/
|
||||
#define C_dwScreenWidth 640
|
||||
#define C_dwScreenHeight 480
|
||||
#define C_dwScreenDepth 8
|
||||
|
||||
/*
|
||||
* globals for device and viewport
|
||||
*/
|
||||
extern GLD_tdhDevice g_hDeviceHandle;
|
||||
extern GLD_tdhViewport g_hViewport;
|
||||
|
||||
/*
|
||||
* Macros
|
||||
*/
|
||||
#define M_GetMainGLDDevice( num ) (&g_hDeviceHandle)
|
||||
#define M_GetMainGLDViewport( num ) (&g_hViewport )
|
||||
|
||||
/*
|
||||
* Functions
|
||||
*/
|
||||
|
||||
/* project entrance : main function*/
|
||||
int main( int argc, char *argv[] );
|
||||
|
||||
/* creation of main screen display*/
|
||||
BOOL fn_bCreateMainDisplayScreen( void );
|
||||
|
||||
#endif /* WIN32*/
|
||||
|
||||
/***************************************************************
|
||||
ALL PLATFORM
|
||||
***************************************************************/
|
||||
|
||||
/* initialization/destruction of project*/
|
||||
BOOL fn_bInitApplication( void );
|
||||
void fn_vExitApplication( void );
|
||||
|
||||
|
||||
#endif /* __PROJAPP_HPP__*/
|
26
Rayman_X/cpa/main/Inc/_ProjID.h
Normal file
26
Rayman_X/cpa/main/Inc/_ProjID.h
Normal file
@@ -0,0 +1,26 @@
|
||||
/*===================================================================
|
||||
* Identification of the current project.
|
||||
* Identify project name, current version and current date.
|
||||
* Set define to correct strings.
|
||||
*=================================================================*/
|
||||
|
||||
/*
|
||||
* !!
|
||||
* !! DO NOT PUT CPP COMMENTS IN THAT FILE
|
||||
* !!
|
||||
*/
|
||||
|
||||
/******************************************/
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif /* _MSC_VER >= 1000 */
|
||||
/******************************************/
|
||||
|
||||
#ifndef __PROJID_H__
|
||||
#define __PROJID_H__
|
||||
|
||||
#define C_szMainVersion "Mai V5.0.0" /* The format is XXX Va.b.c with Xxx is the Tag of the module */
|
||||
#define C_szMainFullName "Main module" /* the complete and clear name of the module */
|
||||
#define C_szMainDate "Apr 28 1997" /* The format is "Mmm dd yyyy".You can use __DATE__ but be careful that you have the control of the compilation*/
|
||||
|
||||
#endif /* __PROJID_H__ */
|
BIN
Rayman_X/cpa/main/Inc/_Project.aps
Normal file
BIN
Rayman_X/cpa/main/Inc/_Project.aps
Normal file
Binary file not shown.
32
Rayman_X/cpa/main/Inc/_Project.h
Normal file
32
Rayman_X/cpa/main/Inc/_Project.h
Normal file
@@ -0,0 +1,32 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Developer Studio generated include file.
|
||||
// Used by _Project.rc
|
||||
//
|
||||
#define IDR_TOOLBAR1 303
|
||||
#define IDR_MENU1 305
|
||||
#define IDD_DIALOG_UPDATEOPTIONS 314
|
||||
#define IDC_EDIT_DIRECTORY 2003
|
||||
#define IDC_CHECK_BINARYDATA 2005
|
||||
#define IDC_CHECK_ASK 2006
|
||||
#define IDC_CHECK_SAVE 2007
|
||||
#define IDC_CHECK_BINARYDSC 2008
|
||||
#define C_uiFirstEntryMenu 4000
|
||||
#define C_uiFirstPopupEntry 4000
|
||||
#define DOP 4001
|
||||
#define C_uiFirstCustomEntry 4500
|
||||
#define ID1 4501
|
||||
#define ID2 4502
|
||||
#define IDF 4503
|
||||
#define C_uiLastEntryMenu 5000
|
||||
#define frffr 33004
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 307
|
||||
#define _APS_NEXT_COMMAND_VALUE 33005
|
||||
#define _APS_NEXT_CONTROL_VALUE 2004
|
||||
#define _APS_NEXT_SYMED_VALUE 300
|
||||
#endif
|
||||
#endif
|
110
Rayman_X/cpa/main/Inc/_Project.rc
Normal file
110
Rayman_X/cpa/main/Inc/_Project.rc
Normal file
@@ -0,0 +1,110 @@
|
||||
//Microsoft Developer Studio generated resource script.
|
||||
//
|
||||
#include "_Project.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "afxres.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// French (France) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_FRENCH, SUBLANG_FRENCH
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"_Project.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"#include ""afxres.h""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"// This is CPA project resource\r\n"
|
||||
"#include ""x:\\CPA\\Public\\ITF\\CPARes.rc""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DESIGNINFO
|
||||
//
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
GUIDELINES DESIGNINFO DISCARDABLE
|
||||
BEGIN
|
||||
IDD_DIALOG_UPDATEOPTIONS, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 268
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 80
|
||||
END
|
||||
END
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Dialog
|
||||
//
|
||||
|
||||
IDD_DIALOG_UPDATEOPTIONS DIALOGEX 0, 0, 275, 87
|
||||
STYLE DS_SYSMODAL | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION
|
||||
EXSTYLE WS_EX_NOPARENTNOTIFY
|
||||
CAPTION "Select your Data Directory"
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "OK",IDOK,211,15,50,14
|
||||
PUSHBUTTON "Cancel",IDCANCEL,213,45,50,14
|
||||
CONTROL "Use Binary Data",IDC_CHECK_BINARYDATA,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,7,16,66,10
|
||||
CONTROL "Ask at each time",IDC_CHECK_ASK,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,7,46,69,10
|
||||
CONTROL "Save your choice",IDC_CHECK_SAVE,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,7,62,105,10
|
||||
EDITTEXT IDC_EDIT_DIRECTORY,90,31,101,14,ES_AUTOHSCROLL
|
||||
LTEXT "Name of the data directory",IDC_STATIC,91,18,100,8
|
||||
CONTROL "Use Binary Desc",IDC_CHECK_BINARYDSC,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,7,31,66,10
|
||||
END
|
||||
|
||||
#endif // French (France) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
// This is CPA project resource
|
||||
#include "x:\CPA\Public\ITF\CPARes.rc"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
|
16
Rayman_X/cpa/main/Inc/stdafx.h
Normal file
16
Rayman_X/cpa/main/Inc/stdafx.h
Normal file
@@ -0,0 +1,16 @@
|
||||
// stdafx.h : include file for standard system include files,
|
||||
// or project specific include files that are used frequently, but
|
||||
// are changed infrequently
|
||||
//
|
||||
|
||||
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
|
||||
|
||||
#include <afxwin.h> // MFC core and standard components
|
||||
#include <afxext.h> // MFC extensions
|
||||
#ifndef _AFX_NO_AFXCMN_SUPPORT
|
||||
#include <afxcmn.h> // MFC support for Windows 95 Common Controls
|
||||
#endif // _AFX_NO_AFXCMN_SUPPORT
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user