Compare commits

..

308 Commits

Author SHA1 Message Date
Ian Brun
040c99d81b
Merge pull request #96 from meekee7/ai-removesomeinfluences-refactor
Refactor CWorldView::RemoveSomeInfluences
2021-03-09 04:01:44 +01:00
Ian Brun
e3a96b0a61
Merge pull request #157 from meekee7/include-guards
Add/Fix include guards
2021-03-09 03:55:28 +01:00
Ian Brun
3d6bfd84a8
Merge pull request #156 from meekee7/delete-undefined-behavior
Undefined behavior with delete operator
2021-03-09 03:46:51 +01:00
Ian Brun
60989db4e0
Merge pull request #155 from meekee7/use-override-keyword
Use override keyword
2021-03-09 03:40:16 +01:00
Michael
efed0232a0 TrespassAdvDlg.h: add include guard 2021-02-28 23:58:56 +01:00
Michael
a12019910a TrespassAdv.h: add include guard 2021-02-28 23:57:53 +01:00
Michael
07720945e5 TrespassAdv/StdAfx.h: add include guard 2021-02-28 23:57:32 +01:00
Michael
d86040138e TrespassAdv/resource.h: add include guard 2021-02-28 23:56:51 +01:00
Michael
907ee215da DialogName.hpp: add include guard 2021-02-28 23:56:18 +01:00
Michael
021b085a7e trespass/resource.h: add include guard 2021-02-28 23:55:52 +01:00
Michael
17fc4ee43c QuantizerTool/stdafx.h: add include guard 2021-02-28 23:55:23 +01:00
Michael
6d93cd5ba7 QuantizerTool/resource.h: add include guard 2021-02-28 23:54:45 +01:00
Michael
d9d69792bc QuantizerToolDlg.h: add include guard 2021-02-28 23:54:13 +01:00
Michael
c867006e81 QuantizerTool.h: add include guard 2021-02-28 23:53:38 +01:00
Michael
5c8fa8ef21 NeuQuant.h: add include guard 2021-02-28 23:53:09 +01:00
Michael
6f70cd8eb5 GroffExp.h: add include guard 2021-02-28 23:52:03 +01:00
Michael
0592f11b85 CollisionEditor/stdafx.h: add include guard 2021-02-28 23:51:41 +01:00
Michael
0502f4e61b SampleListDlg.h: add include guard 2021-02-28 23:51:04 +01:00
Michael
528d459831 CollisionEditor/resource.h: add include guard 2021-02-28 23:50:29 +01:00
Michael
80fa882b9e CollisionEditorDlg.h: add include guard 2021-02-28 23:50:03 +01:00
Michael
8224666a3b Test/StdAfx.h: add include guard 2021-02-28 23:49:20 +01:00
Michael
6cfe6f438a resource_audio.h: add include guard 2021-02-28 23:48:39 +01:00
Michael
65b1de902d MainFrm.h: add include guard 2021-02-28 23:47:28 +01:00
Michael
c42f0aafed AudioTestView.h: add include guard 2021-02-28 23:47:04 +01:00
Michael
8041954104 AudioTestDoc.h: add include guard 2021-02-28 23:46:10 +01:00
Michael
70e781cf3e AudioTest.h: add include guard 2021-02-28 23:43:48 +01:00
Michael
32de2df5e3 attribdlg.h: add include guard 2021-02-28 23:43:00 +01:00
Michael
90dc0c0ff7 airesource.h: add include guard 2021-02-28 23:42:21 +01:00
Michael
e29cd44fe4 ShellResource.h: add include guard 2021-02-28 23:41:53 +01:00
Michael
47eaf6f3b9 Errors.h: add include guard 2021-02-28 23:40:38 +01:00
Michael
73dba4a96f DisplayMode.cpp: remove include guard from implementation file 2021-02-28 23:39:56 +01:00
Michael
00b1eb36af FixedPEx.hpp: reorder preprocessor instructions so that the include guard comes first 2021-02-28 23:39:22 +01:00
Michael
b92ea8f6af Symtab.hpp: fix include guard macro name 2021-02-28 23:38:33 +01:00
Michael
dab46bd090 SparseArray.hpp: add include guard 2021-02-28 23:37:44 +01:00
Michael
0e7e35356d P6/ScreenRenderDWI.hpp: add include guard 2021-02-28 23:37:23 +01:00
Michael
a8fbcdf288 LineSide2DTest.hpp: add include guard 2021-02-28 23:36:37 +01:00
Michael
1602ec6abd LineBumpMake.hpp: reorder preprocessor instructions so that the include guard comes first 2021-02-28 23:32:52 +01:00
Michael
d72509a633 DrawSubTriangleFlat.inl: add include guard 2021-02-28 23:31:02 +01:00
Michael
3d99c0421b P6/WalkEx.hpp: make include guard specific to P6 2021-02-28 23:28:41 +01:00
Michael
6143c57154 P6/ScanlineAsmMacros.hpp: add include guard 2021-02-28 23:27:35 +01:00
Michael
ec65f8429b P6/FastBumpEx.hpp: make include guard specific to P6 2021-02-28 23:24:25 +01:00
Michael
e94e2d2974 P6/DrawSubTriangleWater.inl: add include guard 2021-02-28 23:23:21 +01:00
Michael
1ccada1084 P6/DrawSubTriangleTexGourEx.inl: add include guard 2021-02-28 23:22:43 +01:00
Michael
e4c9ecfa00 P6/DrawSubTriangleTexEx.inl: add include guard 2021-02-28 23:21:52 +01:00
Michael
2158e15747 P6/DrawSubTriangleTerrainEx.inl: add include guard 2021-02-28 23:20:20 +01:00
Michael
7fd1298397 P6/DrawSubTriangleTerrain.inl: add include guard 2021-02-28 23:19:12 +01:00
Michael
c9f09aaefb P6/DrawSubTriangleGourEx.inl: add include guard 2021-02-28 23:17:53 +01:00
Michael
9ed07cb839 P6/DrawSubTriangleEx.inl: add include guard 2021-02-28 23:12:02 +01:00
Michael
d5d3e1f11f P6/DrawSubTriangleBumpTblEx.inl: add include guard 2021-02-28 23:10:52 +01:00
Michael
a95022254f P6/DrawSubTriangleBumpEx.inl: add include guard 2021-02-28 23:08:51 +01:00
Michael
5f41c72e53 P6/DrawSubTriangleAlpha.inl: add include guard 2021-02-28 23:07:53 +01:00
Michael
7ed6eedb8f P5/ScanlineAsmMacros.hpp: add include guard 2021-02-28 23:02:51 +01:00
Michael
61b4c9e096 P5/DrawSubTriangleWater.inl: add include guard 2021-02-28 23:02:01 +01:00
Michael
a0453efb68 P5/DrawSubTriangleTexGourEx.inl: add include guard 2021-02-28 23:00:42 +01:00
Michael
b2b2d4beb0 P5/DrawSubTriangleTexEx.inl: add include guard 2021-02-28 22:59:43 +01:00
Michael
8d4f14f022 P5/DrawSubTriangleTerrainEx.inl: add include guard 2021-02-28 22:58:33 +01:00
Michael
e528f67f60 P5/DrawSubTriangleTerrain.inl: add include guard 2021-02-28 22:45:30 +01:00
Michael
ca4a0754f1 P5/DrawSubTriangleGourEx.inl: add include guard 2021-02-28 22:44:49 +01:00
Michael
9a3a1b2266 P5/DrawSubTriangleEx.inl: add include guard 2021-02-28 22:44:09 +01:00
Michael
8a3ccc449a P5/DrawSubTriangleBumpTblEx.inl: add include guard 2021-02-28 22:42:47 +01:00
Michael
dc9c88ba51 P5/DrawSubTriangleBumpEx.inl: add include guard 2021-02-28 22:39:37 +01:00
Michael
a1dfb7d4fe P5/DrawSubTriangleAlpha.inl: add include guard 2021-02-28 22:35:44 +01:00
Michael
887d09849e AMDK6/WalkEx.hpp: make include guard specific to AMDK6 2021-02-28 21:03:55 +01:00
Michael
17927c3c77 AMDK6/ScanlineAsmMacros.hpp: add include guard 2021-02-28 21:02:14 +01:00
Michael
f34c14d2d9 AMDK6/IndexPerspectiveTEx.hpp: make include guard specific to AMDK6 2021-02-28 21:01:20 +01:00
Michael
787e07d28f AMDK6/FastBumpEx.hpp: make include guard specific to AMDK6 2021-02-28 21:00:31 +01:00
Michael
afbbc71fac AMDK6/DrawSubTriangleWater.inl: add include guard 2021-02-28 20:59:59 +01:00
Michael
9ebc15c181 AMDK6/DrawSubTriangleTexGourEx.inl: add include guard 2021-02-28 20:55:47 +01:00
Michael
c12c6e243e AMDK6/DrawSubTriangleTexEx.inl: add include guard 2021-02-28 20:50:57 +01:00
Michael
1cb261c80e AMDK6/DrawSubTriangleTerrainEx.inl: add include guard 2021-02-28 20:41:32 +01:00
Michael
f0e604a073 AMDK6/DrawSubTriangleTerrain.inl: add include guard 2021-02-28 20:40:09 +01:00
Michael
465fa44e85 AMDK6/DrawSubTriangleGourEx.inl: add include guard 2021-02-28 00:41:00 +01:00
Michael
b714106ada AMDK6/DrawSubTriangleEx.inl: add include guard 2021-02-28 00:38:04 +01:00
Michael
4a5c8ddf9b AMDK6/DrawSubTriangleEx.inl: add include guard 2021-02-28 00:35:35 +01:00
Michael
bd2c818d6e AMDK6/DrawSubTriangleBumpTblEx.inl: add include guard 2021-02-28 00:25:04 +01:00
Michael
58a309081d AMDK6/DrawSubTriangleBumpEx.inl: add include guard 2021-02-28 00:23:07 +01:00
Michael
31886b2725 AMDK6/DrawSubTriangleAlpha.inl: add include guard 2021-02-28 00:20:55 +01:00
Michael
40fe502d9f futil.h: add include guard 2021-02-28 00:16:58 +01:00
Michael
4a480bf918 BioModel.h: add include guard 2021-02-28 00:16:08 +01:00
Michael
70c4b2f0a8 ClipMesh.hpp: add include guard 2021-02-28 00:14:39 +01:00
Michael
aee3e014ea Teleport..hpp: add include guard 2021-02-28 00:14:20 +01:00
Michael
f7b97df272 QualitySettings.hpp: add include guard 2021-02-28 00:13:48 +01:00
Michael
e4bdb25f3d MessageTypes.hpp: reorder preprocessor instructions so that the include guard comes first 2021-02-28 00:13:13 +01:00
Michael
0c342fde0e InitGUIApp2/StdAfx.h: add include guard 2021-02-28 00:12:14 +01:00
Michael
ebad165169 InitGUIApp2/Resource.h: add include guard 2021-02-28 00:11:53 +01:00
Michael
c71cd4a1fd InitGUIApp2Dlg.h: add include guard 2021-02-28 00:09:27 +01:00
Michael
112f2d6157 InitGUIApp2.h: add include guard 2021-02-28 00:08:48 +01:00
Michael
00973bba29 InitGUIApp/StdAfx.h: add include guard 2021-02-28 00:07:57 +01:00
Michael
5a04c11643 InitGUIApp/Resource.h: add include guard 2021-02-28 00:07:12 +01:00
Michael
4494b65a6f InitGUIAppDlg.h: add include guard 2021-02-28 00:06:33 +01:00
Michael
0e0fb7b6fa InitGUIApp.h: add include guard 2021-02-28 00:05:39 +01:00
Michael
cccd10b599 GUIApp/resource.h: add include guard 2021-02-28 00:04:07 +01:00
Michael
04eb378fff ParameterDlg.h: add include guard 2021-02-28 00:03:09 +01:00
Michael
70b2b491f9 DialogWater.hpp: add include guard 2021-02-28 00:01:47 +01:00
Michael
f1bc01ecbd DialogTerrain.hpp: add include guard 2021-02-27 23:59:54 +01:00
Michael
0883a70540 DialogScheduler.hpp: add include guard 2021-02-27 23:59:28 +01:00
Michael
f82c8d4b16 DialogRenderCache.hpp: add include guard 2021-02-27 23:58:25 +01:00
Michael
6416b9b602 DialogOcclusion.hpp: add include guard 2021-02-27 23:58:05 +01:00
Michael
7236a10a83 DialogMipmap.hpp: add include guard 2021-02-27 23:57:32 +01:00
Michael
3a7c84d7ae DialogGore.hpp: add include guard 2021-02-27 23:55:29 +01:00
Michael
3a584066dd DialogGamma.hpp: add include guard 2021-02-27 23:55:07 +01:00
Michael
e322fcb728 AI Dialogs2Dlg.h: add include guard 2021-02-27 23:54:45 +01:00
Michael
0d54f3960e version.hpp: add include guard 2021-02-27 23:52:18 +01:00
Michael
03a08267bb 3DX.hpp: add include guard 2021-02-27 23:51:57 +01:00
Michael
970f696ff2 PathFailure.hpp: reorder preprocessor instructions so that the include guard comes first 2021-02-27 23:51:35 +01:00
Michael
8abb05d1c0 PathAvoider.hpp: reorder preprocessor instructions so that the include guard comes first 2021-02-27 23:50:59 +01:00
Michael
84591a99de Section.hpp: add include guard 2021-02-27 23:47:46 +01:00
Michael
3886d10a6f Namespace.hpp: add include guard 2021-02-27 23:47:24 +01:00
Michael
4ab746f006 Function.hpp: add include guard 2021-02-27 23:46:54 +01:00
Michael
16a3f8e453 Examples.hpp: add include guard 2021-02-27 23:35:17 +01:00
Michael
5ff754e184 Class.hpp: add include guard 2021-02-27 23:33:16 +01:00
Michael
c1292011c6 TweakNVidia128Dlg.h: use override keyword 2021-02-15 21:41:21 +01:00
Michael
06451f30f9 TweakNVidia128Dlg.cpp: use override keyword 2021-02-15 21:41:21 +01:00
Michael
103684f84d TweakNVidia128.h: use override keyword 2021-02-15 21:41:21 +01:00
Michael
a10b604632 TrespassAdvDlg.h: use override keyword 2021-02-15 21:41:20 +01:00
Michael
d7f7dfeb2d TrespassAdvDlg.cpp: use override keyword 2021-02-15 21:41:20 +01:00
Michael
8542a67d7d TrespassAdv.h: use override keyword 2021-02-15 21:41:20 +01:00
Michael
917563076b DialogName.hpp: use override keyword 2021-02-15 21:41:19 +01:00
Michael
eead470c0b video.h: use override keyword 2021-02-15 21:41:19 +01:00
Michael
469d309e73 uiwnd.h: use override keyword 2021-02-15 21:41:18 +01:00
Michael
ecf5d754e8 uidlgs.h: use override keyword 2021-02-15 21:41:18 +01:00
Michael
9c2d6f2943 rasterdc.hpp: use override keyword 2021-02-15 21:41:18 +01:00
Michael
039f46d196 main.h: use override keyword 2021-02-15 21:41:17 +01:00
Michael
72dbcc0448 keyremap.h: use override keyword 2021-02-15 21:41:17 +01:00
Michael
340ce35797 dialogs.h: use override keyword 2021-02-15 21:41:17 +01:00
Michael
d88f3fc10c ctrls.h: use override keyword 2021-02-15 21:41:16 +01:00
Michael
4abd47b2db QuantizerToolDlg.h: use override keyword 2021-02-15 21:41:16 +01:00
Michael
e7e6159745 QuantizerToolDlg.cpp: use override keyword 2021-02-15 21:41:15 +01:00
Michael
3fb99d6934 QuantizerTool.h: use override keyword 2021-02-15 21:41:15 +01:00
Michael
2fb60c8a61 GroffExp.cpp: use override keyword 2021-02-15 21:41:15 +01:00
Michael
0c49c37262 SampleListDlg.h: use override keyword 2021-02-15 21:41:14 +01:00
Michael
0eecc3ea23 EditMaterialDlg.h: use override keyword 2021-02-15 21:41:14 +01:00
Michael
f90421f83d CollisionEditorDlg.h: use override keyword 2021-02-15 21:41:14 +01:00
Michael
ecd0a6a84d CollisionEditorDlg.cpp: use override keyword 2021-02-15 21:41:14 +01:00
Michael
fb07d7d460 CollisionEditor.h: use override keyword 2021-02-15 21:41:13 +01:00
Michael
bf0602ad74 attribdlg.h: use override keyword 2021-02-15 21:41:13 +01:00
Michael
c64d8e487f TestPipeLine.cpp: use override keyword 2021-02-15 21:41:13 +01:00
Michael
0166c45b28 TestMath.cpp: use override keyword 2021-02-15 21:41:12 +01:00
Michael
7461c0dd87 TestBump.cpp: use override keyword 2021-02-15 21:41:12 +01:00
Michael
48a3f1c108 Test3DObjs.hpp: use override keyword 2021-02-15 21:41:12 +01:00
Michael
f90ebde084 WaveTest.cpp: use override keyword 2021-02-15 21:41:12 +01:00
Michael
0181164169 MainFrm.h: use override keyword 2021-02-15 21:41:11 +01:00
Michael
93b6acc8dd AudioTestView.h: use override keyword 2021-02-15 21:41:11 +01:00
Michael
a683ed546d AudioTestDoc.h: use override keyword 2021-02-15 21:41:11 +01:00
Michael
1ab3d32868 AudioTest.h: use override keyword 2021-02-15 21:41:10 +01:00
Michael
8dc2f35167 AudioTest.cpp: use override keyword 2021-02-15 21:41:10 +01:00
Michael
bda5f9ebb1 TestAnimal.hpp: use override keyword 2021-02-15 21:41:10 +01:00
Michael
86b7649006 FakeShape.hpp: use override keyword 2021-02-15 21:41:09 +01:00
Michael
b0476ec798 FakePhysics.hpp: use override keyword 2021-02-15 21:41:09 +01:00
Michael
f187bb53e2 RasterVid.hpp: use override keyword 2021-02-15 21:41:09 +01:00
Michael
4d04ff2d0a RasterD3D.hpp: use override keyword 2021-02-15 21:33:14 +01:00
Michael
3a1aceec25 Raster.hpp: use override keyword 2021-02-15 21:33:14 +01:00
Michael
cfed87615e Raster.cpp: use override keyword 2021-02-15 21:33:13 +01:00
Michael
4c11324dbf Pixel.cpp: use override keyword 2021-02-15 21:33:13 +01:00
Michael
b7ed59cc5a Grab.hpp: use override keyword 2021-02-15 21:33:13 +01:00
Michael
fedbc7fad3 Trigger.hpp: use override keyword 2021-02-15 21:33:12 +01:00
Michael
6947c24733 GameActions.hpp: use override keyword 2021-02-15 21:33:12 +01:00
Michael
fc06ed92cb Action.hpp: use override keyword 2021-02-15 21:33:11 +01:00
Michael
3208adf3a3 Profile.hpp: use override keyword 2021-02-15 21:33:11 +01:00
Michael
19e3f36e62 DebugConsole.hpp: use override keyword 2021-02-15 21:33:10 +01:00
Michael
e1fcd70d9f ConIO.hpp: use override keyword 2021-02-15 21:33:10 +01:00
Michael
a079598d72 Shadow.cpp: use override keyword 2021-02-15 21:33:09 +01:00
Michael
7e401fe163 ScreenRenderShadow.cpp: use override keyword 2021-02-15 21:33:09 +01:00
Michael
38889999e1 ScreenRenderDWI.hpp: use override keyword 2021-02-15 21:33:08 +01:00
Michael
652a684f60 ScreenRenderDWI.cpp: use override keyword 2021-02-15 21:33:08 +01:00
Michael
c67707e5b7 RenderCacheLRUItem.hpp: use override keyword 2021-02-15 21:33:08 +01:00
Michael
b926c85330 RenderCache.hpp: use override keyword 2021-02-15 21:33:07 +01:00
Michael
9c43118fe5 FastBump.hpp: use override keyword 2021-02-15 21:33:07 +01:00
Michael
714ec61141 Particles.cpp: use override keyword 2021-02-15 21:33:06 +01:00
Michael
8dbc12272e Light.hpp: use override keyword 2021-02-15 21:33:06 +01:00
Michael
1f70fe02ff GeomTypesCamera.cpp: use override keyword 2021-02-15 21:33:05 +01:00
Michael
854ea470a5 GeomTypes.hpp: use override keyword 2021-02-15 21:33:05 +01:00
Michael
63d4d05a49 Clip.hpp: use override keyword 2021-02-15 21:33:05 +01:00
Michael
4580be1c9c Camera.hpp: use override keyword 2021-02-15 21:33:04 +01:00
Michael
2d790b40a7 Waves.hpp: use override keyword 2021-02-15 21:33:04 +01:00
Michael
edf33ed7a3 WaterDisturbance.hpp: use override keyword 2021-02-15 21:33:03 +01:00
Michael
1489193917 PhysicsSystem.hpp: use override keyword 2021-02-15 21:33:03 +01:00
Michael
033fe02bb2 Magnet.hpp: use override keyword 2021-02-15 21:33:02 +01:00
Michael
c26bdc60a8 InfoSkeleton.hpp: use override keyword 2021-02-15 21:33:02 +01:00
Michael
761e6cfffa InfoPlayer.hpp: use override keyword 2021-02-15 21:33:02 +01:00
Michael
6d6e8af3f1 InfoCompound.hpp: use override keyword 2021-02-15 21:33:01 +01:00
Michael
0a4a954493 InfoBox.hpp: use override keyword 2021-02-15 21:33:01 +01:00
Michael
e99e4b2daf ValueTable.hpp: use override keyword 2021-02-15 21:33:00 +01:00
Michael
5cdab9a011 WaveletQuadTree.hpp: use override keyword 2021-02-15 21:33:00 +01:00
Michael
d6b2016072 TerrainTexture.cpp: use override keyword 2021-02-15 21:32:59 +01:00
Michael
e0354f878f TerrainObj.hpp: use override keyword 2021-02-15 21:32:59 +01:00
Michael
eeda4610bc Terrain.hpp: use override keyword 2021-02-15 21:32:58 +01:00
Michael
536c30316a Terrain.cpp: use override keyword 2021-02-15 21:32:58 +01:00
Michael
c025c3b47c SkeletonIterator.hpp: use override keyword 2021-02-15 21:32:58 +01:00
Michael
ac1a7c6bff Skeleton.hpp: use override keyword 2021-02-15 21:32:57 +01:00
Michael
48fc692d64 Shape.hpp: use override keyword 2021-02-15 21:32:57 +01:00
Michael
8532e34a65 PartitionSpace.hpp: use override keyword 2021-02-15 21:32:56 +01:00
Michael
01d1972737 MeshIterator.hpp: use override keyword 2021-02-15 21:32:56 +01:00
Michael
c8e6309669 Mesh.hpp: use override keyword 2021-02-15 21:32:55 +01:00
Michael
4a95d3eb04 InvisibleShape.hpp: use override keyword 2021-02-15 21:32:55 +01:00
Michael
65cc93d66a Water.hpp: use override keyword 2021-02-15 21:32:55 +01:00
Michael
9c747d969c Water.cpp: use override keyword 2021-02-15 21:32:54 +01:00
Michael
59f7823b95 TextOverlay.hpp: use override keyword 2021-02-15 21:32:54 +01:00
Michael
d80290db44 Teleport.hpp: use override keyword 2021-02-15 21:32:53 +01:00
Michael
5ec8678151 Subsystem.hpp: use override keyword 2021-02-15 21:32:53 +01:00
Michael
a45a69f91f RenderDB.hpp: use override keyword 2021-02-15 21:32:52 +01:00
Michael
ffa7e534ee MsgTrigger.hpp: use override keyword 2021-02-15 21:32:52 +01:00
Michael
72bb2674b2 MsgSystem.hpp: use override keyword 2021-02-15 21:32:51 +01:00
Michael
43340905d8 MsgStep.hpp: use override keyword 2021-02-15 21:32:51 +01:00
Michael
f5ac192f67 MsgPhysicsReq.hpp: use override keyword 2021-02-15 21:32:50 +01:00
Michael
3e3e52cdd4 MsgPaint.hpp: use override keyword 2021-02-15 21:32:50 +01:00
Michael
1f0e986cdb MsgMove.hpp: use override keyword 2021-02-15 21:32:50 +01:00
Michael
a47eabbfce MsgMagnet.hpp: use override keyword 2021-02-15 21:32:49 +01:00
Michael
1997bb15e9 MsgDelete.hpp: use override keyword 2021-02-15 21:32:49 +01:00
Michael
31ac680fab MsgCreate.hpp: use override keyword 2021-02-15 21:32:48 +01:00
Michael
6bee71c2be MsgControl.hpp: use override keyword 2021-02-15 21:32:48 +01:00
Michael
38ca7e2b6a MsgCollision.hpp: use override keyword 2021-02-15 21:32:47 +01:00
Michael
c34b2c41c9 MsgAudio.hpp: use override keyword 2021-02-15 21:32:47 +01:00
Michael
1f3df5a27e Instance.hpp: use override keyword 2021-02-15 21:32:46 +01:00
Michael
ca04799386 EntityLight.hpp: use override keyword 2021-02-15 21:32:46 +01:00
Michael
8efb6e0fa3 Entity.hpp: use override keyword 2021-02-15 21:32:45 +01:00
Michael
64bb123a35 CameraPrime.hpp: use override keyword 2021-02-15 21:32:45 +01:00
Michael
22cfe12384 AnimationScript.hpp: use override keyword 2021-02-15 21:32:44 +01:00
Michael
d3b90c0c9d Animate.hpp: use override keyword 2021-02-15 21:32:44 +01:00
Michael
1238483671 Animal.hpp: use override keyword 2021-02-15 21:32:44 +01:00
Michael
bafcd09d05 Control.hpp: use override keyword 2021-02-15 21:32:43 +01:00
Michael
554e8f7ebe AudioPCM.hpp: use override keyword 2021-02-15 21:32:42 +01:00
Michael
22ff6a2257 AudioDaemon.hpp: use override keyword 2021-02-15 21:32:42 +01:00
Michael
4cc2ce2c34 AudioADPCM.hpp: use override keyword 2021-02-15 21:32:42 +01:00
Michael
55a24ecc1c InitGUIApp2Dlg.h: use override keyword 2021-02-15 21:32:41 +01:00
Michael
3c9c859d26 InitGUIApp2.h: use override keyword 2021-02-15 21:32:41 +01:00
Michael
fff4322a37 InitGUIAppDlg.h: use override keyword 2021-02-15 21:32:40 +01:00
Michael
1cc54fd697 InitGUIAppDlg.cpp: use override keyword 2021-02-15 21:32:40 +01:00
Michael
83951add25 InitGUIApp.h: use override keyword 2021-02-15 21:32:39 +01:00
Michael
0896eef3fb main.h: use override keyword 2021-02-15 21:32:39 +01:00
Michael
74c711e5ad dialogs.h: use override keyword 2021-02-15 21:32:38 +01:00
Michael
c56d01630e Socket.hpp: use override keyword 2021-02-15 21:32:38 +01:00
Michael
0fe7e815cc Player.cpp: use override keyword 2021-02-15 21:32:37 +01:00
Michael
5b146d52e0 Gun.hpp: use override keyword 2021-02-15 21:32:37 +01:00
Michael
82c5c4f4d5 Daemon.hpp: use override keyword 2021-02-15 21:32:36 +01:00
Michael
e87560551a BloodSplat.hpp: use override keyword 2021-02-15 21:32:36 +01:00
Michael
a0a28eb611 TestActivities.hpp: use override keyword 2021-02-15 21:32:36 +01:00
Michael
afcb8cb1a9 PathAStar.hpp: use override keyword 2021-02-15 21:32:35 +01:00
Michael
a285b42708 NodeHistory.hpp: use override keyword 2021-02-15 21:32:35 +01:00
Michael
92f76ab717 MoveActivities.hpp: use override keyword 2021-02-15 21:32:34 +01:00
Michael
20fb244d5c Influence.hpp: use override keyword 2021-02-15 21:32:34 +01:00
Michael
72445ca297 HeadActivities.hpp: use override keyword 2021-02-15 21:32:33 +01:00
Michael
cb5b45e954 EmotionActivities.hpp: use override keyword 2021-02-15 21:32:33 +01:00
Michael
588330a1d4 ActivityVocal.hpp: use override keyword 2021-02-15 21:32:32 +01:00
Michael
03540124ab ActivityPhased.hpp: use override keyword 2021-02-15 21:32:32 +01:00
Michael
632e558e2b ActivityCompound.hpp: use override keyword 2021-02-15 21:32:31 +01:00
Michael
8eae76e6e0 ActivityAttack.hpp: use override keyword 2021-02-15 21:32:31 +01:00
Michael
fd3de18441 Activity.hpp: use override keyword 2021-02-15 21:32:30 +01:00
Michael
af49459dce AIMain.hpp: use override keyword 2021-02-15 21:32:30 +01:00
Michael
b27192822a AIGraph.hpp: use override keyword 2021-02-15 21:32:29 +01:00
Michael
58dd4631c6 Toolbar.hpp: use override keyword 2021-02-15 21:32:29 +01:00
Michael
dc86186cfc TerrainTest.hpp: use override keyword 2021-02-15 21:32:28 +01:00
Michael
df55cfcdb3 SoundPropertiesDlg.hpp: use override keyword 2021-02-15 21:32:28 +01:00
Michael
79a60a1b26 QualityDialog.hpp: use override keyword 2021-02-15 21:32:27 +01:00
Michael
be8610365d PerspectiveSubdivideDialog.hpp: use override keyword 2021-02-15 21:32:27 +01:00
Michael
3bb52d5543 ParameterDlg.h: use override keyword 2021-02-15 21:32:27 +01:00
Michael
7a08baa599 LightProperties.hpp: use override keyword 2021-02-15 21:32:26 +01:00
Michael
24e883084e GUIControls.hpp: use override keyword 2021-02-15 21:32:26 +01:00
Michael
48847f90f8 GUIAppDlg.h: use override keyword 2021-02-15 21:32:25 +01:00
Michael
7755016327 GUIApp.h: use override keyword 2021-02-15 21:32:25 +01:00
Michael
9894237ced GUIApp.cpp: use override keyword 2021-02-15 21:32:24 +01:00
Michael
be720ebc5d DialogWater.hpp: use override keyword 2021-02-15 21:32:24 +01:00
Michael
bac45b5057 DialogVM.hpp: use override keyword 2021-02-15 21:32:23 +01:00
Michael
d75fa7c94e DialogTexturePackOptions.hpp: use override keyword 2021-02-15 21:32:23 +01:00
Michael
28fb7d2fb9 DialogTexturePack.hpp: use override keyword 2021-02-15 21:32:22 +01:00
Michael
6180d618e8 DialogTerrain.hpp: use override keyword 2021-02-15 21:32:22 +01:00
Michael
9b4a98b1e1 DialogTeleport.h: use override keyword 2021-02-15 21:32:21 +01:00
Michael
c3694ed1d0 DialogString.hpp: use override keyword 2021-02-15 21:32:21 +01:00
Michael
9abca39105 DialogSoundMaterial.hpp: use override keyword 2021-02-15 21:32:20 +01:00
Michael
2f15734092 DialogSky.hpp: use override keyword 2021-02-15 21:32:20 +01:00
Michael
5d75425bea DialogScrollbars.hpp: use override keyword 2021-02-15 21:32:19 +01:00
Michael
1c0366ee0b DialogScheduler.hpp: use override keyword 2021-02-15 21:32:19 +01:00
Michael
f1b961c325 DialogRenderCache.hpp: use override keyword 2021-02-15 21:32:19 +01:00
Michael
031a22596d DialogPlayer.h: use override keyword 2021-02-15 21:32:18 +01:00
Michael
c1cacd6084 DialogPhysics.hpp: use override keyword 2021-02-15 21:32:18 +01:00
Michael
540e745b47 DialogPhysics.cpp: use override keyword 2021-02-15 21:32:17 +01:00
Michael
d9e2a40230 DialogPartition.hpp: use override keyword 2021-02-15 21:32:17 +01:00
Michael
65089c672b DialogOcclusion.hpp: use override keyword 2021-02-15 21:32:16 +01:00
Michael
1dee33070a DialogObject.h: use override keyword 2021-02-15 21:32:16 +01:00
Michael
f63be9d27b DialogMipmap.hpp: use override keyword 2021-02-15 21:32:16 +01:00
Michael
20afd0ec3f DialogMemLog.hpp: use override keyword 2021-02-15 21:32:15 +01:00
Michael
6da9a68369 DialogMaterial.h: use override keyword 2021-02-15 21:32:15 +01:00
Michael
1a6a242b56 DialogMagnet.h: use override keyword 2021-02-15 21:32:14 +01:00
Michael
985323794b DialogGun.hpp: use override keyword 2021-02-15 21:32:14 +01:00
Michael
a1fbdc2890 DialogGore.hpp: use override keyword 2021-02-15 21:32:14 +01:00
Michael
963efadd00 DialogGamma.hpp: use override keyword 2021-02-15 21:32:13 +01:00
Michael
c6f1af620c DialogFog.hpp: use override keyword 2021-02-15 21:32:13 +01:00
Michael
016800edfb DialogDepthSort.hpp: use override keyword 2021-02-15 21:32:13 +01:00
Michael
fd9697ba3d DialogCulling.hpp: use override keyword 2021-02-15 21:32:12 +01:00
Michael
84e32351a2 DialogBumpPack.hpp: use override keyword 2021-02-15 21:32:12 +01:00
Michael
fb43bbdb59 DialogAlphaColour.hpp: use override keyword 2021-02-15 21:32:11 +01:00
Michael
4eeadcc3f5 CameraProperties.hpp: use override keyword 2021-02-15 21:32:11 +01:00
Michael
6db1c2745f Background.hpp: use override keyword 2021-02-15 21:32:11 +01:00
Michael
184ed2147b AI Dialogs2Dlg.h: use override keyword 2021-02-15 21:27:27 +01:00
Michael
07d1060fde WorldView.cpp: unify brace style in RemoveSomeInfluences 2020-11-14 12:44:56 +01:00
Michael
189f016005 TextOverlay.cpp: use correct delete operator 2020-07-18 21:55:54 +02:00
Michael
2f5dd2c1d0 Symtab: use typed pointer 2020-07-13 21:52:24 +02:00
Michael
b5ff507428 Raster.cpp: avoid delete on void pointer 2020-07-13 21:51:31 +02:00
Michael
ff4a966893 WaveletQuadTreeBase.hpp: remove redundant new and delete operator overloads 2020-07-12 17:32:22 +02:00
Michael
ae3abdcf75 TextOverlay.cpp: remove unnecessary casts to void* 2020-07-12 17:27:52 +02:00
Michael
fca13ace54 EasyString.cpp: use typed pointer 2020-07-12 17:20:11 +02:00
Michael
7f5c7e49f6 WorldView.cpp: fix comment comprehensibility 2020-05-08 20:35:52 +02:00
Michael
83310949db WorldView.cpp: refactor RemoveSomeInfluences to avoid using dangling iterator instances 2020-05-07 21:32:39 +02:00
Michael
d513a5f1e2 Influence.hpp: declare setFlags as mutable 2020-05-07 21:30:59 +02:00
Michael
62baf26549 WorldViewTest.cpp: add tests for RemoveSomeInfluences function 2020-05-07 21:30:26 +02:00
Michael
6e47528c42 InfluenceTest.cpp: add tests for CInfluence comparison and constness 2020-05-07 21:29:20 +02:00
Michael
d4df09730b AIUnitTest/CMakeLists.txt: add AIUnitTest project definition 2020-05-07 21:27:48 +02:00
Michael
b4d88be176 Root/CMakeLists.txt: add AIUnitTest project 2020-05-07 21:26:57 +02:00
270 changed files with 2005 additions and 1521 deletions

