-
Notifications
You must be signed in to change notification settings - Fork 0
/
Scene.h
110 lines (96 loc) · 3.31 KB
/
Scene.h
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#pragma once
#include "Enums.h"
#include <array>
#include <vector>
#include <string>
#include <iostream>
class Card {
protected:
std::string title;
std::string line;
public:
std::string getTitle() { return title; };
std::string getLine() { return line; };
void setTitle(std::string t) { title = t; };
void setLine(std::string l) { line = l; };
};
class Choice {
private:
std::string description;
std::vector<PersonalityDim> dims;
std::array<int, 3> nums;
std::string text;
std::vector<std::string> code;
public:
Choice(std::string d) { description = d; };
void setDescription(std::string d) { description = d; };
void setDims(std::vector<PersonalityDim> d) { dims = d; };
void setNums(std::array<int, 3> n) { nums = n; };
void setFull(std::string f) { text = f; };
void setCode(std::vector<std::string> c) { code = c; };
std::string getDescription() { return description; };
std::vector<PersonalityDim> getDims() { return dims; };
std::array<int, 3> getNums() { return nums; };
std::string getFull() { return text; };
std::vector<std::string> getCode() { return code; };
std::string printFull();
};
class Additional {
private:
std::vector<std::string> code;
std::string text;
public:
Additional(std::vector<std::string> c) { code = c; };
void setCode(std::vector<std::string> c) { code = c; };
void setFull(std::string t) { text = t; };
std::vector<std::string> getCode() { return code; };
std::string getFull() { return text; };
};
class Chapter : public Card {
private:
int index;
int length;
char whoChoose;
std::vector<Deck> drawFrom;
std::vector<Choice> choices;
std::vector<Additional> additionals;
public:
Chapter(int i, char b, int l, std::vector<Deck> d);
void setIndex(int i) { index = i; };
void setWho(char w) { whoChoose = w; };
void setDraw(std::vector<Deck> d) { drawFrom = d; };
void setChoices(std::vector<Choice> c) { choices = c; };
void setAddis(std::vector<Additional> a) { additionals = a; };
int getIndex() { return index; };
char getWho() { return whoChoose; };
int getLength() { return length; };
std::vector<Deck> getDraw() { return drawFrom; };
std::vector<Choice> getChoices() { return choices; };
std::vector<Additional> getAddis() { return additionals; };
std::string printFull();
};
class Scene: public Card{
private:
int index;
std::string explain_choices;
Deck deck;
//B = Both choose, P = Partner chooses, S = Situation, E = Special Effect, T = Secret, C = Secret w/ Partner chooses, V = Reveal secret, R = Reaction, N = Reaction w/ Partner chooses
char whoChoose;
std::vector<Choice> choices;
std::vector<Additional> additionals;
public:
Scene(int i, Deck d, char w);
void setIndex(int i) { index = i; };
void setExplain(std::string e) { explain_choices = e; };
void setWho(char w) { whoChoose = w; };
void setDeck(Deck d) { deck = d; };
void setChoices(std::vector<Choice> c) { choices = c; };
void setAddis(std::vector<Additional> a) { additionals = a; };
int getIndex() { return index; };
std::string getExplain() { return explain_choices; };
char getWho() { return whoChoose; };
Deck getDeck() { return deck; };
std::vector<Choice> getChoices() { return choices; };
std::vector<Additional> getAddis() { return additionals; };
std::string printFull();
};