This website works better with JavaScript.
Home
Explore
Help
Sign In
myitinos
/
HackTheGame-v002
forked from
myitinos/HackTheGame-v001
Watch
1
Star
0
Fork
1
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
addedd level getter
pull/1/head
myitinos
5 years ago
parent
88aabb485a
commit
bddb6a47fd
1 changed files
with
5 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
class/player.hpp
+ 5
- 0
class/player.hpp
View File
@ -26,6 +26,11 @@ class Player : public Character
this
-
>
level
=
level
;
}
int
getLevel
(
)
{
return
level
;
}
bool
checkLevelup
(
)
{
return
xp
>
(
level
*
level
)
;
Write
Preview
Loading…
Cancel
Save