Changeset 76 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/structures/SimulationScript.java
- Timestamp:
- 08/25/2017 12:22:28 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/structures/SimulationScript.java
r65 r76 50 50 }; 51 51 52 /** 53 * The file to which this script will be saved. 54 */ 52 55 public File saveFile = null; 53 56 57 /** 58 * The name of this script. 59 */ 54 60 public String title = ""; 55 61 … … 160 166 } 161 167 168 /** 169 * Add a new incident to the script. 170 * 171 * @param sci the incident to be added. 172 * @return true if there was enough room to add this incident. 173 */ 162 174 public boolean addIncident(ScriptIncident sci) 163 175 { … … 170 182 } 171 183 184 /** 185 * Write this script, in proper XML format, to the file in question. 186 * 187 * @param f the destination savefile to be written. 188 */ 172 189 public void saveScriptToFile(File f) 173 190 { … … 262 279 } 263 280 281 /** 282 * Counts the number of incidents currently running. 283 * 284 * @return the number of non-null incidents currently in the script. A 285 * number between 0 and INCIDENT_FILL_COUNT, inclusive. 286 */ 264 287 public int incidentCount() 265 288 {
Note: See TracChangeset
for help on using the changeset viewer.
