Class TowerBenchmarkSim
java.lang.Object
com.prineside.tdi2.utils.simulation.AbstractSimulation
com.prineside.tdi2.utils.simulation.TowerBenchmarkSim
- All Implemented Interfaces:
 Simulation
Must run a game with a full endless research tree
    CREATE TABLE IF NOT EXISTS `towers_benchmark` (
        `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
        `benchmarkName` varchar(50) NOT NULL,
        `waves` smallint(5) unsigned NOT NULL,
        `extraTowers` enum('BLAST','FREEZING','FREEZING_BLAST','NONE') NOT NULL,
        `tower` enum('BASIC','SNIPER','CANNON','FREEZING','AIR','SPLASH','BLAST','MULTISHOT','MINIGUN','VENOM','TESLA','MISSILE','FLAMETHROWER','LASER','GAUSS','CRUSHER') NOT NULL,
        `aimStrategy` enum('FIRST','LAST','WEAKEST','STRONGEST','NEAREST','RANDOM') NOT NULL,
        `abilities` enum('NONE','1','2','3','1/2','1/3','2/3','ULT','1/ULT','2/ULT','3/ULT','1/2/ULT','1/3/ULT','2/3/ULT','PWR','1/PWR','2/PWR','3/PWR','1/2/PWR','1/3/PWR','2/3/PWR') NOT NULL,
        `upgradeLevel` tinyint(3) unsigned NOT NULL,
        `xpLevel` tinyint(3) unsigned NOT NULL,
        `towerPrice` smallint(5) unsigned NOT NULL,
        `maxTowerDPS` int(10) unsigned NOT NULL DEFAULT '0',
        `avgTowerDPS` int(10) unsigned NOT NULL DEFAULT '0',
        `mdps` int(10) unsigned NOT NULL DEFAULT '0',
        `maxTowerKills` smallint(5) unsigned NOT NULL,
        `totalKills` smallint(5) unsigned NOT NULL,
        `ups` int(10) unsigned NOT NULL,
        `totalDamage` double unsigned NOT NULL DEFAULT '0',
        `dpsPerCoin` float unsigned NOT NULL DEFAULT '0',
        `killsPerCoin` float unsigned NOT NULL DEFAULT '0',
        PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final classNested classes/interfaces inherited from interface com.prineside.tdi2.utils.simulation.Simulation
Simulation.LogListener - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longfinal Stringfinal intfinal SimConfigfinal intfinal TowerType[]final int[]final int[]Fields inherited from interface com.prineside.tdi2.utils.simulation.Simulation
LOG_LEVEL_DEBUG, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_WARNING - 
Constructor Summary
ConstructorsConstructorDescriptionTowerBenchmarkSim(SimConfig simConfig, String benchmarkName, int threadCount, int runsPerCombo, TowerBenchmarkSim.ResearchTreeMode researchTreeMode, com.badlogic.gdx.utils.Array<TowerBenchmarkSim.TowerBenchmarkXpConfig> xpConfigs, com.badlogic.gdx.utils.IntArray waveCounts, com.badlogic.gdx.utils.IntArray upgradeLevels, com.badlogic.gdx.utils.Array<TowersBenchmarkScenario.ExtraTowers> extraTowers, com.badlogic.gdx.utils.Array<TowerType> towerTypes)  - 
Method Summary
Modifier and TypeMethodDescriptiongetName()floatbooleanbooleanbooleanstatic voidprepareSimForm(SimulationScreen simScreen) voidsetSimFinishListener(Runnable onFinish) voidstart()voidstop()Methods inherited from class com.prineside.tdi2.utils.simulation.AbstractSimulation
log, log, setSimLogListener 
- 
Field Details
- 
BENCHMARK_STATE_START_TIMESTAMP
public static final long BENCHMARK_STATE_START_TIMESTAMP- See Also:
 
 - 
benchmarkName
 - 
threadCount
public final int threadCount - 
runsPerCombo
public final int runsPerCombo - 
researchTreeMode
 - 
simConfig
 - 
towerTypes
 - 
waveCounts
public final int[] waveCounts - 
upgradeLevels
public final int[] upgradeLevels - 
extraTowerScenarios
 - 
towerXpConfigs
 
 - 
 - 
Constructor Details
- 
TowerBenchmarkSim
public TowerBenchmarkSim(SimConfig simConfig, String benchmarkName, int threadCount, int runsPerCombo, TowerBenchmarkSim.ResearchTreeMode researchTreeMode, com.badlogic.gdx.utils.Array<TowerBenchmarkSim.TowerBenchmarkXpConfig> xpConfigs, com.badlogic.gdx.utils.IntArray waveCounts, com.badlogic.gdx.utils.IntArray upgradeLevels, com.badlogic.gdx.utils.Array<TowersBenchmarkScenario.ExtraTowers> extraTowers, com.badlogic.gdx.utils.Array<TowerType> towerTypes)  
 - 
 - 
Method Details
- 
prepareSimForm
 - 
getName
 - 
setSimFinishListener
 - 
getProgress
public float getProgress() - 
start
public void start() - 
isRunning
public boolean isRunning() - 
isReadyToStart
public boolean isReadyToStart() - 
isSuccessful
public boolean isSuccessful() - 
stop
public void stop() 
 -