View File

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

View File

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

View File

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

View File

@ -1,3 +1,5 @@
#pragma once
//******************************************************************************************
//
type tFunction

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -122,14 +122,14 @@ public:
//
//*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override;
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -166,10 +166,10 @@ public:
//
//*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override;
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
};
@ -211,7 +211,7 @@ public:
(
CRating rt_importance,
CInfluence* pinf
);
) override;
};
@ -248,10 +248,10 @@ public:
//*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override;
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
};
@ -287,10 +287,10 @@ public:
//
//*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override;
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
};
@ -329,7 +329,7 @@ public:
(
CRating rt_importance,
CInfluence* pinf
);
) override;
};
@ -368,14 +368,14 @@ public:
(
CRating rt_importance,
CInfluence* pinf
);
) override;
//*************************************************************************************
virtual CRating rtRate
(
const CFeeling& feel, // The feeling used to evaluate 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);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -109,14 +109,14 @@ public:
//
//*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override;
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -150,11 +150,11 @@ public:
//
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -189,14 +189,14 @@ public:
//
//*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override;
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -229,11 +229,11 @@ public:
//
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -266,11 +266,11 @@ public:
//
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -303,11 +303,11 @@ public:
//
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -340,11 +340,11 @@ public:
//
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -377,14 +377,14 @@ public:
//
//*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override;
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};

