forked from Fluorohydride/ygopro
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsingle_mode.h
More file actions
42 lines (33 loc) · 1.27 KB
/
Copy pathsingle_mode.h
File metadata and controls
42 lines (33 loc) · 1.27 KB
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
#ifndef SINGLE_MODE_H
#define SINGLE_MODE_H
#include <cstdint>
#include <vector>
#include "replay.h"
namespace ygo {
class SingleMode {
private:
static intptr_t pduel;
static bool is_closing;
static bool is_continuing;
static void ReloadLocation(int player, int location, int flag, std::vector<unsigned char>& queryBuffer);
public:
static bool StartPlay();
static void StopPlay(bool is_exiting = false);
static void SetResponse(unsigned char* resp, unsigned int len);
static void SinglePlayThread();
static bool SinglePlayAnalyze(unsigned char* msg, unsigned int len);
static void SinglePlayRefresh(int flag = 0xf81fff);
static void SingleRefreshLocation(int player, int location, int flag);
static void SinglePlayRefreshHand(int player, int flag = 0x781fff);
static void SinglePlayRefreshGrave(int player, int flag = 0x181fff);
static void SinglePlayRefreshDeck(int player, int flag = 0x181fff);
static void SinglePlayRefreshExtra(int player, int flag = 0x181fff);
static void SinglePlayRefreshSingle(int player, int location, int sequence, int flag = 0xf81fff);
static void SinglePlayReload();
static uint32_t MessageHandler(intptr_t fduel, uint32_t type);
protected:
static Replay last_replay;
static size_t last_replay_response_size;
};
}
#endif //SINGLE_MODE_H