mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-16 17:51:47 +01:00
Update README.md
Add GameProject to Solution
This commit is contained in:
30
Game/Game.h
Normal file
30
Game/Game.h
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user