Compare commits

..

No commits in common. "040c99d81bec2cd2c5fc01eea4b1f1afeff976fa" and "cdc57afed5877fefe20289effa92a8baa7912e05" have entirely different histories.

270 changed files with 1522 additions and 2006 deletions

View File

@ -42,7 +42,6 @@ include(cmake/CMakeCommon.cmake)
add_subdirectory(cmake/AI) add_subdirectory(cmake/AI)
add_subdirectory(cmake/AITest) add_subdirectory(cmake/AITest)
add_subdirectory(cmake/AIUnitTest)
add_subdirectory(cmake/Audio) add_subdirectory(cmake/Audio)
add_subdirectory(cmake/AudioTest) add_subdirectory(cmake/AudioTest)
add_subdirectory(cmake/Bugs) add_subdirectory(cmake/Bugs)

View File

@ -1,4 +1,3 @@
#pragma once
//********************************************************************************************** //**********************************************************************************************
// //

View File

@ -1,5 +1,3 @@
#pragma once
//********************************************************************************************** //**********************************************************************************************
// //
// Following are example declarations for each type of item. // Following are example declarations for each type of item.

View File

@ -1,6 +1,4 @@
#pragma once //******************************************************************************************
//******************************************************************************************
// //
type tFunction type tFunction
( (

View File

@ -1,5 +1,3 @@
#pragma once
//********************************************************************************************** //**********************************************************************************************
// //
namespace (name) namespace (name)

View File

@ -1,5 +1,3 @@
#pragma once
//********************************************************************************************** //**********************************************************************************************
// //
// Global definitions. // Global definitions.

View File

@ -1,5 +1,3 @@
#pragma once
// AI Dialogs2Dlg.h : header file // AI Dialogs2Dlg.h : header file
// //
@ -28,7 +26,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAIDialogs2Dlg) //{{AFX_VIRTUAL(CAIDialogs2Dlg)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
// Implementation // Implementation
@ -37,11 +35,11 @@ protected:
// Generated message map functions // Generated message map functions
//{{AFX_MSG(CAIDialogs2Dlg) //{{AFX_MSG(CAIDialogs2Dlg)
virtual BOOL OnInitDialog() override; virtual BOOL OnInitDialog();
afx_msg void OnPaint(); afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon(); afx_msg HCURSOR OnQueryDragIcon();
virtual void OnOK() override; virtual void OnOK();
virtual void OnCancel() override; virtual void OnCancel();
afx_msg void OnAll(); afx_msg void OnAll();
afx_msg void OnNone(); afx_msg void OnNone();
afx_msg void OnDblclkActivities(); afx_msg void OnDblclkActivities();

View File

@ -66,7 +66,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBackground) //{{AFX_VIRTUAL(CBackground)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; virtual void DoDataExchange(CDataExchange* pDX);
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
protected: protected:

View File

@ -60,7 +60,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCameraProperties) //{{AFX_VIRTUAL(CCameraProperties)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
protected: protected:

View File

@ -57,7 +57,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogAlphaColour) //{{AFX_VIRTUAL(CDialogAlphaColour)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
// Implementation // Implementation

View File

@ -85,7 +85,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogBumpPack) //{{AFX_VIRTUAL(CDialogBumpPack)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
int32 i4PageSelect; // current selected bump map page or -1 int32 i4PageSelect; // current selected bump map page or -1

View File

@ -63,7 +63,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogCulling) //{{AFX_VIRTUAL(CDialogCulling)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
// Implementation // Implementation

View File

@ -78,7 +78,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogDepthSort) //{{AFX_VIRTUAL(CDialogDepthSort)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
// Implementation // Implementation

View File

@ -57,7 +57,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogFog) //{{AFX_VIRTUAL(CDialogFog)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
protected: protected:

View File

@ -1,5 +1,3 @@
#pragma once
// DialogGamma.hpp : header file // DialogGamma.hpp : header file
// //
@ -25,7 +23,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogGamma) //{{AFX_VIRTUAL(CDialogGamma)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
// Implementation // Implementation
@ -42,7 +40,7 @@ protected:
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus); afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnClose(); afx_msg void OnClose();
virtual void OnOK() override; virtual void OnOK();
//}}AFX_MSG //}}AFX_MSG
DECLARE_MESSAGE_MAP() DECLARE_MESSAGE_MAP()
}; };

View File

@ -1,5 +1,3 @@
#pragma once
// DialogGore.hpp : header file // DialogGore.hpp : header file
// //
@ -24,7 +22,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogGore) //{{AFX_VIRTUAL(CDialogGore)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
// Implementation // Implementation

View File

@ -62,7 +62,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogGun) //{{AFX_VIRTUAL(CDialogGun)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
// Implementation // Implementation

View File

@ -50,8 +50,8 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogMagnet) //{{AFX_VIRTUAL(CDialogMagnet)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam) override; virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
// Implementation // Implementation

View File

@ -53,7 +53,7 @@ protected:
// //
//****************************************************************************************** //******************************************************************************************
virtual void SetVal(T val) override virtual void SetVal(T val)
// //
// Converts the angle (in degrees) to a cosine. // Converts the angle (in degrees) to a cosine.
// //
@ -62,7 +62,7 @@ protected:
} }
//****************************************************************************************** //******************************************************************************************
virtual T tGetVal() const override virtual T tGetVal() const
// //
// Converts the cosine to an angle (in degrees). // Converts the cosine to an angle (in degrees).
// //
@ -109,7 +109,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogMaterial) //{{AFX_VIRTUAL(CDialogMaterial)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
// Implementation // Implementation
@ -134,7 +134,7 @@ protected:
// //
//****************************************************************************************** //******************************************************************************************
virtual void Update(CController& ctrl) override; virtual void Update(CController& ctrl);
}; };

View File

@ -59,7 +59,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogTexturePack) //{{AFX_VIRTUAL(CDialogTexturePack)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
protected: protected:

View File

@ -1,5 +1,3 @@
#pragma once
// DialogMipmap.hpp : header file // DialogMipmap.hpp : header file
// //
@ -23,7 +21,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogMipmap) //{{AFX_VIRTUAL(CDialogMipmap)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
// Implementation // Implementation

View File

@ -72,7 +72,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogObject) //{{AFX_VIRTUAL(CDialogObject)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
// Implementation // Implementation

View File

