aboutsummaryrefslogtreecommitdiffstats
path: root/src/ru/olamedia/liveEntity/LiveEntityEvent.java
blob: 5c0ded525497d584a480be92c361e79b1d153432 (plain)
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
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);
	}
}