-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFlagsState.hpp
More file actions
35 lines (34 loc) · 769 Bytes
/
FlagsState.hpp
File metadata and controls
35 lines (34 loc) · 769 Bytes
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
#pragma once
class FlagsState {
public:
static bool isOnGround(DWORD flags) {
return flags & (1 << 0);
}
static bool isDucking(DWORD flags) {
return flags & (1 << 1);
}
static bool isWaterJump(DWORD flags) {
return flags & (1 << 2);
}
static bool isOnTrain(DWORD flags) {
return flags & (1 << 3);
}
static bool isInRain(DWORD flags) {
return flags & (1 << 4);
}
static bool isFrozen(DWORD flags) {
return flags & (1 << 5);
}
static bool isAtControls(DWORD flags) {
return flags & (1 << 6);
}
static bool isClient(DWORD flags) {
return flags & (1 << 7);
}
static bool isFakeClient(DWORD flags) {
return flags & (1 << 8);
}
static bool isInWater(DWORD flags) {
return flags & (1 << 9);
}
};