@ -1,5 +1,3 @@
#pragma once
/********************************************************************************************** /**********************************************************************************************
* *
* Copyright © DreamWorks Interactive, 1997. * Copyright © DreamWorks Interactive, 1997.
@ -47,7 +45,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogOcclusion) //{{AFX_VIRTUAL(CDialogOcclusion)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
// Implementation // Implementation

View File

@ -50,7 +50,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogPartition) //{{AFX_VIRTUAL(CDialogPartition)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
// Implementation // Implementation

View File

@ -143,14 +143,14 @@ public:
} }
//****************************************************************************************** //******************************************************************************************
virtual float fGet() const override virtual float fGet() const
{ {
Assert(pfVar); Assert(pfVar);
return *pfVar; return *pfVar;
} }
//****************************************************************************************** //******************************************************************************************
virtual void Set(float f) override virtual void Set(float f)
{ {
Assert(pfVar); Assert(pfVar);
*pfVar = f; *pfVar = f;
@ -175,14 +175,14 @@ public:
} }
//****************************************************************************************** //******************************************************************************************
virtual float fGet() const override virtual float fGet() const
{ {
Assert(pfVar); Assert(pfVar);
return pphibBox ? pphibBox->*pfVar : 0.0; return pphibBox ? pphibBox->*pfVar : 0.0;
} }
//****************************************************************************************** //******************************************************************************************
virtual void Set(float f) override virtual void Set(float f)
{ {
Assert(pfVar); Assert(pfVar);
if (pphibBox) if (pphibBox)
@ -207,7 +207,7 @@ public:
} }
//****************************************************************************************** //******************************************************************************************
virtual float fGet() const override virtual float fGet() const
{ {
// Return calculated value. // Return calculated value.
if (CItemFloatBox::pphibBox) if (CItemFloatBox::pphibBox)
@ -220,7 +220,7 @@ public:
} }
//****************************************************************************************** //******************************************************************************************
virtual void Set(float f) override virtual void Set(float f)
{ {
if (CItemFloatBox::pphibBox) if (CItemFloatBox::pphibBox)
{ {

View File

@ -113,7 +113,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogPhysics) //{{AFX_VIRTUAL(CDialogPhysics)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
protected: protected:
@ -137,9 +137,9 @@ protected:
//{{AFX_MSG(CDialogPhysics) //{{AFX_MSG(CDialogPhysics)
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus); afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
virtual void OnOK() override; virtual void OnOK();
afx_msg void OnReset(); afx_msg void OnReset();
virtual void OnCancel() override; virtual void OnCancel();
//}}AFX_MSG //}}AFX_MSG
DECLARE_MESSAGE_MAP() DECLARE_MESSAGE_MAP()
}; };

View File

@ -101,7 +101,7 @@ public:
protected: protected:
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
// Implementation // Implementation
protected: protected:

View File

@ -1,5 +1,3 @@
#pragma once
// DialogRenderCache.hpp : header file // DialogRenderCache.hpp : header file
// //
@ -40,7 +38,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogRenderCache) //{{AFX_VIRTUAL(CDialogRenderCache)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
// Implementation // Implementation

View File

@ -1,5 +1,3 @@
#pragma once
// DialogScheduler.hpp : header file // DialogScheduler.hpp : header file
// //
@ -25,7 +23,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogScheduler) //{{AFX_VIRTUAL(CDialogScheduler)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
// Implementation // Implementation

View File

@ -213,7 +213,7 @@ public:
int i_steps = 100, // Number of discrete steps the scrollbar uses. int i_steps = 100, // Number of discrete steps the scrollbar uses.
int i_text_id = 0, // Associated static text control for display. int i_text_id = 0, // Associated static text control for display.
CWnd* pwnd_dialog = 0 // Containing dialog. CWnd* pwnd_dialog = 0 // Containing dialog.
) override )
// //
// Sets the scrollbar's internal values. // Sets the scrollbar's internal values.
// //
@ -244,7 +244,7 @@ public:
( (
float f_current_value, // Current value of the parameter. float f_current_value, // Current value of the parameter.
CWnd* pwnd_dialog = 0 // Containing dialog. CWnd* pwnd_dialog = 0 // Containing dialog.
) override )
// //
// Sets the scrollbar to the specified value. // Sets the scrollbar to the specified value.
// //
@ -266,7 +266,7 @@ public:
virtual float fGet virtual float fGet
( (
CWnd* pwnd_dialog = 0 // Containing dialog. CWnd* pwnd_dialog = 0 // Containing dialog.
) override )
// //
// Gets the value specified by the scrollbar. // Gets the value specified by the scrollbar.
// //

View File

@ -79,7 +79,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogSky) //{{AFX_VIRTUAL(CDialogSky)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
protected: protected:

View File

@ -166,7 +166,7 @@ public:
void TestPlay(TSoundHandle sndhnd, bool b_loop); void TestPlay(TSoundHandle sndhnd, bool b_loop);
//***************************************************************************************** //*****************************************************************************************
virtual void OnOK() override; virtual void OnOK();
//***************************************************************************************** //*****************************************************************************************
// //
@ -224,7 +224,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogSoundMaterial) //{{AFX_VIRTUAL(CDialogSoundMaterial)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
//***************************************************************************************** //*****************************************************************************************

View File

@ -60,7 +60,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogString) //{{AFX_VIRTUAL(CDialogString)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
protected: protected:

View File

@ -32,9 +32,9 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogTeleport) //{{AFX_VIRTUAL(CDialogTeleport)
public: public:
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL) override; virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
// Implementation // Implementation
@ -42,7 +42,7 @@ protected:
// Generated message map functions // Generated message map functions
//{{AFX_MSG(CDialogTeleport) //{{AFX_MSG(CDialogTeleport)
virtual void OnOK() override; virtual void OnOK();
//}}AFX_MSG //}}AFX_MSG
DECLARE_MESSAGE_MAP() DECLARE_MESSAGE_MAP()
}; };

View File

@ -1,5 +1,3 @@
#pragma once
/********************************************************************************************** /**********************************************************************************************
* *
* Copyright © DreamWorks Interactive, 1997. * Copyright © DreamWorks Interactive, 1997.
@ -96,7 +94,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogTerrain) //{{AFX_VIRTUAL(CDialogTerrain)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
// Implementation // Implementation

View File

@ -62,7 +62,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogTexturePack) //{{AFX_VIRTUAL(CDialogTexturePack)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
protected: protected:

View File

@ -56,7 +56,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogTexturePackOptions) //{{AFX_VIRTUAL(CDialogTexturePackOptions)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
protected: protected:

View File

@ -63,7 +63,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogVM) //{{AFX_VIRTUAL(CDialogVM)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
protected: protected:

View File

@ -1,5 +1,3 @@
#pragma once
/********************************************************************************************** /**********************************************************************************************
* *
* Copyright © DreamWorks Interactive, 1998. * Copyright © DreamWorks Interactive, 1998.
@ -54,7 +52,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogWater) //{{AFX_VIRTUAL(CDialogWater)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
// Implementation // Implementation

View File

@ -435,7 +435,7 @@ public:
//***************************************************************************************** //*****************************************************************************************
// //
BOOL OnInitDialog() override BOOL OnInitDialog()
// //
// Set the version and date strings. // Set the version and date strings.
// //

View File

@ -69,8 +69,8 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGUIAppApp) //{{AFX_VIRTUAL(CGUIAppApp)
public: public:
virtual BOOL InitInstance() override; virtual BOOL InitInstance();
virtual int ExitInstance() override; virtual int ExitInstance();
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
//{{AFX_MSG(CGUIAppApp) //{{AFX_MSG(CGUIAppApp)

View File

@ -620,7 +620,7 @@ public:
void Process void Process
( (
const CMessageNewRaster& msgnewr const CMessageNewRaster& msgnewr
) override; );
// //
// Processes CMessageNewRaster messages. // Processes CMessageNewRaster messages.
// //
@ -738,12 +738,12 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGUIAppDlg) //{{AFX_VIRTUAL(CGUIAppDlg)
public: public:
virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo) override; virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
virtual BOOL PreTranslateMessage(MSG* pMsg) override; virtual BOOL PreTranslateMessage(MSG* pMsg);
virtual BOOL DestroyWindow() override; virtual BOOL DestroyWindow();
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam) override; virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
@ -816,10 +816,10 @@ protected:
// Overridden from CInstance... // Overridden from CInstance...
//***************************************************************************************** //*****************************************************************************************
virtual char * pcSave(char * pc_buffer) const override; virtual char * pcSave(char * pc_buffer) const;
//***************************************************************************************** //*****************************************************************************************
virtual const char* pcLoad(const char* pc_buffer) override; virtual const char* pcLoad(const char* pc_buffer);
@ -852,7 +852,7 @@ protected:
public: public:
//{{AFX_MSG(CGUIAppDlg) //{{AFX_MSG(CGUIAppDlg)
virtual BOOL OnInitDialog() override; virtual BOOL OnInitDialog();
afx_msg void OnPaint(); afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon(); afx_msg HCURSOR OnQueryDragIcon();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);

View File

@ -189,7 +189,7 @@ protected:
// //
//****************************************************************************************** //******************************************************************************************
virtual void DDX(CDataExchange* pDX) override virtual void DDX(CDataExchange* pDX)
{ {
::DDX_Control(pDX, iID, *this); ::DDX_Control(pDX, iID, *this);
Display(); Display();
@ -204,7 +204,7 @@ protected:
} }
*/ */
//****************************************************************************************** //******************************************************************************************
virtual BOOL OnChildNotify( UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pLResult ) override virtual BOOL OnChildNotify( UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pLResult )
{ {
// Dispatch messages. // Dispatch messages.
if (message == WM_NOTIFY) if (message == WM_NOTIFY)
@ -230,7 +230,7 @@ protected:
//****************************************************************************************** //******************************************************************************************
// //
virtual void Display() const override virtual void Display() const
// //
// Display the current value. // Display the current value.
// //
@ -298,7 +298,7 @@ protected:
// //
//****************************************************************************************** //******************************************************************************************
virtual BOOL OnDeltaPos( NM_UPDOWN* pNMUpDown ) override virtual BOOL OnDeltaPos( NM_UPDOWN* pNMUpDown )
{ {
// //
// Handle spinner control. // Handle spinner control.
@ -353,7 +353,7 @@ protected:
} }
//****************************************************************************************** //******************************************************************************************
virtual void Format(char str_text[]) const override; virtual void Format(char str_text[]) const;
}; };
//****************************************************************************************** //******************************************************************************************
@ -404,7 +404,7 @@ protected:
// //
//****************************************************************************************** //******************************************************************************************
virtual BOOL OnDeltaPos( NM_UPDOWN* pNMUpDown ) override virtual BOOL OnDeltaPos( NM_UPDOWN* pNMUpDown )
{ {
if (MinMax == emmMIN) if (MinMax == emmMIN)
tMin = *ptVarClamp * tDisplayFactor; tMin = *ptVarClamp * tDisplayFactor;

View File

@ -83,7 +83,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLightProperties) //{{AFX_VIRTUAL(CLightProperties)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
protected: protected:

View File

@ -1,5 +1,3 @@
#pragma once
// ParameterDlg.h : header file // ParameterDlg.h : header file
// //
@ -47,7 +45,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CParameterDlg) //{{AFX_VIRTUAL(CParameterDlg)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
@ -56,9 +54,9 @@ protected:
// Generated message map functions // Generated message map functions
//{{AFX_MSG(CParameterDlg) //{{AFX_MSG(CParameterDlg)
virtual BOOL OnInitDialog() override; virtual BOOL OnInitDialog();
virtual void OnOK() override; virtual void OnOK();
virtual void OnCancel() override; virtual void OnCancel();
afx_msg void OnPaint(); afx_msg void OnPaint();
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnChangeEditParameter(); afx_msg void OnChangeEditParameter();

View File

@ -63,7 +63,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPerspectiveSubdivideDialog) //{{AFX_VIRTUAL(CPerspectiveSubdivideDialog)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
// Implementation // Implementation

View File

@ -52,7 +52,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogQuality) //{{AFX_VIRTUAL(CDialogQuality)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
protected: protected:

View File

@ -96,7 +96,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogSoundProp) //{{AFX_VIRTUAL(CDialogSoundProp)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
protected: protected:

View File

@ -253,8 +253,8 @@ private:
// Overrides. // Overrides.
// //
void Process(const CMessageStep&) override; void Process(const CMessageStep&);
void Process(const CMessagePaint& msgpaint) override; void Process(const CMessagePaint& msgpaint);
}; };

View File

@ -77,7 +77,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTool) //{{AFX_VIRTUAL(CTool)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
protected: protected:

View File

@ -1,4 +1,3 @@
#pragma once
//{{NO_DEPENDENCIES}} //{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file. // Microsoft Developer Studio generated include file.
// Used by GUIApp.rc // Used by GUIApp.rc

View File

@ -201,7 +201,7 @@ public:
( (
int i_parent, int i_parent,
int i_successor_maybe int i_successor_maybe
) override; );
// //
// Returns true if the second arg is a successor of the first. // Returns true if the second arg is a successor of the first.
// //
@ -749,7 +749,7 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void RemoveNode(int i_node_index) override; virtual void RemoveNode(int i_node_index);
//********************************************************************************* //*********************************************************************************
// //
@ -757,7 +757,7 @@ public:
( (
int i_parent, int i_parent,
int i_successor_maybe int i_successor_maybe
) override; );
// //
// Returns true if the second arg is a successor of the first. // Returns true if the second arg is a successor of the first.
// //
@ -770,7 +770,7 @@ public:
virtual void AddNode virtual void AddNode
( (
CAIGraphNode& node CAIGraphNode& node
) override; );
// //
// Adds a node to the graph. // Adds a node to the graph.
// //

View File

@ -654,7 +654,7 @@ public:
virtual void Process virtual void Process
( (
const CMessageStep& ms const CMessageStep& ms
) override; );
// //
// Runs the AI system for one cycle. // Runs the AI system for one cycle.
// //
@ -672,7 +672,7 @@ public:
//********************************************************************************************* //*********************************************************************************************
// //
virtual void Process(const CMessagePaint& msgpaint) override; virtual void Process(const CMessagePaint& msgpaint);
// //
// Draws any AI debugging info. // Draws any AI debugging info.
// //
@ -680,10 +680,10 @@ public:
//***************************************************************************************** //*****************************************************************************************
virtual char * pcSave(char * pc_buffer) const override; virtual char * pcSave(char * pc_buffer) const;
//***************************************************************************************** //*****************************************************************************************
virtual const char * pcLoad(const char * pc_buffer) override; virtual const char * pcLoad(const char * pc_buffer);

View File

@ -1045,13 +1045,13 @@ public:
( (
const CFeeling& feel, // The feeling used to evaluate the action. const CFeeling& feel, // The feeling used to evaluate the action.
CInfluence* pinf // The direct object of the action. CInfluence* pinf // The direct object of the action.
) override; );
// //
//****************************** //******************************
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };

View File

