SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
SFXManager::SFXCommand Class Reference

Data structure for the queue, which stores a sfx and the command to execute for it. More...

Inheritance diagram for SFXManager::SFXCommand:
Inheritance graph
[legend]

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 &parameter)
 
 SFXCommand (SFXCommands command, SFXBase *base, float f, const Vec3 &parameter)
 Store a float and vec3 parameter.
 

Public Attributes

SFXBasem_sfx
 The sound effect for which the command should be executed.
 
SFXBufferm_buffer = NULL
 The sound buffer to play (null = no change)
 
MusicInformationm_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.
 

Detailed Description

Data structure for the queue, which stores a sfx and the command to execute for it.

Constructor & Destructor Documentation

◆ SFXCommand()

SFXManager::SFXCommand::SFXCommand ( SFXCommands  command,
SFXBase base,
float  f,
const Vec3 parameter 
)
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).

Member Data Documentation

◆ m_parameter

Vec3 SFXManager::SFXCommand::m_parameter

Optional parameter for commands that need more input.

Single floating point values are stored in the X component.


The documentation for this class was generated from the following file: