SuperTuxKart
|
Data structure for the queue, which stores a sfx and the command to execute for it. More...
Public Member Functions | |
SFXCommand (SFXCommands command, SFXBase *base) | |
SFXCommand (SFXCommands command, MusicInformation *mi) | |
Constructor for music information commands. | |
SFXCommand (SFXCommands command, MusicInformation *mi, float f) | |
Constructor for music information commands that take a floating point parameter (which is stored in the X value of m_parameter). | |
SFXCommand (SFXCommands command, SFXBase *base, float parameter) | |
SFXCommand (SFXCommands command, SFXBase *base, const Vec3 ¶meter) | |
SFXCommand (SFXCommands command, SFXBase *base, float f, const Vec3 ¶meter) | |
Store a float and vec3 parameter. | |
Public Attributes | |
SFXBase * | m_sfx |
The sound effect for which the command should be executed. | |
SFXBuffer * | m_buffer = NULL |
The sound buffer to play (null = no change) | |
MusicInformation * | m_music_information |
Stores music information for music commands. | |
SFXCommands | m_command |
The command to execute. | |
Vec3 | m_parameter |
Optional parameter for commands that need more input. | |
Data structure for the queue, which stores a sfx and the command to execute for it.
|
inline |
Store a float and vec3 parameter.
The float is stored as W component of the vector. A bit hacky, but this class is used very frequently, so should remain as small as possible).
Vec3 SFXManager::SFXCommand::m_parameter |
Optional parameter for commands that need more input.
Single floating point values are stored in the X component.