@ -152,7 +152,7 @@ public:
( (
const CFeeling& feel, // The feeling used to evaluate the action. const CFeeling& feel, // The feeling used to evaluate the action.
CInfluence* pinf // The direct object of the action. CInfluence* pinf // The direct object of the action.
) override; );
// //
//****************************** //******************************
@ -162,7 +162,7 @@ public:
( (
CRating rt_importance, CRating rt_importance,
CInfluence* pinf CInfluence* pinf
) override; );
// //
// Bite the influence. // Bite the influence.
// //
@ -170,7 +170,7 @@ public:
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -213,7 +213,7 @@ public:
( (
const CFeeling& feel, // The feeling used to evaluate the action. const CFeeling& feel, // The feeling used to evaluate the action.
CInfluence* pinf // The direct object of the action. CInfluence* pinf // The direct object of the action.
) override; );
// //
//****************************** //******************************
@ -223,7 +223,7 @@ public:
( (
CRating rt_importance, CRating rt_importance,
CInfluence* pinf CInfluence* pinf
) override; );
// //
// Claw the influence. // Claw the influence.
// //
@ -231,7 +231,7 @@ public:
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -267,14 +267,14 @@ public:
// //
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
//***************************************************************************************** //*****************************************************************************************
virtual void MaybeSetTargetLock(CInfluence *pinf) override; virtual void MaybeSetTargetLock(CInfluence *pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -318,7 +318,7 @@ public:
( (
const CFeeling& feel, // The feeling used to evaluate the action. const CFeeling& feel, // The feeling used to evaluate the action.
CInfluence* pinf // The direct object of the action. CInfluence* pinf // The direct object of the action.
) override; );
// //
//****************************** //******************************
@ -328,7 +328,7 @@ public:
( (
CRating rt_importance, CRating rt_importance,
CInfluence* pinf CInfluence* pinf
) override; );
// //
// Ram. // Ram.
// //
@ -349,7 +349,7 @@ public:
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -392,27 +392,27 @@ public:
// //
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual void Start(CInfluence* pinf) override; virtual void Start(CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual void DoPhaseOne(CRating rt_importance, CInfluence* pinf) override; virtual void DoPhaseOne(CRating rt_importance, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual void DoPhaseTwo(CRating rt_importance, CInfluence* pinf) override; virtual void DoPhaseTwo(CRating rt_importance, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual void DoPhaseThree(CRating rt_importance, CInfluence* pinf) override; virtual void DoPhaseThree(CRating rt_importance, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual void DoPhaseFour(CRating rt_importance, CInfluence* pinf) override; virtual void DoPhaseFour(CRating rt_importance, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -455,30 +455,30 @@ public:
// //
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual void Start(CInfluence* pinf) override; virtual void Start(CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual void Stop(CInfluence* pinf) override; virtual void Stop(CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual void DoPhaseOne(CRating rt_importance, CInfluence* pinf) override; virtual void DoPhaseOne(CRating rt_importance, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual void DoPhaseTwo(CRating rt_importance, CInfluence* pinf) override; virtual void DoPhaseTwo(CRating rt_importance, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual void DoPhaseThree(CRating rt_importance, CInfluence* pinf) override; virtual void DoPhaseThree(CRating rt_importance, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual void DoPhaseFour(CRating rt_importance, CInfluence* pinf) override; virtual void DoPhaseFour(CRating rt_importance, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -530,7 +530,7 @@ public:
( (
CRating rt_importance, CRating rt_importance,
CInfluence* pinf CInfluence* pinf
) override; );
// //
// Jump at foe and bite them as you get near. // Jump at foe and bite them as you get near.
// //
@ -538,7 +538,7 @@ public:
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -589,7 +589,7 @@ public:
( (
CRating rt_importance, CRating rt_importance,
CInfluence* pinf CInfluence* pinf
) override; );
// //
// Jump on foe and stomp/claw them. // Jump on foe and stomp/claw them.
// //
@ -597,7 +597,7 @@ public:
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -627,7 +627,7 @@ public:
//********************************************************************************* //*********************************************************************************
virtual void SetHeadPoint(CInfluence* pinf) override; virtual void SetHeadPoint(CInfluence* pinf);
//***************************************************************************************** //*****************************************************************************************
// //
@ -636,7 +636,7 @@ public:
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -673,26 +673,26 @@ public:
// //
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual void Start(); virtual void Start();
//************************************************************************************* //*************************************************************************************
virtual void DoPhaseOne(CRating rt_importance, CInfluence* pinf) override; virtual void DoPhaseOne(CRating rt_importance, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual void DoPhaseTwo(CRating rt_importance, CInfluence* pinf) override; virtual void DoPhaseTwo(CRating rt_importance, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual void DoPhaseThree(CRating rt_importance, CInfluence* pinf) override; virtual void DoPhaseThree(CRating rt_importance, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual void DoPhaseFour(CRating rt_importance, CInfluence* pinf) override; virtual void DoPhaseFour(CRating rt_importance, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -740,7 +740,7 @@ public:
( (
CRating rt_importance, CRating rt_importance,
CInfluence* pinf CInfluence* pinf
) override; );
// //
// Grab target with mouth. // Grab target with mouth.
// //
@ -748,7 +748,7 @@ public:
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -797,7 +797,7 @@ public:
( (
CRating rt_importance, CRating rt_importance,
CInfluence* pinf CInfluence* pinf
) override; );
// //
// Only works when Grabbing- throw thing held in your mouth. // Only works when Grabbing- throw thing held in your mouth.
// //
@ -805,7 +805,7 @@ public:
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -853,7 +853,7 @@ public:
( (
CRating rt_importance, CRating rt_importance,
CInfluence* pinf CInfluence* pinf
) override; );
// //
// Shake the thing held in your mouth, much as a dog does. // Shake the thing held in your mouth, much as a dog does.
// //
@ -861,7 +861,7 @@ public:
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };

View File

@ -158,7 +158,7 @@ public:
( (
CRating, //rt_importance, // The importance of the activity. CRating, //rt_importance, // The importance of the activity.
CInfluence* //pinf // The direct object of the action. CInfluence* //pinf // The direct object of the action.
) override )
// //
// //
// Notes: // Notes:
@ -202,7 +202,7 @@ public:
// //
virtual void ResetTempFlags virtual void ResetTempFlags
( (
) override; );
// //
//****************************** //******************************
@ -212,7 +212,7 @@ public:
( (
const CFeeling& feel, // The feeling used to evaluate the action. const CFeeling& feel, // The feeling used to evaluate the action.
CInfluence* pinf // The direct object of the action. CInfluence* pinf // The direct object of the action.
) override; );
// //
// Rates and Registers the activity with the synthesizer. // Rates and Registers the activity with the synthesizer.
// //
@ -228,7 +228,7 @@ public:
( (
const CFeeling& feel, // The emotional state used to evaluate the action. const CFeeling& feel, // The emotional state used to evaluate the action.
CInfluenceList* pinfl // All influences known. CInfluenceList* pinfl // All influences known.
) override; );
// //
// Rates and Registers the activity with the synthesizer. // Rates and Registers the activity with the synthesizer.
// //
@ -292,7 +292,7 @@ public:
( (
const CFeeling& feel_self, // How the animal feels inside. const CFeeling& feel_self, // How the animal feels inside.
CInfluence* pinf // What influence we are analyzing. CInfluence* pinf // What influence we are analyzing.
) override; );
// //
// Notes: // Notes:
// The CActivityDOSubBrain performs a bunch of internal processing on the // The CActivityDOSubBrain performs a bunch of internal processing on the
@ -309,7 +309,7 @@ public:
( (
const CFeeling& feel_self, // How the animal feels inside. const CFeeling& feel_self, // How the animal feels inside.
CInfluence* pinf // What influence we are analyzing. CInfluence* pinf // What influence we are analyzing.
) override; );
// //
// Notes: // Notes:
// Uses an adjusted feeling to determine the sub-activities ratings. // Uses an adjusted feeling to determine the sub-activities ratings.
@ -393,7 +393,7 @@ public:
( (
const CFeeling& feel, // The feeling used to evaluate the action. const CFeeling& feel, // The feeling used to evaluate the action.
CInfluence* pinf // The direct object of the action. CInfluence* pinf // The direct object of the action.
) override; );
// //
//****************************** //******************************
@ -403,7 +403,7 @@ public:
( (
const CFeeling& feel, // The emotional state used to evaluate the action. const CFeeling& feel, // The emotional state used to evaluate the action.
CInfluenceList* pinfl // All influences known. CInfluenceList* pinfl // All influences known.
) override; );
// //
//****************************** //******************************
}; };
@ -473,7 +473,7 @@ public:
( (
const CFeeling& feel, // The feeling used to evaluate the action. const CFeeling& feel, // The feeling used to evaluate the action.
CInfluence* pinf // The direct object of the action. CInfluence* pinf // The direct object of the action.
) override; );
// //
//****************************** //******************************
@ -483,7 +483,7 @@ public:
( (
const CFeeling& feel, // The emotional state used to evaluate the action. const CFeeling& feel, // The emotional state used to evaluate the action.
CInfluenceList* pinfl // All influences known. CInfluenceList* pinfl // All influences known.
) override; );
// //
//****************************** //******************************
}; };

View File

@ -153,7 +153,7 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
}; };

View File

@ -122,14 +122,14 @@ public:
// //
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -166,10 +166,10 @@ public:
// //
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
}; };
@ -211,7 +211,7 @@ public:
( (
CRating rt_importance, CRating rt_importance,
CInfluence* pinf CInfluence* pinf
) override; );
}; };
@ -248,10 +248,10 @@ public:
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
}; };
@ -287,10 +287,10 @@ public:
// //
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
}; };
@ -329,7 +329,7 @@ public:
( (
CRating rt_importance, CRating rt_importance,
CInfluence* pinf CInfluence* pinf
) override; );
}; };
@ -368,14 +368,14 @@ public:
( (
CRating rt_importance, CRating rt_importance,
CInfluence* pinf CInfluence* pinf
) override; );
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate virtual CRating rtRate
( (
const CFeeling& feel, // The feeling used to evaluate the action. const CFeeling& feel, // The feeling used to evaluate the action.
CInfluence* pinf // The direct object of the action. CInfluence* pinf // The direct object of the action.
) override; );
}; };

View File

@ -69,11 +69,11 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -109,14 +109,14 @@ public:
// //
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -150,11 +150,11 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -189,14 +189,14 @@ public:
// //
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -229,11 +229,11 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -266,11 +266,11 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -303,11 +303,11 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -340,11 +340,11 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -377,14 +377,14 @@ public:
// //
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };

View File

@ -100,11 +100,11 @@ public:
( (
CRating rt_importance, CRating rt_importance,
CInfluence* pinf CInfluence* pinf
) override; );
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -142,11 +142,11 @@ public:
( (
CRating rt_importance, CRating rt_importance,
CInfluence* pinf CInfluence* pinf
) override; );
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -183,11 +183,11 @@ public:
( (
CRating rt_importance, CRating rt_importance,
CInfluence* pinf CInfluence* pinf
) override; );
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -222,11 +222,11 @@ public:
( (
CRating rt_importance, CRating rt_importance,
CInfluence* pinf CInfluence* pinf
) override; );
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -257,18 +257,18 @@ public:
// //
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
//********************************************************************************* //*********************************************************************************
virtual void Act virtual void Act
( (
CRating rt_importance, CRating rt_importance,
CInfluence* pinf CInfluence* pinf
) override; );
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -304,18 +304,18 @@ public:
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
//********************************************************************************* //*********************************************************************************
virtual void Act virtual void Act
( (
CRating rt_importance, CRating rt_importance,
CInfluence* pinf CInfluence* pinf
) override; );
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -350,14 +350,14 @@ public:
// //
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };

View File

@ -136,7 +136,7 @@ public:
CInstance* const pinsTarget; // The object associated with this influence CInstance* const pinsTarget; // The object associated with this influence
// or 0 if none. // or 0 if none.
mutable CSet<EInfluenceFlag> setFlags; // A bunch of flags for an influence. CSet<EInfluenceFlag>setFlags; // A bunch of flags for an influence.
// CFeeling feelDBGWeighted; // The emotional baggage associated with the influence, // CFeeling feelDBGWeighted; // The emotional baggage associated with the influence,
@ -277,7 +277,7 @@ public:
virtual int iAddToGraph virtual int iAddToGraph
( (
CBrain* pbr // Brain to which this influence belongs. CBrain* pbr // Brain to which this influence belongs.
) override; );
// //
// Adds nodes to the pathfinding graph based on shape of the target. // Adds nodes to the pathfinding graph based on shape of the target.
// //
@ -317,7 +317,7 @@ public:
// //
virtual void CalculateNodeSuitability virtual void CalculateNodeSuitability
( (
) override; );
// //
// Decides how important the influence is for node construction (pathfinding). // Decides how important the influence is for node construction (pathfinding).
// //
@ -327,7 +327,7 @@ public:
// //
virtual TReal rRateNodeSuitability virtual TReal rRateNodeSuitability
( (
) const override; ) const;
// //
// Decided how important the influence is right now (based on rNodeSuitability). // Decided how important the influence is right now (based on rNodeSuitability).
// //
@ -352,7 +352,7 @@ public:
// //
void ResetTemporaryFlags void ResetTemporaryFlags
( (
) override; );
// //
// Resets the flags which are short-lived. // Resets the flags which are short-lived.
// //
@ -415,10 +415,6 @@ public:
// return (CInfluence)*this; // return (CInfluence)*this;
// } // }
static bool IsDiscardable(const CInfluence& influence)
{
return influence.setFlags[eifIS_DISCARDABLE];
}
}; };

View File

@ -97,14 +97,14 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -143,14 +143,14 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -186,14 +186,14 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -234,14 +234,14 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -277,11 +277,11 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -313,14 +313,14 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -356,14 +356,14 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual CRating rtRate( const CFeeling& feel,CInfluence* pinf) override; virtual CRating rtRate( const CFeeling& feel,CInfluence* pinf);
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -403,20 +403,20 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual CRating rtRate( const CFeeling& feel,CInfluence* pinf) override; virtual CRating rtRate( const CFeeling& feel,CInfluence* pinf);
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
//***************************************************************************************** //*****************************************************************************************
virtual char * pcSave(char * pc_buffer) const override; virtual char * pcSave(char * pc_buffer) const;
//***************************************************************************************** //*****************************************************************************************
virtual const char * pcLoad(const char * pc_buffer) override; virtual const char * pcLoad(const char * pc_buffer);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -456,20 +456,20 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual CRating rtRate( const CFeeling& feel,CInfluence* pinf) override; virtual CRating rtRate( const CFeeling& feel,CInfluence* pinf);
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
//***************************************************************************************** //*****************************************************************************************
virtual char * pcSave(char * pc_buffer) const override; virtual char * pcSave(char * pc_buffer) const;
//***************************************************************************************** //*****************************************************************************************
virtual const char * pcLoad(const char * pc_buffer) override; virtual const char * pcLoad(const char * pc_buffer);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -505,14 +505,14 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -548,14 +548,14 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -596,14 +596,14 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -641,14 +641,14 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -684,14 +684,14 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -729,14 +729,14 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -772,14 +772,14 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -826,17 +826,17 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override; virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
//************************************************************************************* //*************************************************************************************
virtual void Activate(bool b_active_state) override; virtual void Activate(bool b_active_state);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };

