Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C++ Abschlussprojekt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Leon Niklas Lux
C++ Abschlussprojekt
Commits
4f7840fd
Unverified
Commit
4f7840fd
authored
3 months ago
by
Leon Niklas Lux
Committed by
Leon Lux
3 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Fehlendes Doxygen
parent
13dce1b9
No related branches found
No related tags found
1 merge request
!55
Abgabe des Projektes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
liblvl/src/include/player.hpp
+28
-0
28 additions, 0 deletions
liblvl/src/include/player.hpp
with
28 additions
and
0 deletions
liblvl/src/include/player.hpp
+
28
−
0
View file @
4f7840fd
...
...
@@ -7,15 +7,43 @@
namespace
lvl
{
/**
* @brief Starting Values and Sprite IDs for the Player
*/
class
Player
{
public:
/**
* @brief Create a Player with default values. Useful when no HDF5 File is available.
*/
Player
();
/**
* @brief Create a Player with given values.
* @param health Starting Health of the Player
* @param sprites IDs of Player sprites in the Tilesheet.
* @param bullets IDs of the Players bullets in the Tilesheet.
*/
Player
(
int
health
,
const
std
::
vector
<
int
>
&
sprites
,
const
std
::
vector
<
int
>
&
bullets
);
~
Player
()
=
default
;
/**
* @brief Get the Players starting health.
* @return The players starting health.
*/
int
getHealth
()
const
;
/**
* @brief Get the Players sprite ids.
* @return The players sprite ids.
*/
const
std
::
vector
<
int
>
&
getSprites
()
const
;
/**
* @brief Get the Bullet sprite ids.
* @return The bullet sprite ids.
*/
const
std
::
vector
<
int
>
&
getBullets
()
const
;
private:
...
...
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