public class VolcanoWorld extends TteoacWorld
Modifier and Type | Field and Description |
---|---|
protected int |
blackSpewType |
Caboose |
caboose |
protected int |
cymbal1GunSpewCount |
protected int |
cymbal2GunSpewCount |
protected int |
cymbal3GunSpewCount |
int |
debugSpew |
int |
endFrame
The last frame that we should generate spew for.
|
protected int |
fifthGunSpewCount |
protected Fireplace |
fireplace |
double |
floorHardness
How much bounce is there to the floor.
|
protected int |
fourthGunSpewCount |
protected int |
goldSpewType |
double |
initialVel
maximum initial velocity assigned to a new spew.
|
protected int |
jadeSpewType |
Loco |
loco |
protected Point |
LocoVec |
protected org.apache.commons.logging.Log |
log |
protected int |
mainSpewCount |
protected int |
maxRandomSpewTypes |
protected int |
metalBlueSpewType |
protected int |
metalGreenSpewType |
protected int |
metalPinkSpewType |
protected java.lang.String |
outPath
The directory that we are writing our file(s) too
|
protected java.lang.String |
outRootPath
The root directory of the generated file system.
|
protected int |
redSpewType |
protected int |
secondGunSpewCount |
double |
spewMass
How much to decay the y velocity (assume gravity of 1.0).
|
Spew[] |
spews
My array of spews
|
double |
spewsPerSecond
The number of spews to throw out each second
|
int |
startFrame
Which frame number we should start spewing.
|
protected int |
thirdGunSpewCount |
protected double |
thrustBlowRad |
double |
timeIncrement
The time period to increment during each world loop.
|
protected int |
totalSpewCount |
static double |
tteoCabooseDist
How far behind the loco the caboose is
|
protected double |
tteoSpewDuration |
static double |
tteoTrainStartOffset
Subtract a position offset for the train on the track because
Scene 1 frame 1 is over a minute into the movie.
|
static double |
tthoCabooseDist |
protected double |
tthoSpewDuration |
protected double |
tthoStartTime
when we start up the spew again.
|
static double |
tthoTrainStartOffset |
protected double |
ttloDeadTime |
protected double |
ttloSpewDuration |
static double |
ttloTrainStartOffset |
protected double |
tttoStartTime
ttto needs some spew, but it's not central to the scene.
|
Volcano |
volcano |
double |
wallHardness
How much bounce is there to the walls.
|
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 |
---|
VolcanoWorld()
Creates a new instance of World
|
Modifier and Type | Method and Description |
---|---|
protected void |
closeSet(java.io.FileWriter out)
finish writing this set
|
java.lang.String |
determineDirectory(java.lang.String root,
double fps,
int scene) |
protected void |
determineTrainPos(double now,
int scene)
get the positions of the loco and cars of the train.
|
void |
initialize() |
protected java.io.FileWriter |
openSet(double fps,
int scene,
int num) |
void |
printDefinitions(java.io.PrintWriter out,
java.util.List<SpewGlobal> spewGlobals) |
void |
setDirectory(java.lang.String s)
Set the directory where we will write our output files
|
void |
setRootDirectory(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 camera,
int frame,
boolean doGlobal) |
boolean |
writeDefinitions(double fps)
Output the initial declarations for our spew
|
void |
writePositions(java.io.FileWriter out,
double now,
int f)
Output the initial declarations for our spew
|
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
public int debugSpew
protected final double tthoStartTime
protected final double tttoStartTime
protected double tteoSpewDuration
protected double tthoSpewDuration
protected double ttloSpewDuration
protected final double ttloDeadTime
public static final double tteoTrainStartOffset
public static final double tthoTrainStartOffset
public static final double ttloTrainStartOffset
public static final double tteoCabooseDist
public static final double tthoCabooseDist
public int startFrame
public int endFrame
public double spewsPerSecond
public double spewMass
public double floorHardness
public double wallHardness
public double initialVel
public double timeIncrement
public Spew[] spews
public Loco loco
public Caboose caboose
public Volcano volcano
protected double thrustBlowRad
protected Point LocoVec
protected Fireplace fireplace
protected final int maxRandomSpewTypes
protected final int redSpewType
protected final int blackSpewType
protected final int goldSpewType
protected final int jadeSpewType
protected final int metalPinkSpewType
protected final int metalBlueSpewType
protected final int metalGreenSpewType
protected int mainSpewCount
protected int secondGunSpewCount
protected int thirdGunSpewCount
protected int fourthGunSpewCount
protected int fifthGunSpewCount
protected int cymbal1GunSpewCount
protected int cymbal2GunSpewCount
protected int cymbal3GunSpewCount
protected int totalSpewCount
protected java.lang.String outPath
protected java.lang.String outRootPath
public void initialize()
public void setDirectory(java.lang.String s)
setDirectory
in class TteoacWorld
s
- The new directorypublic void setRootDirectory(java.lang.String s)
s
- The new directorypublic boolean writeDefinitions(double fps)
public void printDefinitions(java.io.PrintWriter out, java.util.List<SpewGlobal> spewGlobals)
protected void closeSet(java.io.FileWriter out) throws java.io.IOException
java.io.IOException
protected java.io.FileWriter openSet(double fps, int scene, int num)
public void writePositions(java.io.FileWriter out, double now, int f) throws java.io.IOException
out
- The FileWriter to write our output to.now
- The time index for this iteration of writing.f
- The frame number for this iteration of writing.java.io.IOException
- Failed to write to the open file.protected void determineTrainPos(double now, int scene) throws java.io.IOException
java.io.IOException
public void write(javax.servlet.http.HttpServletResponse response, double fps, int scene, int camera, int frame, boolean doGlobal) throws java.io.IOException
java.io.IOException
public java.lang.String determineDirectory(java.lang.String root, double fps, int scene)