View File

@ -276,7 +276,7 @@ public:
( (
CAIGraph*, //paig, // The graph the node is in. CAIGraph*, //paig, // The graph the node is in.
int //i_node_index // The index of the node. int //i_node_index // The index of the node.
) override )
// //
//****************************** //******************************
{ {
@ -289,7 +289,7 @@ public:
( (
CAIGraphNode*, //paig, // The node to update. CAIGraphNode*, //paig, // The node to update.
TSec //s_when_used // The time the node was used. TSec //s_when_used // The time the node was used.
) override )
// //
//****************************** //******************************
{ {
@ -298,7 +298,7 @@ public:
// //
// Cast functions. // Cast functions.
// //
virtual CNHStart* pCastNHStart() override { return this; }; virtual CNHStart* pCastNHStart() { return this; };
}; };
//********************************************************************************************* //*********************************************************************************************
@ -333,7 +333,7 @@ public:
( (
CAIGraph*, //paig, // The graph the node is in. CAIGraph*, //paig, // The graph the node is in.
int //i_node_index // The index of the node. int //i_node_index // The index of the node.
) override )
// //
// Examines aign to determine its importance. // Examines aign to determine its importance.
// //
@ -352,7 +352,7 @@ public:
( (
CAIGraphNode*, //paig, // The node to update. CAIGraphNode*, //paig, // The node to update.
TSec //s_when_used // The time the node was used. TSec //s_when_used // The time the node was used.
) override )
// //
//****************************** //******************************
{ {
@ -362,7 +362,7 @@ public:
// Cast functions. // Cast functions.
// //
virtual CNHStop* pCastNHStop() override { return this; }; virtual CNHStop* pCastNHStop() { return this; };
}; };
@ -402,7 +402,7 @@ public:
( (
CAIGraph*, //paig, // The graph the node is in. CAIGraph*, //paig, // The graph the node is in.
int //i_node_index // The index of the node. int //i_node_index // The index of the node.
) override; );
//****************************** //******************************
//************************************************************************************* //*************************************************************************************
@ -411,7 +411,7 @@ public:
( (
CAIGraph* paig, // The graph the node is in. CAIGraph* paig, // The graph the node is in.
int i_node_index // The index of the node. int i_node_index // The index of the node.
) override; );
//****************************** //******************************
//************************************************************************************* //*************************************************************************************
@ -420,16 +420,16 @@ public:
( (
CAIGraphNode* paig, // The node to update. CAIGraphNode* paig, // The node to update.
TSec s_when_used // The time the node was used. TSec s_when_used // The time the node was used.
) override; );
//****************************** //******************************
//************************************************************************************* //*************************************************************************************
virtual CNodeSource* pnsReferences() override; virtual CNodeSource* pnsReferences();
// //
// Cast functions. // Cast functions.
// //
virtual CNHNodeSource* pCastNHNodeSource() override { return this; }; virtual CNHNodeSource* pCastNHNodeSource() { return this; };
}; };
#ifdef TRACK_OLD_NODES #ifdef TRACK_OLD_NODES
@ -532,7 +532,7 @@ public:
( (
CAIGraph*, //paig, // The graph the node is in. CAIGraph*, //paig, // The graph the node is in.
int //i_node_index // The index of the node. int //i_node_index // The index of the node.
) override; );
//****************************** //******************************
//************************************************************************************* //*************************************************************************************
@ -541,7 +541,7 @@ public:
( (
CAIGraph* paig, // The graph the node is in. CAIGraph* paig, // The graph the node is in.
int i_node_index // The index of the node. int i_node_index // The index of the node.
) override; );
//****************************** //******************************
//************************************************************************************* //*************************************************************************************
@ -550,7 +550,7 @@ public:
( (
CAIGraphNode* paig, // The node to update. CAIGraphNode* paig, // The node to update.
TSec s_when_used // The time the node was used. TSec s_when_used // The time the node was used.
) override; );
//****************************** //******************************
//************************************************************************************* //*************************************************************************************
@ -558,15 +558,15 @@ public:
virtual bool bReferences virtual bool bReferences
( (
const CInstance* pins const CInstance* pins
) const override; ) const;
//****************************** //******************************
//************************************************************************************* //*************************************************************************************
virtual CNodeSource* pnsReferences() override; virtual CNodeSource* pnsReferences();
// //
// Cast functions. // Cast functions.
// //
virtual CNHInfluence* pCastNHInfluence() override { return this; }; virtual CNHInfluence* pCastNHInfluence() { return this; };
}; };
#ifdef TRACK_OLD_NODES #ifdef TRACK_OLD_NODES
@ -676,7 +676,7 @@ public:
( (
CAIGraph*, //paig, // The graph the node is in. CAIGraph*, //paig, // The graph the node is in.
int //i_node_index // The index of the node. int //i_node_index // The index of the node.
) override; );
//****************************** //******************************
//************************************************************************************* //*************************************************************************************
@ -685,10 +685,10 @@ public:
( (
CAIGraph* paig, // The graph the node is in. CAIGraph* paig, // The graph the node is in.
int i_node_index // The index of the node. int i_node_index // The index of the node.
) override; );
//****************************** //******************************
virtual CNHInfluenceSurface*pCastNHInfluenceSurface() override { return this; }; virtual CNHInfluenceSurface*pCastNHInfluenceSurface() { return this; };
}; };
@ -719,15 +719,15 @@ public:
// //
//************************************************************************************* //*************************************************************************************
virtual float fRate(CAIGraph* paig, int i_node_index) override; virtual float fRate(CAIGraph* paig, int i_node_index);
//************************************************************************************* //*************************************************************************************
virtual void Delete(CAIGraph* paig, int i_node_index) override; virtual void Delete(CAIGraph* paig, int i_node_index);
// //
// Cast functions. // Cast functions.
// //
virtual CNHRandom* pCastNHRandom() override { return this; }; virtual CNHRandom* pCastNHRandom() { return this; };
}; };
//********************************************************************************************* //*********************************************************************************************
@ -762,7 +762,7 @@ public:
( (
CAIGraph* paig, // The graph the node is in. CAIGraph* paig, // The graph the node is in.
int i_node_index // The index of the node. int i_node_index // The index of the node.
) override )
// //
// Examines aign to determine its importance. // Examines aign to determine its importance.
// //
@ -784,7 +784,7 @@ public:
( (
CAIGraph* paig, // The graph the node is in. CAIGraph* paig, // The graph the node is in.
int i_node_index // The index of the node. int i_node_index // The index of the node.
) override; );
// //
// Updates any external data structs that need it when a node is deleted. // Updates any external data structs that need it when a node is deleted.
// //
@ -795,7 +795,7 @@ public:
// //
// Cast functions. // Cast functions.
// //
virtual CNHDesigner* pCastNHDesigner() override { return this; }; virtual CNHDesigner* pCastNHDesigner() { return this; };
}; };
//********************************************************************************************* //*********************************************************************************************
@ -826,14 +826,14 @@ public:
( (
CAIGraph*, //paig, // The graph the node is in. CAIGraph*, //paig, // The graph the node is in.
int //i_node_index // The index of the node. int //i_node_index // The index of the node.
) override; );
//****************************** //******************************
// //
// Cast functions. // Cast functions.
// //
virtual CNHUnknown* pCastNHUnknown() override { return this; }; virtual CNHUnknown* pCastNHUnknown() { return this; };
}; };
//********************************************************************************************* //*********************************************************************************************
@ -866,7 +866,7 @@ public:
// Cast functions. // Cast functions.
// //
virtual CNHInvalid* pCastNHInvalid() override { return this; }; virtual CNHInvalid* pCastNHInvalid() { return this; };
}; };
#define ENTRY(type, name) char name [sizeof(type)] #define ENTRY(type, name) char name [sizeof(type)]

View File

@ -108,7 +108,7 @@ public:
CPath* ppath, CPath* ppath,
CRating rt_solidity, // The max solidity through which the dino will go CRating rt_solidity, // The max solidity through which the dino will go
TReal r_close_enough // Accept a path bringing you this close to destination TReal r_close_enough // Accept a path bringing you this close to destination
) override; );
// //
// Notes: // Notes:
// Assumes that the influence list is up to date, including target distaces, // Assumes that the influence list is up to date, including target distaces,
@ -128,7 +128,7 @@ public:
CVector2<> v2_direction, // Direction of travel. CVector2<> v2_direction, // Direction of travel.
CPath* ppath, // The path to be filled by the pathfinder. CPath* ppath, // The path to be filled by the pathfinder.
CRating rt_solidity // The max solidity through which the dino will go CRating rt_solidity // The max solidity through which the dino will go
) override; );
// //
// Fills "ppath" with a path leading in the general direction "v2_direction". // Fills "ppath" with a path leading in the general direction "v2_direction".
// //

View File

@ -25,9 +25,9 @@
* *
**********************************************************************************************/ **********************************************************************************************/
#if 0
#ifndef HEADER_GAME_AI_PATHAVOIDER_HPP #ifndef HEADER_GAME_AI_PATHAVOIDER_HPP
#define HEADER_GAME_AI_PATHAVOIDER_HPP #define HEADER_GAME_AI_PATHAVOIDER_HPP
#if 0
#include "Pathfinder.hpp" #include "Pathfinder.hpp"

View File

@ -21,9 +21,9 @@
* *
**********************************************************************************************/ **********************************************************************************************/
#if 0
#ifndef HEADER_GAME_AI_PATHFAILURE_HPP #ifndef HEADER_GAME_AI_PATHFAILURE_HPP
#define HEADER_GAME_AI_PATHFAILURE_HPP #define HEADER_GAME_AI_PATHFAILURE_HPP
#if 0
class CFailureObstacle; class CFailureObstacle;
#include "Pathfinder.hpp" #include "Pathfinder.hpp"

View File

@ -81,7 +81,7 @@ public:
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -123,11 +123,11 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -163,11 +163,11 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -201,11 +201,11 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -243,11 +243,11 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };
@ -284,11 +284,11 @@ public:
// //
//********************************************************************************* //*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf) override; virtual void Act(CRating rt_importance, CInfluence* pinf);
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };

View File

@ -367,38 +367,56 @@ void CWorldView::RemoveSomeInfluences()
// unimportant enough, go ahead. // unimportant enough, go ahead.
// If we have a bunch of influences, remove one. // If we have a bunch of influences, remove one.
size_t discardable = 0; CInfluenceList::iterator pinf_lowest = inflInfluences.end();
CInfluenceList::iterator pinf = inflInfluences.begin();
CInstance* lowestInstance = nullptr; int i_discardable_count = 0;
std::list<CInstance*> todelete; std::list<const CInfluence*> lpinf_discard;
for (const auto& entry : inflInfluences) // Find the lamest influence and remove it.
// For now, we only remove one bad apple each cycle.
for (; pinf != inflInfluences.end(); pinf++)
{ {
if (gaiSystem.sNow - entry.sLastSeen > paniOwner->pbrBrain->sForgetInfluence) TReal r_importance = (*pinf).rImportance;
entry.setFlags[eifIS_DISCARDABLE] = true;
else if (entry.rImportance < r_lowest) if (gaiSystem.sNow - (*pinf).sLastSeen > paniOwner->pbrBrain->sForgetInfluence)
{ {
r_lowest = entry.rImportance; // It's been a while. Forget me, please.
lowestInstance = entry.pinsTarget; ((CInfluence*)&(*pinf))->setFlags[eifIS_DISCARDABLE] = true;
}
else if ( r_importance < r_lowest)
{
r_lowest = r_importance;
pinf_lowest = pinf;
} }
if (entry.setFlags[eifIS_DISCARDABLE]) if ((*pinf).setFlags[eifIS_DISCARDABLE])
{ {
todelete.push_back(entry.pinsTarget); // Add to discard list!
discardable++; lpinf_discard.push_back(&(*pinf));
++i_discardable_count;
} }
} }
if (lowestInstance) if (pinf_lowest != inflInfluences.end())
{ {
//Influence set is based on instance pointers, find result is guaranteed to be the correct one // Add to discard list!
iterFindInfluence(lowestInstance)->setFlags[eifIS_DISCARDABLE] = true; lpinf_discard.push_back(&(*pinf_lowest));
todelete.push_back(lowestInstance); ((CInfluence*)&(*pinf_lowest))->setFlags[eifIS_DISCARDABLE] = true;
} }
if (discardable > 10) if (i_discardable_count > 10)
for (auto* entry : todelete) {
bRemoveInfluence(entry); std::list<const CInfluence*>::iterator itpinf;
for(itpinf = lpinf_discard.begin(); itpinf != lpinf_discard.end(); ++itpinf)
{
// Is it discardable?
Assert((*itpinf)->setFlags[eifIS_DISCARDABLE]);
// Discard it.
bRemoveInfluence((*itpinf)->pinsTarget);
}
}
} }
//********************************************************************************* //*********************************************************************************

