Revision 104,
444 bytes
checked in by wojtekp, 13 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Line | |
---|
1 | package test.rewolucja.energy; |
---|
2 | |
---|
3 | import test.rewolucja.resources.test.Event; |
---|
4 | |
---|
5 | |
---|
6 | public class EnergyEvent implements Event{ |
---|
7 | |
---|
8 | protected EnergyEventType type; |
---|
9 | protected Object data; |
---|
10 | |
---|
11 | public EnergyEvent(EnergyEventType eventType, Object data){ |
---|
12 | this.type = eventType; |
---|
13 | this.data = data; |
---|
14 | } |
---|
15 | |
---|
16 | public int getTag() { |
---|
17 | return type.getTag(); |
---|
18 | } |
---|
19 | |
---|
20 | public Object getData() { |
---|
21 | return data; |
---|
22 | } |
---|
23 | |
---|
24 | public EnergyEventType getType() { |
---|
25 | return type; |
---|
26 | } |
---|
27 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.