-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathactions.h
More file actions
43 lines (36 loc) · 910 Bytes
/
actions.h
File metadata and controls
43 lines (36 loc) · 910 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
36
37
38
39
40
41
42
43
#pragma once
#include "memory.h"
#include <iostream>
///////////////////////////////////////////////////////////////
// class Actions actions performed by bot account
class Actions
{
private:
bool flagForward;
struct ActionFlag
{
uintptr_t action;
bool actionFlag;
};
public:
//SetActions copy addressess values to struct
void SetActions(const AddressesList& addresses);
//WriteToMem write value to game memory
void WriteToMem(uintptr_t address, int value);
//Do perform action
bool Do(ActionFlag &action);
//Stop performing action
bool Stop(ActionFlag& action);
///////////////////////////////////////////////////////////////
//AmIDoing return positive if performing action
bool AmIDoing(ActionFlag &action);
public:
ActionFlag movForward;
ActionFlag movBack;
ActionFlag movLeft;
ActionFlag movRight;
ActionFlag crouch;
ActionFlag att;
ActionFlag altAtt;
ActionFlag jump;
};