26 |
* @author Grigor Iliev |
* @author Grigor Iliev |
27 |
*/ |
*/ |
28 |
public class EffectParameter extends FloatParameter { |
public class EffectParameter extends FloatParameter { |
29 |
|
private final int instanceId; |
30 |
|
private final int index; |
31 |
|
|
32 |
|
public EffectParameter(int instanceId, int index) { |
33 |
|
this.instanceId = instanceId; |
34 |
|
this.index = index; |
35 |
|
} |
36 |
|
|
37 |
|
/** Gets the numerical ID of the effect instance to which this parameter belongs. */ |
38 |
|
public int |
39 |
|
getEffectInstanceId() { return instanceId; } |
40 |
|
|
41 |
|
/** Gets the position of the parameter in the effect instance's parameter list. */ |
42 |
|
public int |
43 |
|
getIndex() { return index; } |
44 |
|
|
45 |
/** |
/** |
46 |
* Parses a line of text. |
* Parses a line of text. |
66 |
|
|
67 |
return false; |
return false; |
68 |
} |
} |
69 |
|
|
70 |
|
@Override |
71 |
|
public String |
72 |
|
toString() { return getDescription() != null ? getDescription() : super.toString(); } |
73 |
} |
} |