Update README.md

Add GameProject to Solution
This commit is contained in:
2024-03-07 15:36:20 +01:00
parent 547809c898
commit 3dcfc744d5
18 changed files with 443 additions and 12 deletions

30
Game/Game.h Normal file
View File

@@ -0,0 +1,30 @@
#pragma once
#include "BaseGame.h"
class Game : public BaseGame
{
public:
explicit Game(const Window& window);
Game(const Game& other) = delete;
Game& operator=(const Game& other) = delete;
Game(Game&& other) = delete;
Game& operator=(Game&& other) = delete;
// http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rh-override
~Game();
void Update(float elapsedSec) override;
void Draw() const override;
// Event handling
void ProcessKeyDownEvent(const SDL_KeyboardEvent& e) override;
void ProcessKeyUpEvent(const SDL_KeyboardEvent& e) override;
void ProcessMouseMotionEvent(const SDL_MouseMotionEvent& e) override;
void ProcessMouseDownEvent(const SDL_MouseButtonEvent& e) override;
void ProcessMouseUpEvent(const SDL_MouseButtonEvent& e) override;
private:
// FUNCTIONS
void Initialize();
void Cleanup();
void ClearBackground() const;
};