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

source: tmcsimulator-scriptbuilder/trunk/src/scriptbuilder/structures/events/CCTVEvent.java @ 153

Revision 153, 1.1 KB checked in by jdalbey, 6 years ago (diff)

CCTVEvent.java: Fix defect #202.

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 a CCTV event(Just a stub; CCTV events aren't currently
15 * used). A CCTV event has, for now, a string message.
16 *
17 * @author Bryan McGuffin
18 */
19public class CCTVEvent extends ScriptEvent implements I_XML_Writable
20{
21
22    /**
23     * Constructor.
24     */
25    public CCTVEvent()
26    {
27        super(ScriptEventType.CCTV_EVENT);
28    }
29
30    /**
31     * The message represented by this event.
32     */
33    public String message = "";
34
35    @Override
36    public String toXML()
37    {
38        // Fix defect #202
39        //String output = XMLWriter.simpleTag(message, ELEMENT.CCTV_INFO);
40        String output = "<CCTV_INFO ID=\"0\" Dir=\"NORTH\" Toggle=\"false\"/>\n";
41        return output;
42    }
43}
Note: See TracBrowser for help on using the repository browser.