RuneHive-Game
Loading...
Searching...
No Matches
ObjectInteractionEvent.java
Go to the documentation of this file.
1
package
com.runehive.content.event.impl;
2
3
import
com.runehive.content.event.InteractionEvent;
4
import
com.runehive.game.world.object.GameObject;
5
6
public
class
ObjectInteractionEvent
extends
InteractionEvent
{
7
8
private
final
GameObject
object
;
9
private
final
int
opcode
;
10
11
public
ObjectInteractionEvent
(
InteractionType
type
,
GameObject
object
,
int
opcode
) {
12
super(
type
);
13
this.object =
object
;
14
this.opcode =
opcode
;
15
}
16
17
public
GameObject
getObject
() {
18
return
object
;
19
}
20
21
public
int
getOpcode
() {
22
return
opcode
;
23
}
24
25
}
com.runehive.content.event.InteractionEvent.InteractionEvent
InteractionEvent(InteractionType type)
Definition
InteractionEvent.java:41
com.runehive.content.event.InteractionEvent.type
final InteractionType type
Definition
InteractionEvent.java:38
com.runehive.content.event.impl.ObjectInteractionEvent.ObjectInteractionEvent
ObjectInteractionEvent(InteractionType type, GameObject object, int opcode)
Definition
ObjectInteractionEvent.java:11
com.runehive.content.event.impl.ObjectInteractionEvent.getObject
GameObject getObject()
Definition
ObjectInteractionEvent.java:17
com.runehive.content.event.impl.ObjectInteractionEvent.object
final GameObject object
Definition
ObjectInteractionEvent.java:8
com.runehive.content.event.impl.ObjectInteractionEvent.getOpcode
int getOpcode()
Definition
ObjectInteractionEvent.java:21
com.runehive.content.event.impl.ObjectInteractionEvent.opcode
final int opcode
Definition
ObjectInteractionEvent.java:9
com.runehive.content.event.InteractionEvent.InteractionType
Definition
InteractionEvent.java:5
com.runehive.game.world.object.GameObject
Represents a game object.
Definition
GameObject.java:13