Revision 310e14fb
Added by Leszek Koltunski almost 7 years ago
src/main/java/org/distorted/library/message/EffectListener.java | ||
---|---|---|
21 | 21 |
|
22 | 22 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
23 | 23 |
|
24 |
import org.distorted.library.EffectNames; |
|
25 |
|
|
26 | 24 |
/** |
27 | 25 |
* This interface lets users of the Distorted library get notified when something happens to one of the effects. |
28 | 26 |
* To receive the notifications, we first have to register with a call to {@link org.distorted.library.DistortedEffects#registerForMessages(EffectListener)}. |
... | ... | |
37 | 35 |
* @param eventType Type of event that happened. |
38 | 36 |
* @param effectID ID of the effect the event happened to. This ID must have been previously returned by one |
39 | 37 |
* of the DistortedEffects.{deform,distort,move,...} functions. |
40 |
* @param effectName Name of the effect as defined by EffectNames.
|
|
38 |
* @param effectName Name of the effect as defined by final constants from the 4 classes descendant from Effect.
|
|
41 | 39 |
* @param objectID the ID of the DistortedEffects object, as returned by {@link org.distorted.library.DistortedEffects#getID()}, |
42 | 40 |
* this event happened to. |
43 | 41 |
* @see EffectMessage |
44 |
* @see EffectNames |
|
45 | 42 |
*/ |
46 | 43 |
|
47 |
void effectMessage(final EffectMessage eventType, final long effectID, final EffectNames effectName, final long objectID);
|
|
44 |
void effectMessage(final EffectMessage eventType, final long effectID, final int effectName, final long objectID);
|
|
48 | 45 |
} |
49 | 46 |
|
50 | 47 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Some progress with Effect classes.
Big mess - nothing compiles now; classes moved around.