1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace KriKrixs\object\beatmap; |
4
|
|
|
|
5
|
|
|
class BeatMapVersionDifficulty |
6
|
|
|
{ |
7
|
|
|
private object $diff; |
8
|
|
|
|
9
|
|
|
/** |
10
|
|
|
* Create a new BeatMapVersionDifficulty object |
11
|
|
|
* @param object $diff |
12
|
|
|
*/ |
13
|
|
|
public function __construct(object $diff) |
14
|
|
|
{ |
15
|
|
|
$this->diff = $diff; |
16
|
|
|
} |
17
|
|
|
|
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* Get map version difficulty NJS |
21
|
|
|
* @return float |
22
|
|
|
*/ |
23
|
|
|
public function getNjs(): float |
24
|
|
|
{ |
25
|
|
|
return $this->diff->njs; |
26
|
|
|
} |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* Get map version difficulty offset |
30
|
|
|
* @return float |
31
|
|
|
*/ |
32
|
|
|
public function getOffset(): float |
33
|
|
|
{ |
34
|
|
|
return $this->diff->offset; |
35
|
|
|
} |
36
|
|
|
|
37
|
|
|
/** |
38
|
|
|
* Get map version difficulty notes |
39
|
|
|
* @return int |
40
|
|
|
*/ |
41
|
|
|
public function getNotes(): int |
42
|
|
|
{ |
43
|
|
|
return $this->diff->notes; |
44
|
|
|
} |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* Get map version difficulty bombs |
48
|
|
|
* @return int |
49
|
|
|
*/ |
50
|
|
|
public function getBombs(): int |
51
|
|
|
{ |
52
|
|
|
return $this->diff->bombs; |
53
|
|
|
} |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* Get map version difficulty obstacles |
57
|
|
|
* @return int |
58
|
|
|
*/ |
59
|
|
|
public function getObstacles(): int |
60
|
|
|
{ |
61
|
|
|
return $this->diff->obstacles; |
62
|
|
|
} |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* Get map version difficulty NPS |
66
|
|
|
* @return float |
67
|
|
|
*/ |
68
|
|
|
public function getNps(): float |
69
|
|
|
{ |
70
|
|
|
return $this->diff->nps; |
71
|
|
|
} |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* Get map version difficulty length |
75
|
|
|
* @return int |
76
|
|
|
*/ |
77
|
|
|
public function getLength(): int |
78
|
|
|
{ |
79
|
|
|
return $this->diff->length; |
80
|
|
|
} |
81
|
|
|
|
82
|
|
|
/** |
83
|
|
|
* Get map version difficulty game mode |
84
|
|
|
* @return string |
85
|
|
|
*/ |
86
|
|
|
public function getGameMode(): string |
87
|
|
|
{ |
88
|
|
|
return $this->diff->characteristic; |
89
|
|
|
} |
90
|
|
|
|
91
|
|
|
/** |
92
|
|
|
* Get map version difficulty game difficulty |
93
|
|
|
* @return string |
94
|
|
|
*/ |
95
|
|
|
public function getGameDifficulty(): string |
96
|
|
|
{ |
97
|
|
|
return $this->diff->difficulty; |
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
/** |
101
|
|
|
* Get map version difficulty events |
102
|
|
|
* @return int |
103
|
|
|
*/ |
104
|
|
|
public function getEvents(): int |
105
|
|
|
{ |
106
|
|
|
return $this->diff->events; |
107
|
|
|
} |
108
|
|
|
|
109
|
|
|
/** |
110
|
|
|
* Get map version difficulty parity summary |
111
|
|
|
* @return BeatMapVersionDifficultyParitySummary |
112
|
|
|
*/ |
113
|
|
|
public function getParitySummary(): BeatMapVersionDifficultyParitySummary |
114
|
|
|
{ |
115
|
|
|
return new BeatMapVersionDifficultyParitySummary($this->diff->paritySummary); |
116
|
|
|
} |
117
|
|
|
|
118
|
|
|
/** |
119
|
|
|
* Get map version difficulty seconds |
120
|
|
|
* @return int |
121
|
|
|
*/ |
122
|
|
|
public function getSeconds(): int |
123
|
|
|
{ |
124
|
|
|
return $this->diff->seconds; |
125
|
|
|
} |
126
|
|
|
|
127
|
|
|
/** |
128
|
|
|
* Does map version difficulty require chroma |
129
|
|
|
* @return bool |
130
|
|
|
*/ |
131
|
|
|
public function isChromaRequired(): bool |
132
|
|
|
{ |
133
|
|
|
return $this->diff->chroma; |
134
|
|
|
} |
135
|
|
|
|
136
|
|
|
/** |
137
|
|
|
* Does map version difficulty require mapping extensions |
138
|
|
|
* @return bool |
139
|
|
|
*/ |
140
|
|
|
public function isMappingExtensionsRequired(): bool |
141
|
|
|
{ |
142
|
|
|
return $this->diff->me; |
143
|
|
|
} |
144
|
|
|
|
145
|
|
|
/** |
146
|
|
|
* Does map version difficulty require noodle extensions |
147
|
|
|
* @return bool |
148
|
|
|
*/ |
149
|
|
|
public function isNoodleExtensionsRequired(): bool |
150
|
|
|
{ |
151
|
|
|
return $this->diff->ne; |
152
|
|
|
} |
153
|
|
|
|
154
|
|
|
/** |
155
|
|
|
* Is map version difficulty a cinema |
156
|
|
|
* @return bool |
157
|
|
|
*/ |
158
|
|
|
public function isCinema(): bool |
159
|
|
|
{ |
160
|
|
|
return $this->diff->cinema; |
161
|
|
|
} |
162
|
|
|
} |