View File

@ -122,13 +122,13 @@ public:
// //
//****************************************************************************************** //******************************************************************************************
virtual void Process(const CMessageSystem& ms) override; virtual void Process(const CMessageSystem& ms);
//***************************************************************************************** //*****************************************************************************************
virtual char * pcSave(char * pc_buffer) const override; virtual char * pcSave(char * pc_buffer) const;
//***************************************************************************************** //*****************************************************************************************
virtual const char * pcLoad(const char * pc_buffer) override; virtual const char * pcLoad(const char * pc_buffer);
}; };
// Single global instance. // Single global instance.

View File

@ -178,7 +178,7 @@ public:
// Overrides. // Overrides.
// //
void Process(const CMessagePaint& msgpaint) override; void Process(const CMessagePaint& msgpaint);
}; };
// Single global instance. // Single global instance.

View File

@ -158,36 +158,36 @@ public:
// //
//***************************************************************************************** //*****************************************************************************************
virtual bool bUse(bool b_repeat) override; virtual bool bUse(bool b_repeat);
//***************************************************************************************** //*****************************************************************************************
virtual void PickedUp() override; virtual void PickedUp();
//***************************************************************************************** //*****************************************************************************************
virtual void Process(const CMessageMove& msg) override; virtual void Process(const CMessageMove& msg);
//***************************************************************************************** //*****************************************************************************************
virtual void Process(const CMessageStep& msg) override; virtual void Process(const CMessageStep& msg);
//***************************************************************************************** //*****************************************************************************************
virtual CInstance* pinsCopy() const override; virtual CInstance* pinsCopy() const;
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
//***************************************************************************************** //*****************************************************************************************
virtual void Cast(CGun** ppgun) override virtual void Cast(CGun** ppgun)
{ {
*ppgun = this; *ppgun = this;
} }
//***************************************************************************************** //*****************************************************************************************
virtual char * pcSave(char * pc_buffer) const override; virtual char * pcSave(char * pc_buffer) const;
//***************************************************************************************** //*****************************************************************************************
virtual const char * pcLoad(const char * pc_buffer) override; virtual const char * pcLoad(const char * pc_buffer);
//***************************************************************************************** //*****************************************************************************************
// Return true if all referenced names are loaded, otherwise return false to prevent the // Return true if all referenced names are loaded, otherwise return false to prevent the
@ -236,7 +236,7 @@ public:
static void ResetMuzzleFlash(); static void ResetMuzzleFlash();
//***************************************************************************************** //*****************************************************************************************
virtual bool bCanHaveChildren() override; virtual bool bCanHaveChildren();
// CInstance* pinsCopy() const; // CInstance* pinsCopy() const;

View File

@ -1246,7 +1246,7 @@ private:
const CHandle& h_object, // handle of object in value table. const CHandle& h_object, // handle of object in value table.
CValueTable* pvtable, // Value Table. CValueTable* pvtable, // Value Table.
const CInfo* pinfo // The info to copy. Create a new one if 0. const CInfo* pinfo // The info to copy. Create a new one if 0.
) override )
{ {
// Woo. Hellish. // Woo. Hellish.
Assert(!pinfo); Assert(!pinfo);
@ -1371,7 +1371,7 @@ private:
const CHandle& h_object, // handle of object in value table. const CHandle& h_object, // handle of object in value table.
CValueTable* pvtable, // Value Table. CValueTable* pvtable, // Value Table.
const CInfo* pinfo // The info to copy. Create a new one if 0. const CInfo* pinfo // The info to copy. Create a new one if 0.
) override )
{ {
#define PARSE_SAMPLE_SET(ss)\ #define PARSE_SAMPLE_SET(ss)\
@ -1593,13 +1593,13 @@ private:
} }
//***************************************************************************************** //*****************************************************************************************
virtual CInstance* pinsHeldObject() const override virtual CInstance* pinsHeldObject() const
{ {
return bWithin(eHandHolding, ehhHOLDING, ehhDROPPING) ? pinsHeld : 0; return bWithin(eHandHolding, ehhHOLDING, ehhDROPPING) ? pinsHeld : 0;
} }
//***************************************************************************************** //*****************************************************************************************
virtual bool bHandInteract(const CInstance* pins) const override virtual bool bHandInteract(const CInstance* pins) const
{ {
if (eHandActivity == ehaINACTIVE && eHandHolding < ehhHOLDING) if (eHandActivity == ehaINACTIVE && eHandHolding < ehhHOLDING)
// Hand is inactive, and thus interacts with NOTHING, do you hear? // Hand is inactive, and thus interacts with NOTHING, do you hear?
@ -1614,7 +1614,7 @@ private:
} }
//***************************************************************************************** //*****************************************************************************************
virtual void MaybeTalkAboutAmmo(int i_current, int i_max) override virtual void MaybeTalkAboutAmmo(int i_current, int i_max)
{ {
// Bad, Bad, Bad, No negative ammo counts please. // Bad, Bad, Bad, No negative ammo counts please.
if (i_current < 0) if (i_current < 0)
@ -1641,7 +1641,7 @@ private:
} }
//***************************************************************************************** //*****************************************************************************************
virtual void TalkAboutApproximateAmmo(int i_sample) override virtual void TalkAboutApproximateAmmo(int i_sample)
{ {
// ALWAYS say approximates, because they happen so rarely. // ALWAYS say approximates, because they happen so rarely.
@ -1670,7 +1670,7 @@ private:
int i_current, int i_current,
int i_maximum, int i_maximum,
bool b_approximate bool b_approximate
) override )
{ {
// Bad, Bad, Bad, No negative ammo counts please. // Bad, Bad, Bad, No negative ammo counts please.
if (i_current < 0) if (i_current < 0)
@ -1731,7 +1731,7 @@ private:
} }
//***************************************************************************************** //*****************************************************************************************
virtual bool bCanTalk() override virtual bool bCanTalk()
{ {
// Is Anne already speaking? // Is Anne already speaking?
Assert(padAudioDaemon); Assert(padAudioDaemon);
@ -1746,7 +1746,7 @@ private:
} }
//***************************************************************************************** //*****************************************************************************************
virtual void StopTalking() override virtual void StopTalking()
{ {
// Kill all voiceovers and music. // Kill all voiceovers and music.
AlwaysAssert(padAudioDaemon); AlwaysAssert(padAudioDaemon);
@ -1764,13 +1764,13 @@ private:
} }
//***************************************************************************************** //*****************************************************************************************
virtual void JumpSound() override virtual void JumpSound()
{ {
Say(&ssJump); Say(&ssJump);
} }
//***************************************************************************************** //*****************************************************************************************
virtual void Pickup(CInstance* pins_obj) override virtual void Pickup(CInstance* pins_obj)
{ {
// If there is a preference, set the hand mesh. // If there is a preference, set the hand mesh.
// Must be done before magneting, so new hand box takes effect. // Must be done before magneting, so new hand box takes effect.
@ -1814,7 +1814,7 @@ private:
} }
//***************************************************************************************** //*****************************************************************************************
virtual void Drop(CVector3<> v3_throw = v3Zero) override virtual void Drop(CVector3<> v3_throw = v3Zero)
{ {
// See if we're holding. // See if we're holding.
if (!bWithin(eHandHolding, ehhHOLDING, ehhDROPPING)) if (!bWithin(eHandHolding, ehhHOLDING, ehhDROPPING))
@ -1883,7 +1883,7 @@ private:
} }
//***************************************************************************************** //*****************************************************************************************
virtual void CheckForDrop() override virtual void CheckForDrop()
{ {
// See if we're holding. // See if we're holding.
if (!PlayerSettings.bAllowDrop) if (!PlayerSettings.bAllowDrop)
@ -1926,7 +1926,7 @@ private:
} }
//***************************************************************************************** //*****************************************************************************************
virtual void DrawPhysics(CDraw& draw, CCamera& cam) const override virtual void DrawPhysics(CDraw& draw, CCamera& cam) const
{ {
#if bVER_BONES() #if bVER_BONES()
CTransform3<> tf3_screen = cam.tf3ToHomogeneousScreen(); CTransform3<> tf3_screen = cam.tf3ToHomogeneousScreen();
@ -1972,13 +1972,13 @@ private:
// //
//***************************************************************************************** //*****************************************************************************************
virtual bool bIncludeInBuildPart() const override virtual bool bIncludeInBuildPart() const
{ {
return false; return false;
} }
//***************************************************************************************** //*****************************************************************************************
virtual void HandleDamage(float f_damage, const CInstance* pins_aggressor, const CInstance* pins_me) override virtual void HandleDamage(float f_damage, const CInstance* pins_aggressor, const CInstance* pins_me)
{ {
// What were my hit points before? // What were my hit points before?
Assert(fMaxHitPoints > 0.0f); Assert(fMaxHitPoints > 0.0f);
@ -2086,7 +2086,7 @@ private:
} }
//***************************************************************************************** //*****************************************************************************************
virtual float fWieldDamage(const CInstance* pins_weapon, float f_coll_damage) const override virtual float fWieldDamage(const CInstance* pins_weapon, float f_coll_damage) const
{ {
if (iSwinging == 2) if (iSwinging == 2)
f_coll_damage *= PlayerSettings.fSwingDamageMul; f_coll_damage *= PlayerSettings.fSwingDamageMul;
@ -2094,7 +2094,7 @@ private:
} }
//***************************************************************************************** //*****************************************************************************************
virtual void Substitute(int i_sub) override virtual void Substitute(int i_sub)
{ {
// Save our requested substitution. // Save our requested substitution.
// Actually perform the substitution next control message. // Actually perform the substitution next control message.
@ -2107,7 +2107,7 @@ private:
} }
//***************************************************************************************** //*****************************************************************************************
virtual CPlacement3<> p3HeadPlacement() const override virtual CPlacement3<> p3HeadPlacement() const
{ {
return p3Head; return p3Head;
} }
@ -2118,7 +2118,7 @@ private:
// //
//****************************************************************************************** //******************************************************************************************
virtual void Move(const CPlacement3<>& p3_new, CEntity* pet_sender) override virtual void Move(const CPlacement3<>& p3_new, CEntity* pet_sender)
{ {
if (pet_sender == pphSystem) if (pet_sender == pphSystem)
{ {
@ -2223,7 +2223,7 @@ private:
} }
//***************************************************************************************** //*****************************************************************************************
virtual void Process(const CMessageSystem& msgsys) override virtual void Process(const CMessageSystem& msgsys)
{ {
if (msgsys.escCode == escSTOP_SIM) if (msgsys.escCode == escSTOP_SIM)
{ {
@ -2240,7 +2240,7 @@ private:
} }
//***************************************************************************************** //*****************************************************************************************
virtual void Process(const CMessageStep& msgstep) override virtual void Process(const CMessageStep& msgstep)
{ {
// Invoke base class message handling. // Invoke base class message handling.
CAnimate::Process(msgstep); CAnimate::Process(msgstep);
@ -2334,7 +2334,7 @@ private:
} }
//***************************************************************************************** //*****************************************************************************************
virtual void Process(const CMessageControl& msgc) override virtual void Process(const CMessageControl& msgc)
{ {
bool b_use = false; bool b_use = false;
@ -3108,7 +3108,7 @@ private:
} }
//****************************************************************************************** //******************************************************************************************
virtual void Process(const CMessageCollision& msgcoll) override virtual void Process(const CMessageCollision& msgcoll)
{ {
CTimeBlock tmb(&psCollisionMsgPlayer); CTimeBlock tmb(&psCollisionMsgPlayer);
@ -3197,7 +3197,7 @@ private:
} }
//***************************************************************************************** //*****************************************************************************************
virtual void Process(const CMessagePhysicsReq& msgpr) override virtual void Process(const CMessagePhysicsReq& msgpr)
{ {
if (!bPhysics) if (!bPhysics)
return; return;
@ -3237,7 +3237,7 @@ private:
} }
//***************************************************************************************** //*****************************************************************************************
virtual void Process(const CMessageMove& msgmv) override virtual void Process(const CMessageMove& msgmv)
{ {
CTimeBlock tmb(&psMoveMsgPlayer); CTimeBlock tmb(&psMoveMsgPlayer);
@ -3269,7 +3269,7 @@ private:
} }
//***************************************************************************************** //*****************************************************************************************
virtual char* pcSave(char* pc) const override virtual char* pcSave(char* pc) const
{ {
// Save the instance location data. // Save the instance location data.
pc = CAnimate::pcSave(pc); pc = CAnimate::pcSave(pc);
@ -3316,7 +3316,7 @@ private:
} }
//***************************************************************************************** //*****************************************************************************************
virtual const char* pcLoad(const char* pc) override virtual const char* pcLoad(const char* pc)
{ {
pc = CAnimate::pcLoad(pc); pc = CAnimate::pcLoad(pc);
@ -3388,7 +3388,7 @@ private:
} }
//***************************************************************************************** //*****************************************************************************************
virtual void Cast(CPlayer** ppplay) override virtual void Cast(CPlayer** ppplay)
{ {
*ppplay = this; *ppplay = this;
} }
@ -3397,7 +3397,7 @@ private:
// //
virtual const char* strPartType virtual const char* strPartType
( (
) const override ) const
// //
// Returns a partition type string. // Returns a partition type string.
// //
@ -3407,7 +3407,7 @@ private:
} }
//***************************************************************************************** //*****************************************************************************************
virtual void InitializeDataStatic() override virtual void InitializeDataStatic()
{ {
SetFlagHardwareAble(true); SetFlagHardwareAble(true);
CPartition::InitializeDataStatic(); CPartition::InitializeDataStatic();

View File

@ -85,16 +85,16 @@ public:
// //
//***************************************************************************************** //*****************************************************************************************
virtual bool bUse(bool b_repeat) override; virtual bool bUse(bool b_repeat);
//***************************************************************************************** //*****************************************************************************************
virtual void PickedUp() override; virtual void PickedUp();
//***************************************************************************************** //*****************************************************************************************
virtual CInstance* pinsCopy() const override; virtual CInstance* pinsCopy() const;
//***************************************************************************************** //*****************************************************************************************
virtual void Cast(CSocket** psock) override virtual void Cast(CSocket** psock)
{ {
*psock = this; *psock = this;
} }
@ -102,7 +102,7 @@ public:
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
}; };

View File

@ -62,7 +62,7 @@ public:
virtual ~CMultiWnd() {;} virtual ~CMultiWnd() {;}
protected: protected:
virtual LRESULT BaseHandler(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) override; virtual LRESULT BaseHandler(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
}; };
@ -83,10 +83,10 @@ public:
virtual void OnOK(); virtual void OnOK();
protected: protected:
virtual LRESULT BaseHandler(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) override; virtual LRESULT BaseHandler(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
virtual void OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify) override; virtual void OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify);
virtual BOOL OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam) override; virtual BOOL OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam);
}; };

