-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.h
94 lines (89 loc) · 2.53 KB
/
game.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
#ifndef GAME_H
#define GAME_H
#include <QDir>
#include <QFile>
#include <QJsonDocument>
#include <QJsonArray>
#include <QJsonObject>
#include <QByteArray>
#include <QStringList>
#include <QCoreApplication>
#include <QDirIterator>
#include <QStringList>
#include <QString>
#include <QSet>
#include <QTime>
#include <QList>
#include <QLocale>
#include <QHash>
#include "person.h"
#include "account.h"
#include "clubs.h"
#include "stat.h"
#include "skill.h"
#include "rule.h"
#include "schoolsubject.h"
#include "item.h"
#include "statuseffect.h"
#include "schoolupgrade.h"
//#include
class Game
{
public:
Game(const char*);
bool jsonLoad(QString);
bool jsonSave(QString) const;
private:
QSet<QString> observed_keys;
QLocale GameCulture;
//StatisticsManager StatisticsManager;
//EventStructManager StructManager;
//NotificationManager NotifyManager;
//PersonRelationshipDatabase RelationshipDatabase;
//TheWorld TheSchool;
//ClassroomAssignments ClassAssignments;
//GameCalendar SchoolCalendar;
Person HeadTeacher;
QMap<QString, Account> DictOfAccounts;
QMap<QString, Clubs> ListOfClubs;
QString GamePath;
QString inteventlog;
bool EventLogflag;
QHash<long, Person> DictOfPersonIDs;
QHash<QString, Person> DictOfPersonNames;
QMap<QString, Person> HiredTeacher;
QMap<QString, Person> NotHiredTeacher;
QMap<QString, Person> AvailableStaff;
QMap<QString, Person> HiredStaff;
QHash<QString, Person> OwnStudents;
QHash<QString, Person> OtherStudents;
QHash<QString, Person> ListOfPTA;
QHash<QString, Person> UnemployedPersons;
QList<Person> occupandlist;
//QList<SchoolClass> ListSchoolClasses;
int DesiredNumSchoolClasses;
//SchoolClass SpareStudentsClass;
QHash<QString, StatusEffect> DictOfStatusEffects;
QHash<QString, Stat> DictOfStats;
QHash<QString, Skill> DictOfSkills;
QList<QString> ListOfJobs;
QSet<SchoolUpgrade> ListOfSchoolUpgrades;
QMap<QString, Rule> ListOfRules;
QHash<QString, Item> ListOfBaseItems;
QHash<QString, SchoolSubject> DictOfSubjects;
//QList<PersonScheduleHandler> ListOfScheduleHandlers;
QHash<QString, double> CachedGlobalStats;
//GameScenarioConfig ScenarioConfig;
//QList<Button> lstbutton;
//PopulationGenerator PopulationManager;
int TickCount;
QList<long> FavoriteStudentList;
int helpercounter;
QString LastWorldLocationPath;
bool GameInitialized;
bool GameLoading;
int LastAutosaveDay;
bool CheatsUsed;
QJsonObject data;
};
#endif // GAME_H