View File

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

View File

@ -136,7 +136,7 @@ public:
CInstance* const pinsTarget; // The object associated with this influence
// or 0 if none.
CSet<EInfluenceFlag>setFlags; // A bunch of flags for an influence.
mutable CSet<EInfluenceFlag> setFlags; // A bunch of flags for an influence.
// CFeeling feelDBGWeighted; // The emotional baggage associated with the influence,
@ -277,7 +277,7 @@ public:
virtual int iAddToGraph
(
CBrain* pbr // Brain to which this influence belongs.
);
) override;
//
// Adds nodes to the pathfinding graph based on shape of the target.
//
@ -317,7 +317,7 @@ public:
//
virtual void CalculateNodeSuitability
(
);
) override;
//
// Decides how important the influence is for node construction (pathfinding).
//
@ -327,7 +327,7 @@ public:
//
virtual TReal rRateNodeSuitability
(
) const;
) const override;
//
// Decided how important the influence is right now (based on rNodeSuitability).
//
@ -352,7 +352,7 @@ public:
//
void ResetTemporaryFlags
(
);
) override;
//
// Resets the flags which are short-lived.
//
@ -415,6 +415,10 @@ public:
// 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);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
//*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -143,14 +143,14 @@ public:
//
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
//*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -186,14 +186,14 @@ public:
//
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
//*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -234,14 +234,14 @@ public:
//
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
//*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -277,11 +277,11 @@ public:
//
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -313,14 +313,14 @@ public:
//
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
//*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -356,14 +356,14 @@ public:
//
//*********************************************************************************
virtual CRating rtRate( const CFeeling& feel,CInfluence* pinf);
virtual CRating rtRate( const CFeeling& feel,CInfluence* pinf) override;
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -403,20 +403,20 @@ public:
//
//*********************************************************************************
virtual CRating rtRate( const CFeeling& feel,CInfluence* pinf);
virtual CRating rtRate( const CFeeling& feel,CInfluence* pinf) override;
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
//*****************************************************************************************
virtual char * pcSave(char * pc_buffer) const;
virtual char * pcSave(char * pc_buffer) const override;
//*****************************************************************************************
virtual const char * pcLoad(const char * pc_buffer);
virtual const char * pcLoad(const char * pc_buffer) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -456,20 +456,20 @@ public:
//
//*********************************************************************************
virtual CRating rtRate( const CFeeling& feel,CInfluence* pinf);
virtual CRating rtRate( const CFeeling& feel,CInfluence* pinf) override;
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
//*****************************************************************************************
virtual char * pcSave(char * pc_buffer) const;
virtual char * pcSave(char * pc_buffer) const override;
//*****************************************************************************************
virtual const char * pcLoad(const char * pc_buffer);
virtual const char * pcLoad(const char * pc_buffer) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -505,14 +505,14 @@ public:
//
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
//*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -548,14 +548,14 @@ public:
//
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
//*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -596,14 +596,14 @@ public:
//
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
//*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -641,14 +641,14 @@ public:
//
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
//*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -684,14 +684,14 @@ public:
//
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
//*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -729,14 +729,14 @@ public:
//
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
//*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -772,14 +772,14 @@ public:
//
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
//*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};
@ -826,17 +826,17 @@ public:
//
//*********************************************************************************
virtual void Act(CRating rt_importance, CInfluence* pinf);
virtual void Act(CRating rt_importance, CInfluence* pinf) override;
//*************************************************************************************
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf);
virtual CRating rtRate(const CFeeling& feel, CInfluence* pinf) override;
//*************************************************************************************
virtual void Activate(bool b_active_state);
virtual void Activate(bool b_active_state) override;
#if VER_TEST
//*****************************************************************************************
virtual int iGetDescription(char *buffer, int i_buffer_length);
virtual int iGetDescription(char *buffer, int i_buffer_length) override;
#endif
};

