1package com.fs.starfarer.api.util;
14 private float brightness;
15 private float dir = 1f;
17 private float maxWait;
18 private boolean stopBursts =
false;
19 private boolean stopAll =
false;
22 private float currMax;
23 private float currDur;
24 private int numBursts = 0;
26 private boolean peakFrame =
false;
32 this.maxWait = maxWait;
41 currMax = 0.75f + (
float)
Math.random() * 0.5f;
42 if (currMax > 1) currMax = 1;
43 if (currMax < brightness) currMax = brightness;
46 currDur = 0f + (
float)
Math.random() * 0.5f;
65 this.numBursts = numBursts;
100 if (brightness < 0) brightness = 0;
102 if (brightness >= currMax) {
103 brightness = currMax;
110 if (!stopBursts && !stopAll) {
116 }
else if (!stopAll && brightness <= 0) {
134 for (
int i = 0; i < 1000; i++) {
void advance(float amount)
static final float UP_RATE
static final float DOWN_RATE
static void main(String[] args)
FlickerUtilV2(float maxWait)
void setNumBursts(int numBursts)
static final float END_PROB_PER_BURST
void advance(float amount)