-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwindow.h
More file actions
44 lines (34 loc) · 1.19 KB
/
Copy pathwindow.h
File metadata and controls
44 lines (34 loc) · 1.19 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
#pragma once
#include <iostream>
#include <string>
#include <vector>
#include <unordered_map>
#include "keyboard.h"
#include "draw.h"
#include "maps.h"
#include "player.h"
#include "progress.h"
#include "chat.h"
using namespace std;
class Window {
int choice_button = 0;
int width = COLS*3;
int height = ROWS/2;
vector<vector<string> > window_buffer;
// Save options
int select_yes, select_no;
vector<string> save_options = {"> YES <", " Yes ", "> NO <", " No "};
public:
bool is_Hero = false;
bool is_Girl = false;
void build_buffer(const string & content);
void reset_buffer();
void Print_buffer(vector<vector<short> > current_map, Player &player, string color);
void intro_character_choice(Player &player);
void handle_choice(Progress &progress, Player &player);
void handle_save_choice(int &choice_button, int &map_code, Player &player);
void Print_fighting(string contents, Player &player, string color, int key_required);
void Print_healing(string contents, Player &player, string color);
void Print_endings(vector<string> contents, string color);
};
extern Window window;