public class FishtankWorld extends TteoacWorld
Modifier and Type | Field and Description |
---|---|
double |
boxRot |
protected java.text.DecimalFormat |
df |
protected java.text.DecimalFormat |
df3 |
int |
endFrame
When creating only a subset of frames, end here
|
protected FlyingRock[] |
flyingRocks |
protected org.apache.commons.logging.Log |
log |
int |
maxRocks |
protected java.lang.String |
outPath
The directory that we are writing our file(s) too
|
double |
rocksPerSecond |
int |
startFrame
When creating only a subset of frames, start here
|
protected double |
tttoShowDuration
number of secs that the show lasts
|
fireplaceShelfLength, rwavF, rwavG, scenecount, SCENEttbo, sceneTtbo480Length, sceneTtbo720Length, sceneTtboLength, SCENEttco, sceneTtco480Length, sceneTtco720Length, sceneTtcoLength, SCENEttdo, sceneTtdo480Length, sceneTtdo720Length, sceneTtdoLength, SCENEtteo, sceneTteo480Length, sceneTteo720Length, sceneTteoLength, SCENEttfo, sceneTtfo480Length, sceneTtfo720Length, sceneTtfoLength, SCENEttho, sceneTtho480Length, sceneTtho720Length, sceneTthoLength, SCENEttko, sceneTtko480Length, sceneTtko720Length, sceneTtkoLength, SCENEttlo, sceneTtlo480Length, sceneTtlo720Length, sceneTtloLength, SCENEttso, sceneTtso480Length, sceneTtso720Length, sceneTtsoLength, SCENEttto, sceneTtto480Length, sceneTtto720Length, sceneTttoLength, SCENEttvo, sceneTtvo480Length, sceneTtvo720Length, sceneTtvoLength, straightTrackLength, trackCircleRadius, tteo480VolcanoEruptCymbal1, tteo480VolcanoEruptCymbal2, tteo480VolcanoEruptCymbal3, tteo480VolcanoEruptMainGun, tteo480VolcanoEruptStart, tteo720VolcanoEruptCymbal1, tteo720VolcanoEruptCymbal2, tteo720VolcanoEruptCymbal3, tteo720VolcanoEruptMainGun, tteo720VolcanoEruptStart, tteoVolcanoEruptCymbal1, tteoVolcanoEruptCymbal2, tteoVolcanoEruptCymbal3, tteoVolcanoEruptMainGun, tteoVolcanoEruptStart, ttfo480FRBubbleEnd, ttfo720FRBubbleEnd, ttfoFRBubbleEnd, ttko480MCExplodeEnd, ttko480MCExplodePause, ttko480MCExplodeResume, ttko480MCExplodeStart, ttko480MCExplosionHitsKid, ttko480MCGrowStart, ttko480MCShrinkStart, ttko480MCTopStart, ttko480PlateCrashEnd, ttko480PlateCrashFlyStart, ttko480ReeferMagnetsHide, ttko480ReeferMagnetsPause, ttko480ReeferMagnetsScared, ttko720MCExplodeEnd, ttko720MCExplodePause, ttko720MCExplodeResume, ttko720MCExplodeStart, ttko720MCExplosionHitsKid, ttko720MCGrowStart, ttko720MCShrinkStart, ttko720MCTopStart, ttko720PlateCrashEnd, ttko720PlateCrashFlyStart, ttko720ReeferMagnetsHide, ttko720ReeferMagnetsPause, ttko720ReeferMagnetsScared, ttkoMCExplodeEnd, ttkoMCExplodePause, ttkoMCExplodeResume, ttkoMCExplodeStart, ttkoMCExplosionHitsKid, ttkoMCGrowStart, ttkoMCShrinkStart, ttkoMCTopStart, ttkoPlateCrashEnd, ttkoPlateCrashFlyStart, ttkoReeferMagnetsHide, ttkoReeferMagnetsPause, ttkoReeferMagnetsScared, ttlo480Camera2Start, ttlo480Camera3Start, ttlo480LiftoffStart, ttlo480LocoMoveStart, ttlo480RollProgramEnd, ttlo480RollProgramStart, ttlo720Camera2Start, ttlo720Camera3Start, ttlo720LiftoffStart, ttlo720LocoMoveStart, ttlo720RollProgramEnd, ttlo720RollProgramStart, ttloCamera2Start, ttloCamera3Start, ttloLiftoffStart, ttloLocoMoveStart, ttloRollProgramEnd, ttloRollProgramStart, ttloThrustLength, ttso480CabooseLand, ttso480Camera2End, ttso480Camera3End, ttso480MaxQResumeStart, ttso480MecoOff, ttso480MecoSputterE, ttso480MecoSputterS, ttso480MecoStart, ttso480SeOn, ttso480SepaRingStart, ttso480SepaStart, ttso480SeSputter1E, ttso480SeSputter1S, ttso480SeSputter2E, ttso480SeSputter2S, ttso480SeStart, ttso480SlPipeEnd, ttso480SlPipeStart, ttso480TimeFPSDifferential, ttso720CabooseLand, ttso720Camera2End, ttso720Camera3End, ttso720MaxQResumeStart, ttso720MecoOff, ttso720MecoSputterE, ttso720MecoSputterS, ttso720MecoStart, ttso720SeOn, ttso720SepaRingStart, ttso720SepaStart, ttso720SeSputter1E, ttso720SeSputter1S, ttso720SeSputter2E, ttso720SeSputter2S, ttso720SeStart, ttso720SlPipeEnd, ttso720SlPipeStart, ttso720TimeFPSDifferential, ttsoCabooseLand, ttsoCamera2End, ttsoCamera3End, ttsoMaxQResumeStart, ttsoMecoOff, ttsoMecoSputterE, ttsoMecoSputterS, ttsoMecoStart, ttsoSeOn, ttsoSepaRingStart, ttsoSepaStart, ttsoSeSputter1E, ttsoSeSputter1S, ttsoSeSputter2E, ttsoSeSputter2S, ttsoSeStart, ttsoSlPipeEnd, ttsoSlPipeStart, ttsoTimeFPSDifferential, ttto480FRLastRock, ttto480FRShowEnd, ttto480FRShowStart, ttto720FRLastRock, ttto720FRShowEnd, ttto720FRShowStart, tttoFRLastRock, tttoFRShowEnd, tttoFRShowStart
Constructor and Description |
---|
FishtankWorld() |
Modifier and Type | Method and Description |
---|---|
protected void |
closeSet(java.io.FileWriter out)
finish writing this set
|
void |
initialize() |
protected java.io.FileWriter |
openSet(double now,
int num) |
void |
setDirectory(java.lang.String s)
Set the directory where we will write our output files
|
void |
write(javax.servlet.http.HttpServletResponse response,
double fps,
boolean doGlobal,
int scene,
int f)
Read a fishtank file and write it to the servlet
|
void |
writePositions(java.io.Writer out)
Output one frame's worth of declarations for the Fishtank (to a file)
|
sceneToString, setupEdition
curve0, curve1, curve2, curve3, curve4, curve5, curve6, curve7, curve8, curve9, curve9a, interpolate3, interpolate3, interpolate5, parsePoint, vToRotY
protected final org.apache.commons.logging.Log log
protected double tttoShowDuration
protected java.lang.String outPath
public int startFrame
public int endFrame
protected final java.text.DecimalFormat df
protected final java.text.DecimalFormat df3
public double rocksPerSecond
public int maxRocks
protected FlyingRock[] flyingRocks
public double boxRot
public void setDirectory(java.lang.String s)
setDirectory
in class TteoacWorld
s
- The new directorypublic void initialize()
protected java.io.FileWriter openSet(double now, int num)
protected void closeSet(java.io.FileWriter out) throws java.io.IOException
java.io.IOException
public void writePositions(java.io.Writer out) throws java.io.IOException
out
- The Writer to write our output to. (either file or web)now
- The time index for this iteration of writing.f
- The frame number for this iteration of writing. NOTE: now is for debug onlyjava.io.IOException
- Failed to write to the open file.public void write(javax.servlet.http.HttpServletResponse response, double fps, boolean doGlobal, int scene, int f) throws java.io.IOException
response
- Where to write our output to.fps
- The FPS we are runningscene
- The scene number we are runningf
- The frame number for this iteration of writing.java.io.IOException
- Failed to write to the open file.