-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlot.cpp
More file actions
51 lines (45 loc) · 1.37 KB
/
Copy pathPlot.cpp
File metadata and controls
51 lines (45 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include "Header.h"
#include <iostream>
//For main events and plot
void StartGame(Enemy& enemy, Character& hero)
{
std::cout << "\n\n" ;
std::cout <<"\n=== START GAME ===\n\n\n" << std::endl;
ChoiceHard(enemy);
std::cout << "Welcome to the game! Your adventure begins now." << std::endl;
std::cout <<"\n\n";
Turn(hero);
}
void Turn(Character& hero)
{
std::cout << "\n\n" ;
std::cout <<"\n=== TURN ===\n\n\n" << std::endl;
std::cout <<"----------------"<< std::endl;
std::cout <<"Make turn - 1" << std::endl;
std::cout <<"Look in inventory - 2" << std::endl;
std::cout <<"Go to main menu - 3" << std::endl;
std::cout <<"----------------"<< std::endl;
std::cout << "Enter choice : " ;
int choice = 0;
std::cin >> choice;
switch(choice)
{
case 1:
std::cout << "You make a turn." << std::endl;
RandomizerEvent(hero);
break;
case 2:
std::cout << "You have chosen to look in your inventory." << std::endl;
hero.GetInventory()->DisplayInventory(); {
break;
case 3:
std::cout << "Returning to main menu." << std::endl;
MainFunction();
break;
default:
std::cout << "Invalid choice. Please select a valid option." << std::endl;
break;
}
std::cout << "\n\n" ;
}
}