Skip to content
This repository was archived by the owner on Apr 11, 2026. It is now read-only.
/ GLKeeper Public archive

Commit 7b7be4d

Browse files
committed
rename
1 parent 8076587 commit 7b7be4d

6 files changed

Lines changed: 27 additions & 27 deletions

src/GameplayGamestate.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88

99
void GameplayGamestate::HandleGamestateEnter()
1010
{
11-
gRenderScene.SetCameraController(&mGodmodeCameraControl);
11+
gRenderScene.SetCameraController(&mTopDownCameraControl);
1212

1313
// setup camera
1414
PlayerDefinition& playerDefinition = gGameWorld.mScenarioData.mPlayerDefs[ePlayerID_Keeper1];
1515
glm::vec3 cameraTileCoord;
1616
Point cameraTilePosition(playerDefinition.mStartCameraX, playerDefinition.mStartCameraY);
1717
GetMapBlockCenter(cameraTilePosition, cameraTileCoord);
18-
mGodmodeCameraControl.SetFocusPoint(cameraTileCoord);
18+
mTopDownCameraControl.SetFocusPoint(cameraTileCoord);
1919

2020
gGameMain.mFpsWindow.SetWindowShown(true);
2121

@@ -79,7 +79,7 @@ void GameplayGamestate::HandleInputEvent(KeyCharEvent& inputEvent)
7979

8080
void GameplayGamestate::HandleScreenResolutionChanged()
8181
{
82-
mGodmodeCameraControl.HandleScreenResolutionChanged();
82+
mTopDownCameraControl.HandleScreenResolutionChanged();
8383
}
8484

8585
bool GameplayGamestate::IsMapInteractionActive() const

src/GameplayGamestate.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22

33
#include "GenericGamestate.h"
4-
#include "GodmodeCameraController.h"
4+
#include "TopDownCameraController.h"
55
#include "GameplayGameScreen.h"
66
#include "MapInteractionController.h"
77

@@ -37,5 +37,5 @@ class GameplayGamestate: public GenericGamestate
3737
bool IsMapInteractionActive() const;
3838

3939
private:
40-
GodmodeCameraController mGodmodeCameraControl;
40+
TopDownCameraController mTopDownCameraControl;
4141
};

src/GrimLandsKeeper.vcxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
<ClInclude Include="GameObjectComponent.h" />
211211
<ClInclude Include="GameObjectsManager.h" />
212212
<ClInclude Include="GenericRoom.h" />
213-
<ClInclude Include="GodmodeCameraController.h" />
213+
<ClInclude Include="TopDownCameraController.h" />
214214
<ClInclude Include="TerrainTile.h" />
215215
<ClInclude Include="GameObjectsDefs.h" />
216216
<ClInclude Include="GameplayGamestate.h" />
@@ -347,7 +347,7 @@
347347
<ClCompile Include="GameObject.cpp" />
348348
<ClCompile Include="GameObjectsManager.cpp" />
349349
<ClCompile Include="GenericRoom.cpp" />
350-
<ClCompile Include="GodmodeCameraController.cpp" />
350+
<ClCompile Include="TopDownCameraController.cpp" />
351351
<ClCompile Include="TerrainTile.cpp" />
352352
<ClCompile Include="GameplayGamestate.cpp" />
353353
<ClCompile Include="GameWorld.cpp" />

src/GrimLandsKeeper.vcxproj.filters

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@
510510
<ClInclude Include="TerrainTilesCursor.h">
511511
<Filter>Game\World</Filter>
512512
</ClInclude>
513-
<ClInclude Include="GodmodeCameraController.h">
513+
<ClInclude Include="TopDownCameraController.h">
514514
<Filter>Game\Scene\CameraControllers</Filter>
515515
</ClInclude>
516516
</ItemGroup>
@@ -805,7 +805,7 @@
805805
<ClCompile Include="TerrainTilesCursor.cpp">
806806
<Filter>Game\World</Filter>
807807
</ClCompile>
808-
<ClCompile Include="GodmodeCameraController.cpp">
808+
<ClCompile Include="TopDownCameraController.cpp">
809809
<Filter>Game\Scene\CameraControllers</Filter>
810810
</ClCompile>
811811
</ItemGroup>
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "pch.h"
2-
#include "GodmodeCameraController.h"
2+
#include "TopDownCameraController.h"
33
#include "System.h"
44
#include "RenderScene.h"
55
#include "GraphicsDevice.h"
@@ -15,7 +15,7 @@
1515
#define CAM_MAX_DISTANCE 100.0f
1616
#define CAM_MIN_DISTANCE 0.5f
1717

