Warning: Can't use blame annotator:
svn blame failed on trunk/src/scriptbuilder/structures/events/AudioEvent.java: ("Can't find a temporary directory: Internal error", 20014)

source: tmcsimulator-scriptbuilder/trunk/src/scriptbuilder/structures/events/AudioEvent.java @ 76

Revision 76, 1.1 KB checked in by bmcguffin, 9 years ago (diff)

Added javadoc for several files.

RevLine 
1/*
2 * To change this license header, choose License Headers in Project Properties.
3 * To change this template file, choose Tools | Templates
4 * and open the template in the editor.
5 */
6package scriptbuilder.structures.events;
7
8import scriptbuilder.structures.ELEMENT;
9import scriptbuilder.structures.I_XML_Writable;
10import scriptbuilder.structures.ScriptEvent;
11import scriptbuilder.structures.XMLWriter;
12
13/**
14 * Data model for an audio event. Audio events have a filepath leading to an
15 * audio file to be played, and a length in seconds of that file.
16 *
17 * @author Bryan McGuffin
18 */
19public class AudioEvent extends ScriptEvent implements I_XML_Writable
20{
21
22    /**
23     * Constructor.
24     */
25    public AudioEvent()
26    {
27        super(ScriptEventType.AUDIO_EVENT);
28    }
29
30    /**
31     * Length of the audio to be played, in seconds.
32     */
33    public Integer audioLength = 0;
34
35    /**
36     * File path for the audio file.
37     */
38    public String audioPath = "";
39
40    @Override
41    public String toXML()
42    {
43        return XMLWriter.emptyTag(ELEMENT.AUDIO.tag + " Length=\"" + audioLength + "\" Path=\"" + audioPath + "\"");
44    }
45}
Note: See TracBrowser for help on using the repository browser.