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
be757576
Commit
be757576
authored
6 months ago
by
Nicolas Will
Browse files
Options
Downloads
Patches
Plain Diff
remove unused member an funktionts in level.hpp
parent
5c2761ec
Branches
Branches containing commit
No related tags found
2 merge requests
!29
Merge main into box2d to implement physics
,
!20
Level event handler
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/game/Level.hpp
+8
-18
8 additions, 18 deletions
src/game/Level.hpp
with
8 additions
and
18 deletions
src/game/Level.hpp
+
8
−
18
View file @
be757576
...
...
@@ -71,35 +71,25 @@ class Level : public Scene
std
::
string
m_name
;
int
m_width
;
int
m_height
;
std
::
vector
<
Tile
>
m_tiles
;
std
::
unordered_map
<
int
,
Building
>
m_buildings
;
std
::
unordered_map
<
int
,
Unit
>
m_units
;
std
::
unordered_map
<
int
,
Effect
>
m_effects
;
int
m_selectedUnit
;
int
m_targetedUnit
;
int
m_selectedBuilding
;
ContextMenu
m_contextMenu
;
bool
m_contextMenuActive
;
int
m_id
;
LevelState
m_state
;
std
::
pair
<
int
,
int
>
calcTilePos
(
int
mouseX
,
int
mouseY
);
void
selectEntity
(
int
x
,
int
y
);
int
selectUnit
(
int
tileX
,
int
tileY
);
bool
targetUnit
(
int
tileX
,
int
tileY
);
int
selectBuilding
(
int
tileX
,
int
tileY
);
void
handleSelectingEvents
(
Engine
&
engine
,
SDL_Event
&
event
);
void
handleMenuActiveEvents
(
Engine
&
engine
,
SDL_Event
&
event
);
void
handleMovementEvents
(
Engine
&
engine
,
SDL_Event
&
event
);
void
handleAttackingEvents
(
Engine
&
engine
,
SDL_Event
&
event
);
bool
clickCheckLeft
(
int
mouseX
,
int
mouseY
);
bool
clickCheckRight
(
int
mouseX
,
int
mouseY
);
};
}
// 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