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
added att and def getter
pull/1/head
myitinos
6 years ago
parent
4a851a8000
commit
bbae242f9a
1 changed files
with
10 additions
and
0 deletions
Unified 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
;
return
maxHp
;
}
}
int
getDef
(
)
{
return
def
;
}
int
getAtt
(
)
{
return
att
;
}
int
defend
(
int
dmg
)
int
defend
(
int
dmg
)
{
{
dmg
-
=
def
;
dmg
-
=
def
;
Write
Preview
Loading…
Cancel
Save