#include <Simulation.h>
Public Methods | |
Simulation () | |
~Simulation () | |
void | Init () |
void | Update () |
void | UpdateWoodpeckers () |
void | CalculateAverageBeatTime () |
void | SetBeatDelta (long beatDelta, long timestamp) |
void | Analyze () |
char * | GetHeuristic () |
bool | SetHeuristic (HeuristicType type) |
float | GetRating (unsigned int participant) |
void | AddMusicBeat (uint8 beat, long timestamp) |
void | AddDrumHit (uint8 pad, long timestamp) |
void | Attract () |
|
Constructor |
|
Destructor |
|
Adds a new drum hit event to the queue.
|
|
Adds a new music beat event to the queue.
|
|
Analyzes the participants' performance and recomputes their ratings.
|
|
Attract mode
|
|
Calculate the average beat time value.
|
|
Get the name of the current heuristic.
|
|
Get the current rating of the requested participant.
|
|
Initializes simulation generates a test boid for the moment |
|
Set the beat delta (time between beats).
|
|
Set the current heuristic.
|
|
Performs periodic processing and analysis of queued events.
|
|
Update the woodpecker beat times. |