View File

@ -63,13 +63,13 @@ public:
HWND m_hwndList; HWND m_hwndList;
protected: protected:
void OnClose(HWND hwnd) override; void OnClose(HWND hwnd);
void OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify) override; void OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify);
void OnDestroy(HWND hwnd) override; void OnDestroy(HWND hwnd);
BOOL OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam) override; BOOL OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam);
LRESULT OnNotify(HWND hwnd, int idCtrl, LPNMHDR pnmhdr) override; LRESULT OnNotify(HWND hwnd, int idCtrl, LPNMHDR pnmhdr);
void OnParentNotify(HWND hwnd, UINT msg, HWND hwndChild, int idChild) override; void OnParentNotify(HWND hwnd, UINT msg, HWND hwndChild, int idChild);
void OnDropFiles(HWND hwnd, HDROP hdrop) override; void OnDropFiles(HWND hwnd, HDROP hdrop);
}; };
@ -85,8 +85,8 @@ public:
std::vector<GBUILD> m_vGBuild; std::vector<GBUILD> m_vGBuild;
protected: protected:
void OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify) override; void OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify);
BOOL OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam) override; BOOL OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam);
}; };

View File

@ -1,5 +1,3 @@
#pragma once
// InitGUIApp.h : main header file for the INITGUIAPP application // InitGUIApp.h : main header file for the INITGUIAPP application
// //
@ -23,7 +21,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CInitGUIAppApp) //{{AFX_VIRTUAL(CInitGUIAppApp)
public: public:
virtual BOOL InitInstance() override; virtual BOOL InitInstance();
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
// Implementation // Implementation

View File

@ -40,7 +40,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAboutDlg) //{{AFX_VIRTUAL(CAboutDlg)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
// Implementation // Implementation

View File

@ -1,5 +1,3 @@
#pragma once
// InitGUIAppDlg.h : header file // InitGUIAppDlg.h : header file
// //
@ -27,7 +25,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CInitGUIAppDlg) //{{AFX_VIRTUAL(CInitGUIAppDlg)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
// Implementation // Implementation
@ -41,11 +39,11 @@ protected:
// Generated message map functions // Generated message map functions
//{{AFX_MSG(CInitGUIAppDlg) //{{AFX_MSG(CInitGUIAppDlg)
virtual BOOL OnInitDialog() override; virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint(); afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon(); afx_msg HCURSOR OnQueryDragIcon();
virtual void OnOK() override; virtual void OnOK();
afx_msg void OnSelchangeComboVideoguid(); afx_msg void OnSelchangeComboVideoguid();
afx_msg void OnSelchangeComboD3d(); afx_msg void OnSelchangeComboD3d();
afx_msg void OnSelchangeListCard(); afx_msg void OnSelchangeListCard();

View File

@ -1,5 +1,3 @@
#pragma once
//{{NO_DEPENDENCIES}} //{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file. // Microsoft Developer Studio generated include file.
// Used by InitGUIApp.rc // Used by InitGUIApp.rc

View File

@ -1,5 +1,3 @@
#pragma once
// stdafx.h : include file for standard system include files, // stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but // or project specific include files that are used frequently, but
// are changed infrequently // are changed infrequently

View File

@ -1,5 +1,3 @@
#pragma once
// InitGUIApp2.h : main header file for the INITGUIAPP2 application // InitGUIApp2.h : main header file for the INITGUIAPP2 application
// //
@ -23,7 +21,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CInitGUIApp2App) //{{AFX_VIRTUAL(CInitGUIApp2App)
public: public:
virtual BOOL InitInstance() override; virtual BOOL InitInstance();
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
// Implementation // Implementation

View File

@ -1,5 +1,3 @@
#pragma once
// InitGUIApp2Dlg.h : header file // InitGUIApp2Dlg.h : header file
// //
@ -22,7 +20,7 @@ public:
// ClassWizard generated virtual function overrides // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CInitGUIApp2Dlg) //{{AFX_VIRTUAL(CInitGUIApp2Dlg)
protected: protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL //}}AFX_VIRTUAL
// Implementation // Implementation
@ -31,10 +29,10 @@ protected:
// Generated message map functions // Generated message map functions
//{{AFX_MSG(CInitGUIApp2Dlg) //{{AFX_MSG(CInitGUIApp2Dlg)
virtual BOOL OnInitDialog() override; virtual BOOL OnInitDialog();
afx_msg void OnPaint(); afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon(); afx_msg HCURSOR OnQueryDragIcon();
virtual void OnOK() override; virtual void OnOK();
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus); afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
afx_msg void OnCheckStuffChildren(); afx_msg void OnCheckStuffChildren();

View File

@ -1,5 +1,3 @@
#pragma once
//{{NO_DEPENDENCIES}} //{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file. // Microsoft Developer Studio generated include file.
// Used by InitGUIApp2.rc // Used by InitGUIApp2.rc

View File

@ -1,5 +1,3 @@
#pragma once
// stdafx.h : include file for standard system include files, // stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but // or project specific include files that are used frequently, but
// are changed infrequently // are changed infrequently

View File

@ -103,37 +103,37 @@ protected:
// //
// Output Mono 8 Bit data, the u4_byte count will be a multiple of 1 // Output Mono 8 Bit data, the u4_byte count will be a multiple of 1
// //
virtual uint32 u4DecompressMono8bit(uint8* pu1_dst, uint32 u4_byte_count) override; virtual uint32 u4DecompressMono8bit(uint8* pu1_dst, uint32 u4_byte_count);
//****************************************************************************************** //******************************************************************************************
// Output Mono 16 Bit data, the u4_byte count will be a multiple of 2 // Output Mono 16 Bit data, the u4_byte count will be a multiple of 2
// Returns the number of bytes put into the output buffer // Returns the number of bytes put into the output buffer
// //
virtual uint32 u4DecompressMono16bit(uint8* pu1_dst, uint32 u4_byte_count) override; virtual uint32 u4DecompressMono16bit(uint8* pu1_dst, uint32 u4_byte_count);
//****************************************************************************************** //******************************************************************************************
// Output Stereo 8 Bit data, the u4_byte count will be a multiple of 2 // Output Stereo 8 Bit data, the u4_byte count will be a multiple of 2
// Returns the number of bytes put into the output buffer // Returns the number of bytes put into the output buffer
// //
virtual uint32 u4DecompressStereo8bit(uint8* pu1_dst, uint32 u4_byte_count) override; virtual uint32 u4DecompressStereo8bit(uint8* pu1_dst, uint32 u4_byte_count);
//****************************************************************************************** //******************************************************************************************
// Output Stereo 16 Bit data, the u4_byte count will be a multiple of 4 // Output Stereo 16 Bit data, the u4_byte count will be a multiple of 4
// Returns the number of bytes put into the output buffer // Returns the number of bytes put into the output buffer
// //
virtual uint32 u4DecompressStereo16bit(uint8* pu1_dst, uint32 u4_byte_count) override; virtual uint32 u4DecompressStereo16bit(uint8* pu1_dst, uint32 u4_byte_count);
//****************************************************************************************** //******************************************************************************************
// Set the base address and size of the current block that is avaliable for decompressing // Set the base address and size of the current block that is avaliable for decompressing
// Returns the number of bytes put into the output buffer // Returns the number of bytes put into the output buffer
// //
virtual void SetSampleSource(uint8* pu1_src, uint32 u4_src_len) override; virtual void SetSampleSource(uint8* pu1_src, uint32 u4_src_len);
//****************************************************************************************** //******************************************************************************************
// get the number of bytes remaining in the current block, or 0 if none. // get the number of bytes remaining in the current block, or 0 if none.
// //
virtual uint32 u4GetRemainingData() override; virtual uint32 u4GetRemainingData();
}; };

View File

