0
|
1 #pragma once
|
|
2 #include "OSAPI.h"
|
|
3
|
|
4 #include "VectorTypes.h"
|
|
5
|
|
6
|
|
7
|
|
8 /* 107 */
|
|
9 #pragma pack(push, 1)
|
1103
|
10 class ThreadWard
|
0
|
11 {
|
1103
|
12 public:
|
0
|
13 //----- (00438B0B) --------------------------------------------------------
|
|
14 inline ThreadWard()
|
|
15 {
|
|
16 InitializeCriticalSection(&csAsyncMouse);
|
|
17 InitializeCriticalSection(&cs2);
|
|
18 InitializeCriticalSection(&cs3);
|
|
19 InitializeCriticalSection(&csAsyncKeyboard);
|
|
20 }
|
|
21
|
|
22 //----- (00438B54) --------------------------------------------------------
|
|
23 virtual ~ThreadWard()
|
|
24 {
|
|
25 ThreadWard *v1; // esi@1
|
|
26
|
|
27 v1 = this;
|
|
28 //this->vdestructor_ptr = &ThreadWard_destructors;
|
|
29 DeleteCriticalSection(&this->csAsyncKeyboard);
|
|
30 DeleteCriticalSection(&v1->cs3);
|
|
31 DeleteCriticalSection(&v1->cs2);
|
|
32 DeleteCriticalSection(&v1->csAsyncMouse);
|
|
33 }
|
|
34
|
|
35 void (__thiscall ***vdestructor_ptr)(ThreadWard *, bool);
|
|
36 _RTL_CRITICAL_SECTION csAsyncMouse;
|
|
37 _RTL_CRITICAL_SECTION cs2;
|
|
38 _RTL_CRITICAL_SECTION cs3;
|
|
39 _RTL_CRITICAL_SECTION csAsyncKeyboard;
|
|
40 };
|
|
41 #pragma pack(pop)
|
|
42
|
|
43 /* 106 */
|
|
44 #pragma pack(push, 1)
|
1103
|
45 class Mouse
|
0
|
46 {
|
1103
|
47 public:
|
0
|
48 //----- (00467E4E) --------------------------------------------------------
|
1397
|
49 inline Mouse(void/*ThreadWard*/ *pWard)
|
0
|
50 {
|
|
51 uCursorTextureID = 0;
|
|
52 uCursorTextureID_2 = 0;
|
|
53 hWnd = 0;
|
|
54 pCursorBitmap_sysmem = 0;
|
|
55 field_34 = 0;
|
|
56 pCursorBitmap2_sysmem = 0;
|
|
57 pCursorBitmap3_sysmembits_16bit = 0;
|
|
58 ptr_90 = 0;
|
|
59 pWard = pWard;
|
|
60 }
|
|
61
|
|
62 void GetClickPos(unsigned int *pX, unsigned int *pY);
|
|
63 void RemoveHoldingItem();
|
|
64 void SetCursorBitmapFromItemID(unsigned int uItemID);
|
|
65 void SetCurrentCursorBitmap();
|
|
66 void SetCursorBitmap(const char *pName);
|
|
67 LONG _469AE4();
|
|
68 void ClearCursor();
|
|
69 void AllocCursorSystemMem();
|
|
70 void *DoAllocCursorMem();
|
|
71 POINT *GetCursorPos(POINT *p);
|
|
72 void Initialize(HWND hWnd);
|
762
|
73 void SetActive(bool active);
|
0
|
74 void Deactivate();
|
|
75 void DrawCursor();
|
|
76 void _469E1C();
|
|
77 void _469E24();
|
|
78 void DrawCursorToTarget();
|
|
79 void _469EA4();
|
|
80 void Activate(int bActive);
|
|
81 void SetMouseClick(int x, int y);
|
|
82
|
|
83
|
|
84 unsigned int uPointingObjectID;
|
|
85 unsigned int bActive;
|
|
86 int field_8;
|
|
87 int field_C;
|
|
88 unsigned int bInitialized;
|
791
|
89 unsigned int bRedraw;
|
0
|
90 int field_18;
|
|
91 int field_1C;
|
|
92 int field_20;
|
|
93 unsigned int uCursorTextureID;
|
|
94 unsigned int uCursorTextureID_2;
|
|
95 HWND hWnd;
|
|
96 unsigned __int16 *pCursorBitmap_sysmem;
|
|
97 int field_34;
|
|
98 unsigned __int8 *pCursorBitmap2_sysmem;
|
|
99 unsigned __int16 *pCursorBitmap3_sysmembits_16bit;
|
|
100 int field_40;
|
|
101 int field_44;
|
|
102 int field_48;
|
|
103 int field_4C;
|
|
104 int field_50;
|
|
105 int field_54;
|
|
106 int uCursorBitmapPitch;
|
|
107 int field_5C[13];
|
|
108 void *ptr_90;
|
|
109 int field_94;
|
|
110 int field_98;
|
|
111 int field_9C;
|
|
112 int field_A0;
|
|
113 int field_A4;
|
|
114 int field_A8;
|
|
115 int field_AC;
|
|
116 int field_B0;
|
|
117 int field_B4;
|
|
118 int field_B8;
|
|
119 int field_BC;
|
|
120 int field_C0;
|
|
121 Vec2_int_ pCursorBitmapPos;
|
|
122 int uCursorBitmapWidth;
|
|
123 int uCursorBitmapHeight;
|
|
124 int field_D4;
|
|
125 int field_D8;
|
|
126 int field_DC;
|
|
127 int field_E0;
|
|
128 Vec4_int_ pCursorBitmapRect;
|
|
129 char field_F4;
|
|
130 char pCurrentCursorName[11];
|
|
131 int field_100;
|
|
132 int field_104;
|
|
133 unsigned int uMouseClickX;
|
|
134 unsigned int uMouseClickY;
|
1397
|
135 void/*ThreadWard*/ *pWard;
|
0
|
136 };
|
|
137 #pragma pack(pop)
|
|
138
|
|
139
|
|
140
|
|
141
|
|
142
|
1038
|
143 extern Mouse *pMouse; |