18-
GodmodeCameraController::GodmodeCameraController()
18+
TopDownCameraController::TopDownCameraController()
1919
: mFocusPoint()
2020
, mDegYaw(CAM_DEFAULT_YAW_ANGLE)
2121
, mDegPitch(CAM_DEFAULT_PITCH_ANGLE)
@@ -35,7 +35,7 @@ GodmodeCameraController::GodmodeCameraController()
3535
{
3636
}
3737

38-
void GodmodeCameraController::Set3rdPersonParams(float yawDegrees, float pitchDegrees, float distance)
38+
void TopDownCameraController::Set3rdPersonParams(float yawDegrees, float pitchDegrees, float distance)
3939
{
4040
mDegYaw = yawDegrees;
4141
mDegPitch = pitchDegrees;
@@ -44,14 +44,14 @@ void GodmodeCameraController::Set3rdPersonParams(float yawDegrees, float pitchDe
4444
SetupCameraView();
4545
}
4646

47-
void GodmodeCameraController::SetFocusPoint(const glm::vec3& position)
47+
void TopDownCameraController::SetFocusPoint(const glm::vec3& position)
4848
{
4949
mFocusPoint = position;
5050

5151
SetupCameraView();
5252
}
5353

54-
void GodmodeCameraController::StopCameraActivity()
54+
void TopDownCameraController::StopCameraActivity()
5555
{
5656
mIncreasingFov = false;
5757
mDecreasingFov = false;
@@ -69,7 +69,7 @@ void GodmodeCameraController::StopCameraActivity()
6969
mMovingAltMode = false;
7070
}
7171

72-
void GodmodeCameraController::HandleUpdateFrame(float dtseconds)
72+
void TopDownCameraController::HandleUpdateFrame(float dtseconds)
7373
{
7474
glm::vec3 moveDirection {};
7575
float elevation = 0.0f;
@@ -145,30 +145,30 @@ void GodmodeCameraController::HandleUpdateFrame(float dtseconds)
145145
SetupCameraView();
146146
}
147147

148-
void GodmodeCameraController::HandleSceneAttach()
148+
void TopDownCameraController::HandleSceneAttach()
149149
{
150150
SetupCameraProjection();
151151
SetupCameraView();
152152
StopCameraActivity();
153153
}
154154

155-
void GodmodeCameraController::HandleSceneDetach()
155+
void TopDownCameraController::HandleSceneDetach()
156156
{
157157
}
158158

159-
void GodmodeCameraController::HandleInputEvent(MouseButtonInputEvent& inputEvent)
159+
void TopDownCameraController::HandleInputEvent(MouseButtonInputEvent& inputEvent)
160160
{
161161
}
162162

163-
void GodmodeCameraController::HandleInputEvent(MouseMovedInputEvent& inputEvent)
163+
void TopDownCameraController::HandleInputEvent(MouseMovedInputEvent& inputEvent)
164164
{
165165
}
166166

167-
void GodmodeCameraController::HandleInputEvent(MouseScrollInputEvent& inputEvent)
167+
void TopDownCameraController::HandleInputEvent(MouseScrollInputEvent& inputEvent)
168168
{
169169
}
170170

171-
void GodmodeCameraController::HandleInputEvent(KeyInputEvent& inputEvent)
171+
void TopDownCameraController::HandleInputEvent(KeyInputEvent& inputEvent)
172172
{
173173
if (inputEvent.mKeycode == eKeycode_0)
174174
{
@@ -213,16 +213,16 @@ void GodmodeCameraController::HandleInputEvent(KeyInputEvent& inputEvent)
213213
}
214214
}
215215

216-
void GodmodeCameraController::HandleInputEvent(KeyCharEvent& inputEvent)
216+
void TopDownCameraController::HandleInputEvent(KeyCharEvent& inputEvent)
217217
{
218218
}
219219

220-
void GodmodeCameraController::HandleScreenResolutionChanged()
220+
void TopDownCameraController::HandleScreenResolutionChanged()
221221
{
222222
SetupCameraProjection();
223223
}
224224

225-
void GodmodeCameraController::SetupCameraView()
225+
void TopDownCameraController::SetupCameraView()
226226
{
227227
if (mSceneCamera == nullptr)
228228
return;
@@ -240,7 +240,7 @@ void GodmodeCameraController::SetupCameraView()
240240
mSceneCamera->FocusAt(mFocusPoint);
241241
}
242242

243-
void GodmodeCameraController::SetupCameraProjection()
243+
void TopDownCameraController::SetupCameraProjection()
244244
{
245245
if (mSceneCamera == nullptr)
246246
return;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
#include "CameraController.h"
44

5-
class GodmodeCameraController: public CameraController
5+
class TopDownCameraController: public CameraController
66
{
77
public:
8-
GodmodeCameraController();
8+
TopDownCameraController();
99

1010
// set 3rd person camera params
1111
// @param yawDegrees, pitchDegrees: Yaw and pitch specified in degrees

0 commit comments

Comments
 (0)