-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlot.cpp
More file actions
53 lines (46 loc) · 2.69 KB
/
Copy pathPlot.cpp
File metadata and controls
53 lines (46 loc) · 2.69 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
52
53
#include "Header.h"
#include <iostream>
//For main events and plot
void StartGame(Enemy& enemy, Character& hero, GameHard& levelDificulty)
{
std::cout << "\n┌───────────────────────────────────────────────────┐\n";
std::cout << "│ START GAME │\n";
std::cout << "└───────────────────────────────────────────────────┘\n";
levelDificulty.ChoiceHard(enemy);
std::cout << "┌───────────────────────────────────────────────────┐\n";
std::cout << "│ Welcome to the game! Your adventure begins now. │\n";
std::cout << "└───────────────────────────────────────────────────┘\n\n";
Turn(hero, levelDificulty);
}
void Turn(Character& hero, GameHard& levelDificulty)
{
std::cout << "\n┌───────────────────────────────────────────────────┐\n";
std::cout << "│ TURN │\n";
std::cout << "├───────────────────────────────────────────────────┤\n";
std::cout << "│ 1. Make turn │\n";
std::cout << "│ 2. Look in inventory │\n";
std::cout << "│ 3. Go to main menu │\n";
std::cout << "└───────────────────────────────────────────────────┘\n";
std::cout << "Enter choice : ";
int choice = 0;
std::cin >> choice;
switch(choice)
{
case 1:
std::cout << "\nYou make a turn.\n";
RandomizerEvent(hero, levelDificulty); // Assuming you have a GameHard object to pass
break;
case 2:
std::cout << "\nYou have chosen to look in your inventory.\n";
hero.GetInventory()->DisplayInventory();
break;
case 3:
std::cout << "\nReturning to main menu.\n";
MainFunction();
break;
default:
std::cout << "\nInvalid choice. Please select a valid option.\n";
break;
}
std::cout << "\n\n";
}