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
ed978199
Commit
ed978199
authored
Mar 19, 2018
by
Kameron Kinsey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize repository
parent
8b1ccb86
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
72 additions
and
4 deletions
+72
-4
Monster.cpp
Monster.cpp
+66
-2
Monster.h
Monster.h
+6
-2
No files found.
Monster.cpp
View file @
ed978199
...
...
@@ -82,7 +82,7 @@ Monster::summon(int encounterNum) {
}
}
int
Monster
::
s
etFight
(
int
encounterNum
)
{
int
Monster
::
g
etFight
(
int
encounterNum
)
{
switch
(
encounterNum
)
{
case
1
:
...
...
@@ -149,7 +149,7 @@ int Monster::setFight(int encounterNum) {
}
}
int
Monster
::
s
etTalk
(
int
encounterNum
)
{
int
Monster
::
g
etTalk
(
int
encounterNum
)
{
switch
(
encounterNum
)
{
case
1
:
...
...
@@ -280,3 +280,67 @@ void Monster::giveItems(int encounterNum, Inventory inventory) {
}
}
void
Monster
::
monsterResponse
(
int
encounterNum
,
int
playerWon
)
{
switch
(
encounterNum
)
{
case
1
:
// Toilet
cout
<<
"You have successfully defeated the Toilet, better wash your clothes afterward though. . ."
<<
endl
;
case
2
:
// Green Bar
cout
<<
"You now feel doubly accomplished at the defeat of the Green Bar"
<<
endl
;
case
3
:
// Potato
cout
<<
"You have defeated the potato, it wasn't that difficult, but y'know"
<<
ednl
;
case
4
:
// Nazi
cout
<<
"You have defeated the Nazi. He deserved it anyways"
<<
endl
;
case
5
:
// Waffles
cout
<<
"They were just waffles. . . really. . . you monster"
<<
endl
;
case
6
:
// Not so Obvious Trap
cout
<<
"You have successfully defeated the woman, she blows you a kiss"
<<
endl
;
case
7
:
// Game Devs
cout
<<
"You have been allowed to defeat us"
<<
endl
;
case
8
:
// Human
cout
<<
"You have successfully defeated the human"
<<
endl
;
case
9
:
// Mirror
cout
<<
"Ok that was rude I'll be honest but wow, you kinda went overboard on that mirror"
<<
endl
;
case
10
:
// Door
cout
<<
"You have successfully escaped that situation"
<<
endl
;
case
11
:
// Princess
cout
<<
"You have successfully stayed on task"
<<
endl
;
case
12
:
// EA
cout
<<
"You have defeated EA for now, but they'll be back. They'll always be back"
<<
endl
;
case
13
:
// Ghost
cout
<<
"You have defeated Carl in a Sheet"
<<
endl
;
case
14
:
// Textbook
cout
<<
"You have defeated the shame of ignoring your studies"
<<
endl
;
case
15
:
// Hobo
cout
<<
"You have defeated the Hobo"
<<
endl
;
case
16
:
// 1 Direction
cout
<<
"You have defeated 1 Direction"
<<
endl
;
case
17
:
// Doll
cout
<<
"You have deafeated the doll"
<<
endl
;
case
18
:
// Real Slim Shady
cout
<<
"You have defeated the Real Slim Shady"
<<
endl
;
case
19
:
// Depression
cout
<<
"You have defeated depression. . . for now. . ."
<<
endl
;
case
20
:
// Blue
cout
<<
"The color Blue has been defeated"
<<
endl
;
}
\ No newline at end of file
Monster.h
View file @
ed978199
...
...
@@ -16,7 +16,8 @@ using namespace std;
class
Monster
{
private:
int
fight
,
talk
;
int
fight
;
int
talk
;
public:
// Get Functions
...
...
@@ -24,6 +25,9 @@ class Monster {
int
getTalk
(
int
encounterNum
);
// Other Functions
summon
(
int
encounterNum
);
void
summon
(
int
encounterNum
);
void
giveitems
(
int
encounterNum
,
int
Inventory
inventory
);
void
monsterResponse
(
int
encounterNum
,
int
playerWon
);
};
\ No newline at end of file
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