Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Simulation Class Reference

Aria Simulation interface. More...

#include <Simulation.h>

List of all members.

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 ()


Detailed Description

Aria Simulation interface.


Constructor & Destructor Documentation

Simulation::Simulation (    ) 
 

Constructor

Simulation::~Simulation (    ) 
 

Destructor


Member Function Documentation

void Simulation::AddDrumHit (  uint8    pad,
long    timestamp
) 
 

Adds a new drum hit event to the queue.

Parameters:
pad  ID of the drum pad that was hit
timestamp  Game time that the event occured
Returns:
void

void Simulation::AddMusicBeat (  uint8    beat,
long    timestamp
) 
 

Adds a new music beat event to the queue.

Parameters:
beat  The beat that occured
timestamp  Game time that the event occured
Returns:
void

void Simulation::Analyze (    ) 
 

Analyzes the participants' performance and recomputes their ratings.

Returns:
void

void Simulation::Attract (    ) 
 

Attract mode

Returns:
void

void Simulation::CalculateAverageBeatTime (    ) 
 

Calculate the average beat time value.

Returns:
void

char * Simulation::GetHeuristic (    ) 
 

Get the name of the current heuristic.

Returns:
char * The name of the current heuristic.

float Simulation::GetRating (  unsigned int    participant )  [inline]
 

Get the current rating of the requested participant.

Parameters:
participant  The ID of the participant (zero-based).
Returns:
float The participant's rating (0.0 to 1.0).

void Simulation::Init (    ) 
 

Initializes simulation generates a test boid for the moment

void Simulation::SetBeatDelta (  long    beatDelta,
long    timestamp
) 
 

Set the beat delta (time between beats).

Parameters:
beatDelta  The new beat delta.
timestamp  The timestamp the beat delta changed.
Returns:
void

bool Simulation::SetHeuristic (  HeuristicType    type ) 
 

Set the current heuristic.

Parameters:
type  The new type of heuristic
Returns:
bool True on success, false on failure

void Simulation::Update (    ) 
 

Performs periodic processing and analysis of queued events.

Returns:
void

void Simulation::UpdateWoodpeckers (    ) 
 

Update the woodpecker beat times.


The documentation for this class was generated from the following files:
Generated on Mon Mar 4 08:42:27 2002 for Aria by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002