| Revision 6,
728 bytes
checked in by jdalbey, 9 years ago
(diff) |
|
Add original prototype to branch
|
| Line | |
|---|
| 1 | package scriptbuilder.structures.events; |
|---|
| 2 | |
|---|
| 3 | import scriptbuilder.structures.ScriptEvent; |
|---|
| 4 | |
|---|
| 5 | /** |
|---|
| 6 | * |
|---|
| 7 | * @author Greg Eddington <geddingt@calpoly.edu> |
|---|
| 8 | */ |
|---|
| 9 | public class RadioEvent extends ScriptEvent |
|---|
| 10 | { |
|---|
| 11 | public RadioType radioType; |
|---|
| 12 | public String message; |
|---|
| 13 | |
|---|
| 14 | public static enum RadioType |
|---|
| 15 | { |
|---|
| 16 | TMT, Maintenance |
|---|
| 17 | } |
|---|
| 18 | |
|---|
| 19 | public RadioEvent(RadioType radioType, String message) |
|---|
| 20 | { |
|---|
| 21 | super(ScriptEvent.ScriptEventType.CHP_RADIO_EVENT); |
|---|
| 22 | |
|---|
| 23 | this.radioType = radioType; |
|---|
| 24 | this.message = message; |
|---|
| 25 | } |
|---|
| 26 | |
|---|
| 27 | @Override |
|---|
| 28 | public String toString() |
|---|
| 29 | { |
|---|
| 30 | return "Radio Event: { Type=\"" + (radioType == RadioType.TMT ? "TMT" : |
|---|
| 31 | "Maintenance") + "\" Message=\"" + message + "\" }"; |
|---|
| 32 | } |
|---|
| 33 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.