public class MushroomWorld extends TteoacWorld
Modifier and Type | Field and Description |
---|---|
protected Database |
db
If we are databasing, the database
|
protected java.text.DecimalFormat |
df |
protected java.text.DecimalFormat |
df3 |
boolean |
drawSimpleShroom
Draw the mushroom cloud as 2 cylinders, instead of 1000s.
|
int |
endFrame
When creating only a subset of frames, end here
|
protected double |
explodeActualDuration |
protected double |
explodeInitialTime |
protected double |
explodePauseDuration |
protected ExplodePiece[] |
explodePieces |
protected double |
explodePostPauseDuration |
protected ExplodeTopPiece[] |
explodeTopPieces |
protected double |
explosionDelay |
protected double |
explosionHitsKidDelay |
protected double |
explosionPauseDelay |
protected double |
explosionResumeDelay |
double |
floorHardness
How much bounce is there to the floor.
|
protected double |
growShowDuration
How long the shroom grows for
|
protected org.apache.commons.logging.Log |
log |
protected int |
maxExplodePieces |
protected int |
maxMushPieces |
protected int |
maxTopPieces |
protected java.lang.String |
outPath
The directory that we are writing our file(s) too
|
protected MushPiece[] |
pieces |
protected Point[] |
plateCenters |
protected double |
plateCrashFlyDelay |
protected double |
plateCrashFlyDuration |
protected int |
platePieceCount |
protected PlatePiece[] |
platePieces |
protected double |
showDuration
number of secs that the show lasts
|
protected double |
shrinkDelay |
protected double |
shrinkTime |
protected double |
shroomTopDelay
Delay before starting the mushroom top
|
protected double |
standingPieceSpeed |
int |
startFrame
When creating only a subset of frames, start here
|
protected MushTopPiece[] |
topPieces |
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 |
---|
MushroomWorld() |
Modifier and Type | Method and Description |
---|---|
protected void |
closeSet(java.io.FileWriter out)
finish writing this set
|
protected int |
getPieceCount(MushPiece.Type type) |
protected int |
getPlatePieceCount() |
protected int |
getTopPieceCount() |
void |
initialize() |
double |
loadDB(double fps,
int scene,
int frame) |
protected java.io.FileWriter |
openSet(double now,
int num) |
void |
setDatabase(Database rdb)
set the database object
|
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,
int scene,
int f)
Output one frame's MushroomCloud
|
protected boolean |
writePositions(Database db,
double fps,
int f)
Write the MushPieces to the database
|
void |
writePositions(java.io.Writer out,
double now,
int f)
Output one frame's worth of declarations for the MushroomCloud
|
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 showDuration
protected double growShowDuration
protected double shroomTopDelay
protected double plateCrashFlyDelay
protected double plateCrashFlyDuration
protected double shrinkDelay
protected double explosionDelay
protected double explosionPauseDelay
protected double explosionResumeDelay
protected double explosionHitsKidDelay
protected double shrinkTime
protected double explodeInitialTime
protected double explodePauseDuration
protected double explodeActualDuration
protected double explodePostPauseDuration
public double floorHardness
protected double standingPieceSpeed
public boolean drawSimpleShroom
protected int maxMushPieces
protected int maxTopPieces
protected int maxExplodePieces
protected MushPiece[] pieces
protected MushTopPiece[] topPieces
protected ExplodePiece[] explodePieces
protected ExplodeTopPiece[] explodeTopPieces
protected final int platePieceCount
protected PlatePiece[] platePieces
protected Point[] plateCenters
protected java.lang.String outPath
public int startFrame
public int endFrame
protected Database db
protected final java.text.DecimalFormat df
protected final java.text.DecimalFormat df3
public void setDirectory(java.lang.String s)
setDirectory
in class TteoacWorld
s
- The new directorypublic void setDatabase(Database rdb)
public void initialize()
public double loadDB(double fps, int scene, int frame)
protected boolean writePositions(Database db, double fps, int f)
db
- The databasefps
- The fps we are runningf
- The frame numberprotected 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, double now, int f) 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.protected int getPieceCount(MushPiece.Type type)
protected int getTopPieceCount()
protected int getPlatePieceCount()
public void write(javax.servlet.http.HttpServletResponse response, double fps, 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.