@ -361,17 +361,17 @@ public:
//****************************************************************************************** //******************************************************************************************
// The messages that we respond to. // The messages that we respond to.
// //
void Process(const CMessageStep& msg_step) override; void Process(const CMessageStep& msg_step);
void Process(const CMessageMove& msg) override; void Process(const CMessageMove& msg);
void Process(const CMessageCollision& msg) override; void Process(const CMessageCollision& msg);
void Process(const CMessageAudio& msg_audio) override; void Process(const CMessageAudio& msg_audio);
void Process(const CMessageSystem& msg) override; void Process(const CMessageSystem& msg);
//***************************************************************************************** //*****************************************************************************************
char* pcSave(char* pc) const override; char* pcSave(char* pc) const;
//***************************************************************************************** //*****************************************************************************************
const char* pcLoad(const char* pc) override; const char* pcLoad(const char* pc);
//***************************************************************************************** //*****************************************************************************************
char *pcSaveSample char *pcSaveSample
@ -390,7 +390,7 @@ public:
//***************************************************************************************** //*****************************************************************************************
// //
void SaveDefaults() override; void SaveDefaults();
// //
// Save the default values of the user modifiable settings. // Save the default values of the user modifiable settings.
// //
@ -398,7 +398,7 @@ public:
//***************************************************************************************** //*****************************************************************************************
// //
void RestoreDefaults() override; void RestoreDefaults();
// //
// Restore the default values of the user modifiable settings. // Restore the default values of the user modifiable settings.
// //

View File

