package scriptbuilder.structures.events;

import scriptbuilder.structures.ScriptEvent;

/**
 *
 * @author Greg Eddington <geddingt@calpoly.edu>
 */
public class RadioEvent extends ScriptEvent
{
    public RadioType radioType;
    public String message;

    public static enum RadioType
    {
        TMT, Maintenance
    }

    public RadioEvent(RadioType radioType, String message)
    {
        super(ScriptEvent.ScriptEventType.CHP_RADIO_EVENT);

        this.radioType = radioType;
        this.message = message;
    }

    @Override
    public String toString()
    {
        return "Radio Event: { Type=\"" + (radioType == RadioType.TMT ? "TMT" :
            "Maintenance") + "\" Message=\"" + message + "\" }";
    }
}
