Changeset 161 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/structures/events/CHPRadioEvent.java


Ignore:
Timestamp:
12/04/2019 02:43:12 PM (6 years ago)
Author:
sdanthin
Message:

AudioEvent?.java CHPRadioEvent.java added corresponding functions to match interface and began implementing an ID system.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/scriptbuilder/structures/events/CHPRadioEvent.java

    r155 r161  
    1919 * @author Bryan McGuffin 
    2020 */ 
    21 public class CHPRadioEvent extends ScriptEvent implements I_XML_Writable 
     21public class CHPRadioEvent extends ScriptEvent implements I_XML_Writable, I_AudioEvent 
    2222{ 
    2323 
     
    4444     */ 
    4545    public String radioFile = ""; 
    46  
     46     
     47    /** 
     48     * ID 
     49     */ 
     50    public String id = ""; 
     51     
     52     
    4753    /** 
    4854     * Returns the contents of the CHPRadioEvent to make recording easier. 
     
    5763        } 
    5864        return fileContents; 
     65    } 
     66     
     67    @Override 
     68    public String getFileName() 
     69    { 
     70        return radioFile; 
     71    } 
     72     
     73    @Override 
     74    public String getID() 
     75    { 
     76        return id; 
     77    } 
     78     
     79    @Override 
     80    public void setFileName(String s) 
     81    { 
     82        radioFile = s; 
    5983    } 
    6084     
Note: See TracChangeset for help on using the changeset viewer.