aboutsummaryrefslogtreecommitdiffstats
path: root/src/ru/olamedia/liveEntity/LiveEntityEvent.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ru/olamedia/liveEntity/LiveEntityEvent.java')
-rw-r--r--src/ru/olamedia/liveEntity/LiveEntityEvent.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/ru/olamedia/liveEntity/LiveEntityEvent.java b/src/ru/olamedia/liveEntity/LiveEntityEvent.java
new file mode 100644
index 0000000..5c0ded5
--- /dev/null
+++ b/src/ru/olamedia/liveEntity/LiveEntityEvent.java
@@ -0,0 +1,31 @@
+package ru.olamedia.liveEntity;
+
+public class LiveEntityEvent {
+ public static int ON_DIE;
+ private Object source;
+ private int type;
+
+ public LiveEntityEvent(Object source) {
+ this.setSource(source);
+ }
+
+ public int getType() {
+ return type;
+ }
+
+ public void setType(int type) {
+ this.type = type;
+ }
+
+ public Object getSource() {
+ return source;
+ }
+
+ public void setSource(Object source) {
+ this.source = source;
+ }
+
+ public void dispatch() {
+ LiveEntityEventDispatcher.dispatch(this);
+ }
+}