| Revision 7,
683 bytes
checked in by bmcguffin, 9 years ago
(diff) |
|
Renamed Interfaces in structures.events package from "*Interface" to "I_*"
|
| Line | |
|---|
| 1 | package scriptbuilder.structures.events; |
|---|
| 2 | |
|---|
| 3 | import scriptbuilder.structures.ScriptEvent; |
|---|
| 4 | import scriptbuilder.structures.ScriptEvent.ScriptEventType; |
|---|
| 5 | |
|---|
| 6 | /** |
|---|
| 7 | * Generic interface for ScriptEvent objects. Script Events have an event type, |
|---|
| 8 | * a length, and several data values unique to the event. |
|---|
| 9 | * |
|---|
| 10 | * @author Bryan McGuffin |
|---|
| 11 | */ |
|---|
| 12 | public interface I_ScriptEvent extends Comparable |
|---|
| 13 | { |
|---|
| 14 | |
|---|
| 15 | /** |
|---|
| 16 | * Get the time length of this event. |
|---|
| 17 | * |
|---|
| 18 | * @return number of seconds the event takes place; default is 1 |
|---|
| 19 | */ |
|---|
| 20 | int getLength(); |
|---|
| 21 | |
|---|
| 22 | /** |
|---|
| 23 | * Get the event type. |
|---|
| 24 | * |
|---|
| 25 | * @return the enum script event type of this event |
|---|
| 26 | */ |
|---|
| 27 | ScriptEventType getScriptEventType(); |
|---|
| 28 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.