-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMusicGame.h
139 lines (122 loc) · 2.47 KB
/
MusicGame.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
//#include <sys/types.h>
#include <graphics.h>
#include <dirent.h>
#include <iostream>
#include <string>
#include <fstream>
#include <Windows.h>
#include <vector>
//#include <conio.h>
using namespace std;
int Getdir(string, vector<string> &);
class HitObject{
public:
int x;
int y;
int time;
int hit;
int *hits;
int type;
int hitSound;
int repeat;
int length;
int sampleSet;
int sliderType;
vector<int> sliderPoints;
int endtime;
HitObject(string);
};
class TimingPoint{
public:
int offset;
float msPerBeat;
int meter;
int sampleSet;
int volume;
int inherited;
int kiaiMode;
TimingPoint(string);
};
class song{
public:
string path;
string dir;
string backGround;
string AudioFilename;
string Title;
string TitleUnicode;
string Artist;
string ArtistUnicode;
string Version;
int BeatmapID;
string PreviewTime;
float HPDrainRate;
float CircleSize;
float OverallDifficulty;
float ApproachRate;
float SliderMultiplier;
float SliderTickRate;
vector<TimingPoint> timingpoints;
vector<HitObject> hitobjects;
};
class gameResult{
public:
int passed;
int perfect;
int great;
int good;
int bad;
int miss;
int score;
int life;
int combo;
int maxcombo;
int rank;
int error;
float unstableRate;
};
class hobj{
public:
int time;
int length;
int err;
int enderr;
hobj(int t, int l){ time = t;length = l;err=1000;enderr=1000;}
};
class MusicGame{
private:
int songcount; //properties
song *songs;
int gameMode;
char keys[7];
float speed;
int offset;
int mods;
int columnWidth;
int columnPosition;
int sudden;
int lift;
//int skin;
int terminated;
char tmp[150];
int selectScreen(); //methods
void readBeatmap(int);
void freeBeatmap(int);
//beatmap createBeatmap(originalBeatmap); //inside game(int);
gameResult game(int);
gameResult TKgame(int);
void resultScreen(gameResult, int);
int pauseScreen(void*, void*);
void resultScreen(song, gameResult);
int pvScreen(int, int, int, void*, void*, void*, void*, void*); //miscellaneous methods
void configScreen(int, void*);
void KeyconfigScreen(void*);
void ModconfigScreen(void*);
void PositionconfigScreen(void*);
void OffsetTool();
void saveConfig();
int Getdir(string, vector<string> &);
public:
MusicGame();
int GameMain();
};