QTfrontend/util/SDLInteraction.h
changeset 12268 2eedf9e0cd6d
parent 11362 ed5a6478e710
equal deleted inserted replaced
12267:dad24eb53873 12268:2eedf9e0cd6d
    39 #include "SDL_mixer.h"
    39 #include "SDL_mixer.h"
    40 
    40 
    41 /**
    41 /**
    42  * @brief Class for interacting with SDL (used for music and keys)
    42  * @brief Class for interacting with SDL (used for music and keys)
    43  *
    43  *
    44  * @see <a href="http://en.wikipedia.org/wiki/Singleton_pattern">singleton pattern</a>
    44  * @see <a href="https://en.wikipedia.org/wiki/Singleton_pattern">singleton pattern</a>
    45  */
    45  */
    46 class SDLInteraction
    46 class SDLInteraction
    47 {
    47 {
    48 
    48 
    49     private:
    49     private:
    51          * @brief Class constructor of the <i>singleton</i>.
    51          * @brief Class constructor of the <i>singleton</i>.
    52          *
    52          *
    53          * Not to be used from outside the class,
    53          * Not to be used from outside the class,
    54          * use the static {@link DataManager::instance()} instead.
    54          * use the static {@link DataManager::instance()} instead.
    55          *
    55          *
    56          * @see <a href="http://en.wikipedia.org/wiki/Singleton_pattern">singleton pattern</a>
    56          * @see <a href="https://en.wikipedia.org/wiki/Singleton_pattern">singleton pattern</a>
    57          */
    57          */
    58         SDLInteraction();
    58         SDLInteraction();
    59 
    59 
    60         /// Initializes SDL for sound output if needed.
    60         /// Initializes SDL for sound output if needed.
    61         void SDLAudioInit();
    61         void SDLAudioInit();
    71 
    71 
    72     public:
    72     public:
    73         /**
    73         /**
    74          * @brief Returns reference to the <i>singleton</i> instance of this class.
    74          * @brief Returns reference to the <i>singleton</i> instance of this class.
    75          *
    75          *
    76          * @see <a href="http://en.wikipedia.org/wiki/Singleton_pattern">singleton pattern</a>
    76          * @see <a href="https://en.wikipedia.org/wiki/Singleton_pattern">singleton pattern</a>
    77          *
    77          *
    78          * @return reference to the instance.
    78          * @return reference to the instance.
    79          */
    79          */
    80         static SDLInteraction & instance();
    80         static SDLInteraction & instance();
    81 
    81