@ -90,7 +90,7 @@ protected:
// //
// Output Mono 8 Bit data, the u4_byte count will be a multiple of 1 // Output Mono 8 Bit data, the u4_byte count will be a multiple of 1
// //
virtual uint32 u4DecompressMono8bit(uint8* pu1_dst, uint32 u4_byte_count) override virtual uint32 u4DecompressMono8bit(uint8* pu1_dst, uint32 u4_byte_count)
{ {
uint32 u4_bytes; uint32 u4_bytes;
@ -109,7 +109,7 @@ protected:
// Output Mono 16 Bit data, the u4_byte count will be a multiple of 2 // Output Mono 16 Bit data, the u4_byte count will be a multiple of 2
// Returns the number of bytes put into the output buffer // Returns the number of bytes put into the output buffer
// //
virtual uint32 u4DecompressMono16bit(uint8* pu1_dst, uint32 u4_byte_count) override virtual uint32 u4DecompressMono16bit(uint8* pu1_dst, uint32 u4_byte_count)
{ {
uint32 u4_bytes; uint32 u4_bytes;
@ -128,7 +128,7 @@ protected:
// Output Stereo 8 Bit data, the u4_byte count will be a multiple of 2 // Output Stereo 8 Bit data, the u4_byte count will be a multiple of 2
// Returns the number of bytes put into the output buffer // Returns the number of bytes put into the output buffer
// //
virtual uint32 u4DecompressStereo8bit(uint8* pu1_dst, uint32 u4_byte_count) override virtual uint32 u4DecompressStereo8bit(uint8* pu1_dst, uint32 u4_byte_count)
{ {
uint32 u4_bytes; uint32 u4_bytes;
@ -147,7 +147,7 @@ protected:
// Output Stereo 16 Bit data, the u4_byte count will be a multiple of 4 // Output Stereo 16 Bit data, the u4_byte count will be a multiple of 4
// Returns the number of bytes put into the output buffer // Returns the number of bytes put into the output buffer
// //
virtual uint32 u4DecompressStereo16bit(uint8* pu1_dst, uint32 u4_byte_count) override virtual uint32 u4DecompressStereo16bit(uint8* pu1_dst, uint32 u4_byte_count)
{ {
uint32 u4_bytes; uint32 u4_bytes;
@ -166,7 +166,7 @@ protected:
// Set the base address and size of the current block that is avaliable for decompressing // Set the base address and size of the current block that is avaliable for decompressing
// Returns the number of bytes put into the output buffer // Returns the number of bytes put into the output buffer
// //
virtual void SetSampleSource(uint8* pu1_src, uint32 u4_src_len) override virtual void SetSampleSource(uint8* pu1_src, uint32 u4_src_len)
{ {
pu1SourceData = pu1_src; pu1SourceData = pu1_src;
u4SourceDataSize = u4_src_len; u4SourceDataSize = u4_src_len;
@ -175,7 +175,7 @@ protected:
//****************************************************************************************** //******************************************************************************************
// get the number of bytes remaining in the current block, or 0 if none. // get the number of bytes remaining in the current block, or 0 if none.
// //
virtual uint32 u4GetRemainingData() override virtual uint32 u4GetRemainingData()
{ {
return u4SourceDataSize; return u4SourceDataSize;
} }

View File

@ -193,8 +193,8 @@ public:
// //
// Message that we need to process // Message that we need to process
// //
void Process(const CMessageStep& msg_step) override; void Process(const CMessageStep& msg_step);
void Process(const CMessageSystem& msg_system) override; void Process(const CMessageSystem& msg_system);
// start and stop input capture, initial state is not captured // start and stop input capture, initial state is not captured
void Capture(bool b_state = true); void Capture(bool b_state = true);

View File

@ -193,14 +193,14 @@ public:
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
//***************************************************************************************** //*****************************************************************************************
virtual char * pcSave(char * pc_buffer) const override; virtual char * pcSave(char * pc_buffer) const;
//***************************************************************************************** //*****************************************************************************************
virtual const char * pcLoad(const char * pc_buffer) override; virtual const char * pcLoad(const char * pc_buffer);
// //
@ -211,56 +211,56 @@ public:
virtual void PreRender virtual void PreRender
( (
CRenderContext& renc // Target, camera, settings, etc. CRenderContext& renc // Target, camera, settings, etc.
) override; );
//****************************************************************************************** //******************************************************************************************
virtual void Process virtual void Process
( (
const CMessagePhysicsReq& msgpr const CMessagePhysicsReq& msgpr
) override; );
//lint -save -e1411 //lint -save -e1411
//****************************************************************************************** //******************************************************************************************
virtual void Process virtual void Process
( (
const CMessageCollision& msgcoll const CMessageCollision& msgcoll
) override; );
//****************************************************************************************** //******************************************************************************************
virtual void Process virtual void Process
( (
const CMessageMove& msgmv const CMessageMove& msgmv
) override; );
//****************************************************************************************** //******************************************************************************************
virtual void Process virtual void Process
( (
const CMessageDelete& msgdel const CMessageDelete& msgdel
) override; );
//****************************************************************************************** //******************************************************************************************
virtual void Process virtual void Process
( (
const CMessageDeath& msgdeath const CMessageDeath& msgdeath
) override; );
//***************************************************************************************** //*****************************************************************************************
virtual void HandleDamage virtual void HandleDamage
( (
float f_damage, const CInstance* pins_aggressor = 0, const CInstance* pins_me = 0 float f_damage, const CInstance* pins_aggressor = 0, const CInstance* pins_me = 0
) override; );
//***************************************************************************************** //*****************************************************************************************
virtual CInstance* pinsCopy virtual CInstance* pinsCopy
( (
) const override; // Makes a copy of this ) const; // Makes a copy of this
// //
// Identifier functions. // Identifier functions.
// //
//***************************************************************************************** //*****************************************************************************************
virtual void Cast(CAnimal** ppani) override virtual void Cast(CAnimal** ppani)
{ {
*ppani = this; *ppani = this;
} }

View File

@ -296,7 +296,7 @@ public:
// //
virtual bool bCanHaveChildren virtual bool bCanHaveChildren
( (
) override; );
// //
// Returns 'false.' // Returns 'false.'
// //
@ -430,27 +430,27 @@ public:
//***************************************************************************************** //*****************************************************************************************
virtual int iGetTeam() const override; virtual int iGetTeam() const;
//***************************************************************************************** //*****************************************************************************************
virtual const CAnimate* paniGetOwner() const override; virtual const CAnimate* paniGetOwner() const;
//***************************************************************************************** //*****************************************************************************************
virtual const CBoundVol* pbvBoundingVol() const override; virtual const CBoundVol* pbvBoundingVol() const;
//***************************************************************************************** //*****************************************************************************************
virtual CInstance* pinsCopy() const override; virtual CInstance* pinsCopy() const;
#if VER_TEST #if VER_TEST
//***************************************************************************************** //*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length) override; virtual int iGetDescription(char *buffer, int i_buffer_length);
#endif #endif
//***************************************************************************************** //*****************************************************************************************
virtual char * pcSave(char * pc_buffer) const override; virtual char * pcSave(char * pc_buffer) const;
//***************************************************************************************** //*****************************************************************************************
virtual const char * pcLoad(const char * pc_buffer) override; virtual const char * pcLoad(const char * pc_buffer);
// //
// Message processing overrides. // Message processing overrides.
@ -461,31 +461,31 @@ public:
( (
const CPlacement3<>& p3_new, const CPlacement3<>& p3_new,
CEntity* pet_sender = 0 CEntity* pet_sender = 0
) override; );
//****************************************************************************************** //******************************************************************************************
virtual void Process virtual void Process
( (
const CMessagePhysicsReq& msgpr const CMessagePhysicsReq& msgpr
) override; );
//***************************************************************************************** //*****************************************************************************************
virtual void Process virtual void Process
( (
const CMessageCollision& msgcoll // A collision event. const CMessageCollision& msgcoll // A collision event.
) override; );
//***************************************************************************************** //*****************************************************************************************
virtual void PreRender virtual void PreRender
( (
CRenderContext& renc // Target, camera, settings, etc. CRenderContext& renc // Target, camera, settings, etc.
) override; );
//****************************************************************************************** //******************************************************************************************
virtual void Process virtual void Process
( (
const CMessageStep& msgstep const CMessageStep& msgstep
) override; );
// //
// Identifier functions. // Identifier functions.
@ -493,7 +493,7 @@ public:
//***************************************************************************************** //*****************************************************************************************
//lint -save -e1411 //lint -save -e1411
virtual void Cast(CAnimate** ppant) override virtual void Cast(CAnimate** ppant)
{ {
*ppant = this; *ppant = this;
} }
@ -589,15 +589,15 @@ public:
// //
//***************************************************************************************** //*****************************************************************************************
virtual int iGetTeam() const override; virtual int iGetTeam() const;
//***************************************************************************************** //*****************************************************************************************
virtual const CAnimate* paniGetOwner() const override; virtual const CAnimate* paniGetOwner() const;
//***************************************************************************************** //*****************************************************************************************
virtual CInstance* pinsCopy() const override; virtual CInstance* pinsCopy() const;
virtual void Cast(CBoundaryBox** ppbb) override virtual void Cast(CBoundaryBox** ppbb)
{ {
*ppbb = this; *ppbb = this;
} }

View File

@ -255,13 +255,13 @@ public:
// //
//***************************************************************************************** //*****************************************************************************************
virtual void Process(const CMessageStep&) override; virtual void Process(const CMessageStep&);
//***************************************************************************************** //*****************************************************************************************
virtual char * pcSave(char * pc_buffer) const override; virtual char * pcSave(char * pc_buffer) const;
//***************************************************************************************** //*****************************************************************************************
virtual const char * pcLoad(const char * pc_buffer) override; virtual const char * pcLoad(const char * pc_buffer);
}; };
// Single global instance. // Single global instance.

View File

@ -83,8 +83,8 @@ public:
// //
//***************************************************************************************** //*****************************************************************************************
virtual void Process(const CMessagePaint&) override; virtual void Process(const CMessagePaint&);
virtual void Process(const CMessageSystem&) override; virtual void Process(const CMessageSystem&);
}; };
// Single global instance. // Single global instance.

View File

@ -185,14 +185,14 @@ public:
// //
//lint -save -e1411 //lint -save -e1411
virtual void Cast(CEntity** ppet) override virtual void Cast(CEntity** ppet)
{ {
*ppet = this; *ppet = this;
} }
//lint -restore //lint -restore
//***************************************************************************************** //*****************************************************************************************
virtual const char* strPartType() const override; virtual const char* strPartType() const;
}; };
@ -287,20 +287,20 @@ public:
// Overrides. // Overrides.
// //
void Move(const CPlacement3<>& p3_new, CEntity* pet_sender = 0) override; void Move(const CPlacement3<>& p3_new, CEntity* pet_sender = 0);
// Respond to move messages by moving myself if my parent moves. // Respond to move messages by moving myself if my parent moves.
void Process(const CMessageMove& msgmove) override; void Process(const CMessageMove& msgmove);
//***************************************************************************************** //*****************************************************************************************
virtual char * pcSave(char * pc_buffer) const override; virtual char * pcSave(char * pc_buffer) const;
//***************************************************************************************** //*****************************************************************************************
virtual const char * pcLoad(const char * pc_buffer) override; virtual const char * pcLoad(const char * pc_buffer);
//***************************************************************************************** //*****************************************************************************************
virtual const char* strPartType() const override; virtual const char* strPartType() const;
//protected: //protected:
// How can we update attached guys when we aren't in run mode if this is protected? // How can we update attached guys when we aren't in run mode if this is protected?

View File

@ -81,10 +81,10 @@ public:
// //
// Invalidate shadow buffer when objects added. // Invalidate shadow buffer when objects added.
void Process(const CMessageCreate& msgcreate) override; //lint !e1411 //Yes, this had the same name as other functions. void Process(const CMessageCreate& msgcreate); //lint !e1411 //Yes, this had the same name as other functions.
// Invalidate shadow buffer when I myself am moved. // Invalidate shadow buffer when I myself am moved.
void Move(const CPlacement3<>& p3_new, CEntity* pet_sender = 0) override; void Move(const CPlacement3<>& p3_new, CEntity* pet_sender = 0);
//****************************************************************************************** //******************************************************************************************
// //
@ -107,25 +107,25 @@ public:
// //
//***************************************************************************************** //*****************************************************************************************
virtual bool bIncludeInBuildPart() const override virtual bool bIncludeInBuildPart() const
{ {
return false; return false;
} }
//***************************************************************************************** //*****************************************************************************************
virtual bool bCanHaveChildren() override virtual bool bCanHaveChildren()
{ {
return false; return false;
} }
//***************************************************************************************** //*****************************************************************************************
virtual const char* strPartType() const override; virtual const char* strPartType() const;
//***************************************************************************************** //*****************************************************************************************
virtual char * pcSave(char * pc_buffer) const override; virtual char * pcSave(char * pc_buffer) const;
//***************************************************************************************** //*****************************************************************************************
virtual const char * pcLoad(const char * pc_buffer) override; virtual const char * pcLoad(const char * pc_buffer);
}; };

View File

@ -784,61 +784,61 @@ public:
// //
//***************************************************************************************** //*****************************************************************************************
virtual float fDistanceFromGlobalCameraSqr() const override; virtual float fDistanceFromGlobalCameraSqr() const;
//***************************************************************************************** //*****************************************************************************************
virtual CPresence3<> pr3Presence() const override; virtual CPresence3<> pr3Presence() const;
//***************************************************************************************** //*****************************************************************************************
virtual void SetPresence(const CPresence3<> &pr3) override; virtual void SetPresence(const CPresence3<> &pr3);
//***************************************************************************************** //*****************************************************************************************
virtual CPlacement3<> p3Placement() const override; virtual CPlacement3<> p3Placement() const;
//***************************************************************************************** //*****************************************************************************************
virtual void SetPlacement(const CPlacement3<> &p3) override; virtual void SetPlacement(const CPlacement3<> &p3);
//***************************************************************************************** //*****************************************************************************************
virtual CVector3<> v3Pos() const override; virtual CVector3<> v3Pos() const;
//***************************************************************************************** //*****************************************************************************************
virtual void SetPos(const CVector3<>& v3_pos) override; virtual void SetPos(const CVector3<>& v3_pos);
//***************************************************************************************** //*****************************************************************************************
virtual CRotate3<> r3Rot() const override; virtual CRotate3<> r3Rot() const;
//***************************************************************************************** //*****************************************************************************************
virtual void SetRot(const CRotate3<>& r3_rot) override; virtual void SetRot(const CRotate3<>& r3_rot);
//***************************************************************************************** //*****************************************************************************************
virtual float fGetScale() const override; virtual float fGetScale() const;
//***************************************************************************************** //*****************************************************************************************
virtual void SetScale(float f_new_scale) override; virtual void SetScale(float f_new_scale);
//***************************************************************************************** //*****************************************************************************************
virtual void Move(const CPlacement3<>& p3_new, CEntity* pet_sender = 0) override; virtual void Move(const CPlacement3<>& p3_new, CEntity* pet_sender = 0);
//***************************************************************************************** //*****************************************************************************************
virtual rptr_const<CRenderType> prdtGetRenderType() const override; virtual rptr_const<CRenderType> prdtGetRenderType() const;
//***************************************************************************************** //*****************************************************************************************
virtual rptr<CShape> pshGetShape() const override; virtual rptr<CShape> pshGetShape() const;
//***************************************************************************************** //*****************************************************************************************
virtual rptr<CMesh> pmshGetMesh() const override; virtual rptr<CMesh> pmshGetMesh() const;
//***************************************************************************************** //*****************************************************************************************
virtual bool bContainsMovingObject() const override; virtual bool bContainsMovingObject() const;
//***************************************************************************************** //*****************************************************************************************
virtual void Cast(CInstance** ppins) override virtual void Cast(CInstance** ppins)
{ {
*ppins = this; *ppins = this;
} }
//***************************************************************************************** //*****************************************************************************************
virtual const CBoundVol* pbvBoundingVol() const override; virtual const CBoundVol* pbvBoundingVol() const;
//***************************************************************************************** //*****************************************************************************************
@ -1015,7 +1015,7 @@ public:
// //
virtual bool bIsMoving virtual bool bIsMoving
( (
) const override; ) const;
// //
// Returns 'true' if the instance is moving or is likely to move. // Returns 'true' if the instance is moving or is likely to move.
// //
@ -1025,7 +1025,7 @@ public:
// //
virtual bool bCanHaveChildren virtual bool bCanHaveChildren
( (
) override; );
// //
// Returns 'true' if the instance is immovable. // Returns 'true' if the instance is immovable.
// //
@ -1035,7 +1035,7 @@ public:
// //
virtual const char* strPartType virtual const char* strPartType
( (
) const override; ) const;
// //
// Returns a partition type string. // Returns a partition type string.
// //
@ -1045,7 +1045,7 @@ public:
// //
virtual bool bEmptyPart virtual bool bEmptyPart
( (
) const override ) const
// //
// Returns 'true' if the partition is empty, otherwise returns 'false.' // Returns 'true' if the partition is empty, otherwise returns 'false.'
// //
@ -1059,7 +1059,7 @@ public:
//***************************************************************************************** //*****************************************************************************************
// //
virtual bool bIsInstance() const override virtual bool bIsInstance() const
// //
// Returns true if this is an instance object. // Returns true if this is an instance object.
// //
@ -1161,7 +1161,7 @@ public:
//***************************************************************************************** //*****************************************************************************************
// //
virtual bool bPreload(const CBoundVol* pbv, const CPresence3<>* pr3, bool b_is_contained = false) override; virtual bool bPreload(const CBoundVol* pbv, const CPresence3<>* pr3, bool b_is_contained = false);
// //
// Preloads object into memory. // Preloads object into memory.
// //
@ -1171,7 +1171,7 @@ public:
// //
virtual uint32 u4GetUniqueHandle virtual uint32 u4GetUniqueHandle
( (
) const override; ) const;
// //
// Returns a value uniquely representing the object. // Returns a value uniquely representing the object.
// //
@ -1193,7 +1193,7 @@ public:
virtual char * pcSave virtual char * pcSave
( (
char * pc_buffer char * pc_buffer
) const override; ) const;
// //
// Saves the instance delta into buffer. // Saves the instance delta into buffer.
// //
@ -1207,7 +1207,7 @@ public:
virtual const char* pcLoad virtual const char* pcLoad
( (
const char * pc_buffer const char * pc_buffer
) override; );
// //
// Sets the instance internal variables based on info in buffer. // Sets the instance internal variables based on info in buffer.
// //
@ -1306,7 +1306,7 @@ public:
// //
//***************************************************************************************** //*****************************************************************************************
virtual bool bIsBackdrop() override virtual bool bIsBackdrop()
{ {
return true; return true;
} }

View File

@ -131,14 +131,13 @@
* *
**********************************************************************************************/ **********************************************************************************************/
#ifndef HEADER_LIB_ENTITYDBASE_MESSAGETYPES_HPP
#define HEADER_LIB_ENTITYDBASE_MESSAGETYPES_HPP
#error MessageTypes.hpp is now obsolete! Use MessageTypes/foo.hpp #error MessageTypes.hpp is now obsolete! Use MessageTypes/foo.hpp
#if 0 #if 0
#ifndef HEADER_LIB_ENTITYDBASE_MESSAGETYPES_HPP
#define HEADER_LIB_ENTITYDBASE_MESSAGETYPES_HPP
#include "Lib/EntityDBase/Entity.hpp" #include "Lib/EntityDBase/Entity.hpp"
#include "Lib/EntityDBase/Message.hpp" #include "Lib/EntityDBase/Message.hpp"

View File

@ -245,7 +245,7 @@ public:
} }
//***************************************************************************************** //*****************************************************************************************
virtual void Queue() const override; virtual void Queue() const;
//***************************************************************************************** //*****************************************************************************************
// //
@ -278,14 +278,14 @@ public:
protected: protected:
//***************************************************************************************** //*****************************************************************************************
// //
void DeliverTo(CEntity* pet) const override void DeliverTo(CEntity* pet) const
{ {
pet->Process(*this); pet->Process(*this);
} }
//***************************************************************************************** //*****************************************************************************************
// //
const char* strName() const override const char* strName() const
{ {
return "Audio"; return "Audio";
} }

View File

@ -190,16 +190,16 @@ protected:
// //
//****************************************************************************************** //******************************************************************************************
virtual void Send() const override; virtual void Send() const;
//****************************************************************************************** //******************************************************************************************
virtual void DeliverTo(CEntity* pet) const override virtual void DeliverTo(CEntity* pet) const
{ {
pet->Process(*this); pet->Process(*this);
} }
//****************************************************************************************** //******************************************************************************************
virtual const char* strName() const override virtual const char* strName() const
{ {
return "Collision"; return "Collision";
} }

View File

@ -73,12 +73,12 @@ protected:
// Overrides. // Overrides.
// //
void DeliverTo(CEntity* pet) const override { pet->Process(*this); } void DeliverTo(CEntity* pet) const { pet->Process(*this); }
const char* strName() const override { return "Control"; } const char* strName() const { return "Control"; }
//****************************************************************************************** //******************************************************************************************
// //
virtual void Send() const override; virtual void Send() const;
// //
// Send this message. // Send this message.
// //
@ -90,7 +90,7 @@ protected:
//****************************************************************************************** //******************************************************************************************
// //
virtual void ExtractReplayData() const override; virtual void ExtractReplayData() const;
// //
// Extract replay data specific to this message // Extract replay data specific to this message
// //
@ -142,20 +142,20 @@ protected:
// //
//****************************************************************************************** //******************************************************************************************
virtual void DeliverTo(CEntity* pet) const override virtual void DeliverTo(CEntity* pet) const
{ {
pet->Process(*this); pet->Process(*this);
} }
//****************************************************************************************** //******************************************************************************************
virtual const char* strName() const override virtual const char* strName() const
{ {
return "NewRaster"; return "NewRaster";
} }
//****************************************************************************************** //******************************************************************************************
// //
virtual void Send() const override; virtual void Send() const;
// //
// Send this message. // Send this message.
// //
@ -167,7 +167,7 @@ protected:
//****************************************************************************************** //******************************************************************************************
// //
virtual void ExtractReplayData() const override; virtual void ExtractReplayData() const;
// //
// Extract replay data specific to this message // Extract replay data specific to this message
// //

View File

@ -63,13 +63,13 @@ protected:
// //
//****************************************************************************************** //******************************************************************************************
virtual void DeliverTo(CEntity* pet) const override virtual void DeliverTo(CEntity* pet) const
{ {
pet->Process(*this); pet->Process(*this);
} }
//****************************************************************************************** //******************************************************************************************
virtual const char* strName() const override virtual const char* strName() const
{ {
return "Create"; return "Create";
} }

Some files were not shown because too many files have changed in this diff Show More