Changeset 59 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder
- Timestamp:
- 08/14/2017 03:27:44 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/structures/SimulationScript.java
r49 r59 49 49 Color.GRAY 50 50 }; 51 51 52 52 public File saveFile = null; 53 53 … … 206 206 return output; 207 207 } 208 208 209 /** 209 210 * Arranges all timeslices in this script in chronological order, then by … … 243 244 if (inc != null) 244 245 { 246 inc.updateLength(); 245 247 int currentLength = inc.length + inc.offset; 246 248 if (currentLength > length) … … 253 255 } 254 256 257 public int incidentCount() 258 { 259 int count = 0; 260 for (ScriptIncident inc : incidents) 261 { 262 if (inc != null) 263 { 264 count++; 265 } 266 } 267 return count; 268 } 269 255 270 }
Note: See TracChangeset
for help on using the changeset viewer.
