Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Aaron Sturtevant
cptr142_group_project
Commits
8c80baee
Commit
8c80baee
authored
Mar 19, 2018
by
Kameron Kinsey
Browse files
Initialize repository
parent
f513b03a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Player.h
View file @
8c80baee
...
...
@@ -17,20 +17,20 @@ class Player {
private:
int
fight
=
10
,
talk
=
10
,
health
=
100
;
string
playerName
;
public:
int
health
=
100
;
// Get Functions
int
getFight
()
{
return
fight
;
}
int
getTalk
()
{
return
talk
;
}
int
getHealth
()
{
return
health
;
}
string
getPlayerName
()
{
return
playerName
;
}
// Set Functions
void
setStats
(
int
);
int
setFight
(
int
Fight
)
{
fight
=
Fight
;
}
int
setTalk
(
int
Talk
)
{
talk
=
Talk
;
}
int
setPlayerName
(
string
name
)
{
playerName
=
name
;
}
void
setFight
(
int
Fight
)
{
fight
=
Fight
;
}
void
setTalk
(
int
Talk
)
{
talk
=
Talk
;
}
void
setPlayerName
(
string
name
)
{
playerName
=
name
;
}
void
doDamage
(
int
health
)
{
health
-
5
;
}
// Check Victory
bool
checkVictory
(
bool
win
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment