Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cpp-project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Maul
cpp-project
Commits
08afc5fd
Commit
08afc5fd
authored
5 months ago
by
Lorenz Martin Diel
Browse files
Options
Downloads
Patches
Plain Diff
deleted Engine.hpp
parent
ef6e0f5c
Branches
Branches containing commit
No related tags found
1 merge request
!44
updated config.xml, now damagetable should completly work
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/game/ui/Engine.hpp
+0
-73
0 additions, 73 deletions
src/game/ui/Engine.hpp
with
0 additions
and
73 deletions
src/game/ui/Engine.hpp
deleted
100644 → 0
+
0
−
73
View file @
ef6e0f5c
#pragma once
#include
"Config.hpp"
#include
"SDL_events.h"
#include
"Scene.hpp"
#include
"Spritesheet.hpp"
#include
"Window.hpp"
#include
<SDL.h>
#include
<SDL_render.h>
#include
<deque>
#include
<memory>
#include
<optional>
namespace
advanced_wars
{
// Forward declaration
class
Scene
;
class
Config
;
/**
* @brief The main window of the game
*/
class
Engine
{
public:
Engine
(
Window
&
window
);
Engine
(
const
Engine
&
)
=
delete
;
Engine
&
operator
=
(
const
Engine
&
)
=
delete
;
bool
exited
();
void
exit
();
void
pump
();
void
pushScene
(
std
::
shared_ptr
<
Scene
>
scene
);
std
::
optional
<
std
::
shared_ptr
<
Scene
>>
popScene
();
void
returnToMenu
();
std
::
deque
<
SDL_Event
>&
events
();
void
setSpritesheet
(
Spritesheet
&
spritesheet
);
Spritesheet
*
getSpritesheet
();
int
getStage
();
Config
&
getUnitConfig
();
void
render
();
SDL_Renderer
*
renderer
();
~
Engine
();
private:
Window
&
m_window
;
SDL_Renderer
*
m_SDLRenderer
;
std
::
vector
<
std
::
shared_ptr
<
Scene
>>
m_scenes
;
std
::
optional
<
Spritesheet
*>
m_spritesheet
;
std
::
deque
<
SDL_Event
>
m_events
;
bool
m_quit
;
int
m_stage
;
Config
m_unitConfig
;
};
}
// namespace advanced_wars
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment