-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp.h
68 lines (56 loc) · 1.25 KB
/
app.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
/*
* @file app.h
* @date May 24, 2017
* @author hamster
*
*/
#ifndef APP_H_
#define APP_H_
void run_app_mode(bool setup);
void badgeSetup(void);
void sawBadge(uint16_t id);
void addSeenManufacturer(uint16_t id);
bool getSeenManufacturer(uint16_t id);
void clearSeenManufacturer(void);
void clearGameData(void);
void updateGameData(char* vector, uint8_t diceRoll);
void updateCommandData(uint16_t flags);
void clearCommandData(void);
void playGame(void);
void protoReset(void);
void masterCommandHandle(void);
typedef struct {
bool crypto;
bool queercon;
bool dc801;
bool dc503;
bool bender;
bool b_d;
bool dczia;
bool dczia_shotbot;
} SEEN_MANUFACTURER;
typedef struct {
uint8_t diceRoll;
uint16_t waitTime;
} INFECTION_PARAMS;
typedef struct {
char username[9];
char vector[9];
} CONFIG_PARAMS;
typedef struct {
char vector[9];
uint8_t diceRoll;
bool nearby;
} GAME_DATA;
typedef struct {
bool partyMode;
bool fullReconfig;
bool sendingCommand;
} COMMAND_DATA;
extern volatile INFECTION_PARAMS infectionParams;
extern CONFIG_PARAMS configParams;
#define MIN_WAIT_TIME 500 // Infection game run every these many seconds + rand number
#define DEFAULT_USER "801SHEEP"
#define DEFAULT_VECTOR "_Helga_"
#define MASTER_BADGE false
#endif /* APP_H_ */