class Simulator Class Simulator
| | advance_simulator (void) Update times |
| | get_active_waves (void) Return a pointer to the active_waves list. |
| | get_frame_time (void) Return time variable frame_time. |
| | get_wave_lock (void) Return wave_lock variable. |
| | kill_simulation (void) Delete active waves and Card_DB. Set current times to 0. |
| | operator= (const Simulator &) Overloaded assignment operator. |
| | prep_simulator (void) Kill any simulation currently running |
| | set_sim_go (int) Set variable sim_go to true if its state changes. |
| | simulation_go (void) Return variable sim_go. |
| | Simulator (const Simulator &) Copy constructor. |
| | Simulator () Constructor |
| | wave_lock_init (void) Return wave_lock_initizlied variable. |
| | ~Simulator () Destructor. Free all active waves and wave on the avail. list. |
| | advance_param (dynparam *p) Update the dynamic parameters of a wave |
| | advance_wave (wave *p) Update a wave's parameters |
| | calc_value (double t, float src, float dat, float type) Calculate the new value of a dynamic parameter |
| | free_wave (wave *p) Place a wave on the list of available waves |
| | init_new_param (dynparam *p, float *data, double start) Initialize the dynamic parameter values for a new wave |
| | init_new_wave (wave *p, float *data, int datalen) Set the initial values for a new wave |
| | new_wave (void) Get a new wave from the free waves list |
Class Simulator. Class Simulator takes care of maintaining the active wave list and keeping track of start and stop time. Simulation essentially starts and begins in the Simulator. The class also contains a Card_DB. This card database loads in the score file that is currently playing and keeps track of all card data before it is placed into the wave structures dealt with by the Simulator.
~Simulator()
Simulator(const Simulator &)
const Simulator& operator=(const Simulator &)
void prep_simulator(void)
void advance_simulator(void)
int wave_lock_init(void)
CAVELOCK get_wave_lock(void)
int simulation_go(void)
void set_sim_go(int)
double get_frame_time(void)
wave* get_active_waves(void)
void kill_simulation(void)
wave* new_wave(void)
void free_wave(wave *p)
void advance_wave(wave *p)
void advance_param(dynparam *p)
double calc_value(double t, float src, float dat, float type)
src - Current value.
dat - Current value incremented.
type - Type of function used to calculate.
void init_new_wave(wave *p, float *data, int datalen)
data - Pointer to the data for the wave.
datalen - Number of data entries.
float* init_new_param(dynparam *p, float *data, double start)
data - Pointer to the data for the parameters.
start - Current time.
generated by doc++