Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
C
cptr142_group_project
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aaron Sturtevant
cptr142_group_project
Commits
1fde9a21
Commit
1fde9a21
authored
Mar 19, 2018
by
Kameron Kinsey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize repository
parent
cba6a64b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
Boss.cpp
Boss.cpp
+17
-0
Boss.h
Boss.h
+2
-0
Player.h
Player.h
+3
-1
No files found.
Boss.cpp
View file @
1fde9a21
...
@@ -96,3 +96,20 @@ void Boss::bossResponse(int floorNum, int playerWon) {
...
@@ -96,3 +96,20 @@ void Boss::bossResponse(int floorNum, int playerWon) {
}
}
}
}
void
giveBossItems
(
int
floorNum
,
Inventory
inventory
)
{
switch
(
floorNum
)
{
case
1
:
// Minotaur
inventory
.
gainNewItem
(
"Cow Hammer"
,
10
,
-
5
);
case
2
:
// Death
inventory
.
gainNewItem
(
"Death Svythe"
,
7
,
7
);
case
3
:
// Dragon
inventory
.
gainNewItem
(
"Dragon Heart"
,
0
,
10
);
case
4
:
// Dungen Master
inventory
.
gainNewItem
(
"Maguffin of Vague Desireability"
,
15
,
15
);
}
}
\ No newline at end of file
Boss.h
View file @
1fde9a21
...
@@ -23,5 +23,7 @@ class Boss {
...
@@ -23,5 +23,7 @@ class Boss {
// Other Functions
// Other Functions
void
summonBoss
(
int
floorNum
);
void
summonBoss
(
int
floorNum
);
void
bossResponse
(
int
floorNum
,
int
playerWon
);
void
giveBossItems
(
int
floorNum
,
Inventory
inventory
);
};
};
\ No newline at end of file
Player.h
View file @
1fde9a21
...
@@ -19,7 +19,9 @@ class Player {
...
@@ -19,7 +19,9 @@ class Player {
talk
=
10
,
talk
=
10
,
string
playerName
;
string
playerName
;
public:
public:
int
health
=
100
;
//
int
health
=
100
;
// Get Functions
// Get Functions
int
getFight
()
{
return
fight
;
}
int
getFight
()
{
return
fight
;
}
int
getTalk
()
{
return
talk
;
}
int
getTalk
()
{
return
talk
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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