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
renamed function to check alive or not and added name getter
master
myitinos
5 years ago
parent
bbae242f9a
commit
88aabb485a
1 changed files
with
7 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+7
-2
class/character.hpp
+ 7
- 2
class/character.hpp
View File
@ -32,12 +32,12 @@ class Character
this
-
>
def
=
def
;
}
bool
checkDie
d
(
)
bool
isDea
d
(
)
{
return
hp
<
=
0
;
}
bool
check
Alive
(
)
bool
is
Alive
(
)
{
return
hp
>
0
;
}
@ -62,6 +62,11 @@ class Character
return
def
;
}
char
*
getName
(
)
{
return
name
;
}
int
getAtt
(
)
{
return
att
;
Write
Preview
Loading…
Cancel
Save