RuneHive-Game
Loading...
Searching...
No Matches
InteractionEvent.java
Go to the documentation of this file.
1
package
com.runehive.content.event;
2
3
public
class
InteractionEvent
{
4
5
public
enum
InteractionType
{
6
FIRST_CLICK_OBJECT
,
7
SECOND_CLICK_OBJECT
,
8
THIRD_CLICK_OBJECT
,
9
10
FIRST_CLICK_NPC
,
11
SECOND_CLICK_NPC
,
12
THIRD_CLICK_NPC
,
13
14
FIRST_ITEM_CLICK
,
15
SECOND_ITEM_CLICK
,
16
THIRD_ITEM_CLICK
,
17
FOURTH_ITEM_CLICK
,
18
19
ITEM_ON_ITEM
,
20
ITEM_ON_OBJECT
,
21
22
PICKUP_ITEM
,
23
24
CLICK_BUTTON
,
25
26
ITEM_CONTAINER_INTERACTION_EVENT
,
27
28
ON_STEP
,
29
ON_DEATH
,
30
ON_KILL
,
31
32
LOG_IN
,
33
LOG_OUT
34
35
36
}
37
38
private
final
InteractionType
type
;
39
private
boolean
handled
;
40
41
protected
InteractionEvent
(
InteractionType
type
) {
42
this.type =
type
;
43
}
44
45
public
InteractionType
getType
() {
46
return
type
;
47
}
48
49
public
boolean
isHandled
() {
50
return
handled
;
51
}
52
53
public
void
setHandled
(
boolean
handled
) {
54
this.handled =
handled
;
55
}
56
57
}
com.runehive.content.event.InteractionEvent.setHandled
void setHandled(boolean handled)
Definition
InteractionEvent.java:53
com.runehive.content.event.InteractionEvent.InteractionEvent
InteractionEvent(InteractionType type)
Definition
InteractionEvent.java:41
com.runehive.content.event.InteractionEvent.handled
boolean handled
Definition
InteractionEvent.java:39
com.runehive.content.event.InteractionEvent.type
final InteractionType type
Definition
InteractionEvent.java:38
com.runehive.content.event.InteractionEvent.getType
InteractionType getType()
Definition
InteractionEvent.java:45
com.runehive.content.event.InteractionEvent.isHandled
boolean isHandled()
Definition
InteractionEvent.java:49
com.runehive.content.event.InteractionEvent.InteractionType
Definition
InteractionEvent.java:5
com.runehive.content.event.InteractionEvent.InteractionType.ON_KILL
ON_KILL
Definition
InteractionEvent.java:30
com.runehive.content.event.InteractionEvent.InteractionType.ON_STEP
ON_STEP
Definition
InteractionEvent.java:28
com.runehive.content.event.InteractionEvent.InteractionType.FIRST_ITEM_CLICK
FIRST_ITEM_CLICK
Definition
InteractionEvent.java:14
com.runehive.content.event.InteractionEvent.InteractionType.THIRD_CLICK_NPC
THIRD_CLICK_NPC
Definition
InteractionEvent.java:12
com.runehive.content.event.InteractionEvent.InteractionType.ITEM_CONTAINER_INTERACTION_EVENT
ITEM_CONTAINER_INTERACTION_EVENT
Definition
InteractionEvent.java:26
com.runehive.content.event.InteractionEvent.InteractionType.SECOND_ITEM_CLICK
SECOND_ITEM_CLICK
Definition
InteractionEvent.java:15
com.runehive.content.event.InteractionEvent.InteractionType.THIRD_CLICK_OBJECT
THIRD_CLICK_OBJECT
Definition
InteractionEvent.java:8
com.runehive.content.event.InteractionEvent.InteractionType.CLICK_BUTTON
CLICK_BUTTON
Definition
InteractionEvent.java:24
com.runehive.content.event.InteractionEvent.InteractionType.FOURTH_ITEM_CLICK
FOURTH_ITEM_CLICK
Definition
InteractionEvent.java:17
com.runehive.content.event.InteractionEvent.InteractionType.PICKUP_ITEM
PICKUP_ITEM
Definition
InteractionEvent.java:22
com.runehive.content.event.InteractionEvent.InteractionType.FIRST_CLICK_NPC
FIRST_CLICK_NPC
Definition
InteractionEvent.java:10
com.runehive.content.event.InteractionEvent.InteractionType.THIRD_ITEM_CLICK
THIRD_ITEM_CLICK
Definition
InteractionEvent.java:16
com.runehive.content.event.InteractionEvent.InteractionType.FIRST_CLICK_OBJECT
FIRST_CLICK_OBJECT
Definition
InteractionEvent.java:6
com.runehive.content.event.InteractionEvent.InteractionType.LOG_IN
LOG_IN
Definition
InteractionEvent.java:32
com.runehive.content.event.InteractionEvent.InteractionType.ITEM_ON_OBJECT
ITEM_ON_OBJECT
Definition
InteractionEvent.java:20
com.runehive.content.event.InteractionEvent.InteractionType.ON_DEATH
ON_DEATH
Definition
InteractionEvent.java:29
com.runehive.content.event.InteractionEvent.InteractionType.SECOND_CLICK_NPC
SECOND_CLICK_NPC
Definition
InteractionEvent.java:11
com.runehive.content.event.InteractionEvent.InteractionType.LOG_OUT
LOG_OUT
Definition
InteractionEvent.java:33
com.runehive.content.event.InteractionEvent.InteractionType.ITEM_ON_ITEM
ITEM_ON_ITEM
Definition
InteractionEvent.java:19
com.runehive.content.event.InteractionEvent.InteractionType.SECOND_CLICK_OBJECT
SECOND_CLICK_OBJECT
Definition
InteractionEvent.java:7