Changeset 167 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/structures/events


Ignore:
Timestamp:
12/16/2019 03:55:46 PM (6 years ago)
Author:
sdanthin
Message:

TimeSlice?.java modified remove/getcorrespondingAudioEvent to work with ID system. CHPRadioEvent.java modified to implement setID and ids in the I_AudioEvent.java. ScriptIncident? "adding event" modified to account for ID system. AudioEvent? has ids added. Preliminary tests show working.

Location:
trunk/src/scriptbuilder/structures/events
Files:
3 edited

Legend:

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

    r161 r167  
    4444 
    4545    /** 
    46      * File path for the audio file. 
     46     * File path for the audio file. Perhaps should only be generated on save? 
    4747     */ 
    4848    public String audioPath = ""; 
     
    6464        audioPath = "audio/" + f + ".mp3"; 
    6565    } 
    66      
     66    /** 
     67     * sets audio path relative to the working directory using the id value. 
     68     */ 
    6769    public void setAudioFilePathRelative() 
    6870    { 
  • trunk/src/scriptbuilder/structures/events/CHPRadioEvent.java

    r161 r167  
    7878     
    7979    @Override 
     80    public void setID(String id) 
     81    { 
     82        this.id = id; 
     83    } 
     84     
     85    @Override 
    8086    public void setFileName(String s) 
    8187    { 
  • trunk/src/scriptbuilder/structures/events/I_AudioEvent.java

    r159 r167  
    1111 */ 
    1212public interface I_AudioEvent { 
    13     /** 
    14      * allows for the AudioEvent type to return if it is an audio event. Could be replaced by just using instanceOf I think 
    15      * @return  
    16      */ 
    1713     
    1814     
     
    2117    String getID(); 
    2218     
     19    void setID(String id); 
     20     
    2321    void setFileName(String s); 
    2422     
Note: See TracChangeset for help on using the changeset viewer.