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
cfbc22bc
Commit
cfbc22bc
authored
Mar 21, 2018
by
Aaron Sturtevant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
committing
parent
1bd0a3ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
3 deletions
+46
-3
test.cpp
test.cpp
+46
-3
No files found.
test.cpp
View file @
cfbc22bc
...
...
@@ -10,8 +10,51 @@
#include "Dungeon.h"
using
namespace
std
;
Player
player
;
player
.
setPlayerName
(
"Geoff"
);
cout
<<
player
.
getPlayerName
<<
endl
;
\ No newline at end of file
int
main
()
{
Dungeon
dungeon
;
Monster
monster
;
Boss
boss
;
Inventory
inventory
;
Player
player
;
player
.
setPlayerName
(
"Geoff"
);
cout
<<
player
.
getPlayerName
()
<<
endl
;
dungeon
.
monsterResponse
(
15
,
true
);
cout
<<
monster
.
getTalk
(
10
);
cout
<<
player
.
health
<<
endl
;
string
name
;
cout
<<
"Enter your name adventurer!"
<<
endl
;
cin
>>
name
;
cin
.
ignore
(
1000
,
'\n'
);
player
.
setPlayerName
(
name
);
player
.
setStats
(
seed
);
inventory
.
gainItem
(
"Sword"
,
0
,
0
);
cout
<<
"Player has been made"
<<
endl
;
ingameMenu
(
inventory
,
player
);
cout
<<
dungeon
.
floorNum
<<
endl
;
dungeon
.
floorNum
++
;
cout
<<
dugneon
.
floorNum
<<
endl
;
boss
.
summonBoss
(
2
);
boss
.
bossResponse
(
2
,
false
);
cout
<<
boss
.
getFight
(
2
)
<<
endl
;
cout
<<
player
.
health
<<
endl
;
player
.
doDamage
();
cout
<<
player
.
health
<<
endl
;
inventory
.
gainItem
(
"Cow Hammer"
,
10
,
-
5
);
inventory
.
listInventory
;
inventory
.
gainItem
(
"Hydra's Heart"
,
100
,
100
);
inventory
.
listInventory
;
return
0
;
}
\ 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