This website works better with JavaScript.
Home
Explore
Help
Sign In
myitinos
/
HackTheGame-v001
Watch
1
Star
0
Fork
1
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
added att and def getter
master
myitinos
5 years ago
parent
4a851a8000
commit
bbae242f9a
1 changed files
with
10 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+10
-0
class/character.hpp
+ 10
- 0
class/character.hpp
View File
@ -57,6 +57,16 @@ class Character
return
maxHp
;
}
int
getDef
(
)
{
return
def
;
}
int
getAtt
(
)
{
return
att
;
}
int
defend
(
int
dmg
)
{
dmg
-
=
def
;
Write
Preview
Loading…
Cancel
Save