View File

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

View File

@ -108,7 +108,7 @@ public:
CPath* ppath,
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
);
) override;
//
// Notes:
// Assumes that the influence list is up to date, including target distaces,
@ -128,7 +128,7 @@ public:
CVector2<> v2_direction, // Direction of travel.
CPath* ppath, // The path to be filled by the pathfinder.
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".
//

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,5 @@
#pragma once
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// 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
//
virtual uint32 u4DecompressMono8bit(uint8* pu1_dst, uint32 u4_byte_count);
virtual uint32 u4DecompressMono8bit(uint8* pu1_dst, uint32 u4_byte_count) override;
//******************************************************************************************
// 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
//
virtual uint32 u4DecompressMono16bit(uint8* pu1_dst, uint32 u4_byte_count);
virtual uint32 u4DecompressMono16bit(uint8* pu1_dst, uint32 u4_byte_count) override;
//******************************************************************************************
// 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
//
virtual uint32 u4DecompressStereo8bit(uint8* pu1_dst, uint32 u4_byte_count);
virtual uint32 u4DecompressStereo8bit(uint8* pu1_dst, uint32 u4_byte_count) override;
//******************************************************************************************
// 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
//
virtual uint32 u4DecompressStereo16bit(uint8* pu1_dst, uint32 u4_byte_count);
virtual uint32 u4DecompressStereo16bit(uint8* pu1_dst, uint32 u4_byte_count) override;
//******************************************************************************************
// 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
//
virtual void SetSampleSource(uint8* pu1_src, uint32 u4_src_len);
virtual void SetSampleSource(uint8* pu1_src, uint32 u4_src_len) override;
//******************************************************************************************
// get the number of bytes remaining in the current block, or 0 if none.
//
virtual uint32 u4GetRemainingData();
virtual uint32 u4GetRemainingData() override;
};

