forked from lep/jassdoc
/
unit-based-event-api.j
126 lines (92 loc) · 2.88 KB
/
unit-based-event-api.j
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
// Trigger Unit Based Event API
/**
Returns handle to unit which triggered the most recent event when called from
within a trigger action function...returns null handle when used incorrectly
*/
constant native GetTriggerUnit takes nothing returns unit
native TriggerRegisterUnitStateEvent takes trigger whichTrigger, unit whichUnit, unitstate whichState, limitop opcode, real limitval returns event
/**
@event EVENT_UNIT_STATE_LIMIT
*/
constant native GetEventUnitState takes nothing returns unitstate
native TriggerRegisterUnitEvent takes trigger whichTrigger, unit whichUnit, unitevent whichEvent returns event
/**
@event EVENT_UNIT_DAMAGED
*/
constant native GetEventDamage takes nothing returns real
/**
@event EVENT_UNIT_DAMAGED
*/
constant native GetEventDamageSource takes nothing returns unit
/**
@event EVENT_UNIT_DAMAGED
@patch 1.29
*/
native BlzSetEventDamage takes real damage returns nothing
/**
@event EVENT_UNIT_DAMAGED
@patch 1.31
*/
native BlzGetEventDamageTarget takes nothing returns unit
/**
@event EVENT_UNIT_DAMAGED
@patch 1.31
*/
native BlzGetEventAttackType takes nothing returns attacktype
/**
@event EVENT_UNIT_DAMAGED
@patch 1.31
*/
native BlzGetEventDamageType takes nothing returns damagetype
/**
@event EVENT_UNIT_DAMAGED
@patch 1.31
*/
native BlzGetEventWeaponType takes nothing returns weapontype
/**
@event EVENT_UNIT_DAMAGED
@patch 1.31
*/
native BlzSetEventAttackType takes attacktype attackType returns boolean
/**
@event EVENT_UNIT_DAMAGED
@patch 1.31
*/
native BlzSetEventDamageType takes damagetype damageType returns boolean
/**
@event EVENT_UNIT_DAMAGED
@patch 1.31
*/
native BlzSetEventWeaponType takes weapontype weaponType returns boolean
/**
@event EVENT_UNIT_DETECTED
*/
constant native GetEventDetectingPlayer takes nothing returns player
native TriggerRegisterFilterUnitEvent takes trigger whichTrigger, unit whichUnit, unitevent whichEvent, boolexpr filter returns event
/**
@event EVENT_UNIT_ACQUIRED_TARGET
@event EVENT_UNIT_TARGET_IN_RANGE
*/
constant native GetEventTargetUnit takes nothing returns unit
native TriggerRegisterUnitInRange takes trigger whichTrigger, unit whichUnit, real range, boolexpr filter returns event
/**
@event EVENT_PLAYER_MOUSE_MOVE
@patch 1.29
*/
native BlzGetTriggerPlayerMouseX takes nothing returns real
/**
@event EVENT_PLAYER_MOUSE_MOVE
@patch 1.29
*/
native BlzGetTriggerPlayerMouseY takes nothing returns real
/**
@event EVENT_PLAYER_MOUSE_MOVE
@patch 1.29
*/
native BlzGetTriggerPlayerMousePosition takes nothing returns location
/**
@event EVENT_PLAYER_MOUSE_UP
@event EVENT_PLAYER_MOUSE_DOWN
@patch 1.29
*/
native BlzGetTriggerPlayerMouseButton takes nothing returns mousebuttontype