View File

@ -361,17 +361,17 @@ public:
//******************************************************************************************
// The messages that we respond to.
//
void Process(const CMessageStep& msg_step);
void Process(const CMessageMove& msg);
void Process(const CMessageCollision& msg);
void Process(const CMessageAudio& msg_audio);
void Process(const CMessageSystem& msg);
void Process(const CMessageStep& msg_step) override;
void Process(const CMessageMove& msg) override;
void Process(const CMessageCollision& msg) override;
void Process(const CMessageAudio& msg_audio) override;
void Process(const CMessageSystem& msg) override;
//*****************************************************************************************
char* pcSave(char* pc) const;
char* pcSave(char* pc) const override;
//*****************************************************************************************
const char* pcLoad(const char* pc);
const char* pcLoad(const char* pc) override;
//*****************************************************************************************
char *pcSaveSample
@ -390,7 +390,7 @@ public:
//*****************************************************************************************
//
void SaveDefaults();
void SaveDefaults() override;
//
// Save the default values of the user modifiable settings.
//
@ -398,7 +398,7 @@ public:
//*****************************************************************************************
//
void RestoreDefaults();
void RestoreDefaults() override;
//
// 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
//
virtual uint32 u4DecompressMono8bit(uint8* pu1_dst, uint32 u4_byte_count)
virtual uint32 u4DecompressMono8bit(uint8* pu1_dst, uint32 u4_byte_count) override
{
uint32 u4_bytes;
@ -109,7 +109,7 @@ protected:
// 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
//
virtual uint32 u4DecompressMono16bit(uint8* pu1_dst, uint32 u4_byte_count)
virtual uint32 u4DecompressMono16bit(uint8* pu1_dst, uint32 u4_byte_count) override
{
uint32 u4_bytes;
@ -128,7 +128,7 @@ protected:
// 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
//
virtual uint32 u4DecompressStereo8bit(uint8* pu1_dst, uint32 u4_byte_count)
virtual uint32 u4DecompressStereo8bit(uint8* pu1_dst, uint32 u4_byte_count) override
{
uint32 u4_bytes;
@ -147,7 +147,7 @@ protected:
// 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
//
virtual uint32 u4DecompressStereo16bit(uint8* pu1_dst, uint32 u4_byte_count)
virtual uint32 u4DecompressStereo16bit(uint8* pu1_dst, uint32 u4_byte_count) override
{
uint32 u4_bytes;
@ -166,7 +166,7 @@ protected:
// 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
//
virtual void SetSampleSource(uint8* pu1_src, uint32 u4_src_len)
virtual void SetSampleSource(uint8* pu1_src, uint32 u4_src_len) override
{
pu1SourceData = pu1_src;
u4SourceDataSize = u4_src_len;
@ -175,7 +175,7 @@ protected:
//******************************************************************************************
// get the number of bytes remaining in the current block, or 0 if none.
//
virtual uint32 u4GetRemainingData()
virtual uint32 u4GetRemainingData() override
{
return u4SourceDataSize;
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -185,14 +185,14 @@ public:
//
//lint -save -e1411
virtual void Cast(CEntity** ppet)
virtual void Cast(CEntity** ppet) override
{
*ppet = this;
}
//lint -restore
//*****************************************************************************************
virtual const char* strPartType() const;
virtual const char* strPartType() const override;
};
@ -287,20 +287,20 @@ public:
// Overrides.
//
void Move(const CPlacement3<>& p3_new, CEntity* pet_sender = 0);
void Move(const CPlacement3<>& p3_new, CEntity* pet_sender = 0) override;
// Respond to move messages by moving myself if my parent moves.
void Process(const CMessageMove& msgmove);
void Process(const CMessageMove& msgmove) override;
//*****************************************************************************************
virtual char * pcSave(char * pc_buffer) const;
virtual char * pcSave(char * pc_buffer) const override;
//*****************************************************************************************
virtual const char * pcLoad(const char * pc_buffer);
virtual const char * pcLoad(const char * pc_buffer) override;
//*****************************************************************************************
virtual const char* strPartType() const;
virtual const char* strPartType() const override;
//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.
void Process(const CMessageCreate& msgcreate); //lint !e1411 //Yes, this had the same name as other functions.
void Process(const CMessageCreate& msgcreate) override; //lint !e1411 //Yes, this had the same name as other functions.
// Invalidate shadow buffer when I myself am moved.
void Move(const CPlacement3<>& p3_new, CEntity* pet_sender = 0);
void Move(const CPlacement3<>& p3_new, CEntity* pet_sender = 0) override;
//******************************************************************************************
//
@ -107,25 +107,25 @@ public:
//
//*****************************************************************************************
virtual bool bIncludeInBuildPart() const
virtual bool bIncludeInBuildPart() const override
{
return false;
}
//*****************************************************************************************
virtual bool bCanHaveChildren()
virtual bool bCanHaveChildren() override
{
return false;
}
//*****************************************************************************************
virtual const char* strPartType() const;
virtual const char* strPartType() const override;
//*****************************************************************************************
virtual char * pcSave(char * pc_buffer) const;
virtual char * pcSave(char * pc_buffer) const override;
//*****************************************************************************************
virtual const char * pcLoad(const char * pc_buffer);
virtual const char * pcLoad(const char * pc_buffer) override;
};

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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