Program Listing for File sound_node.h

Return to documentation for file (simple2dengine/nodes/sound_node.h)

#ifndef _SIMPLE2DENGINE_NODES_SOUND_NODE_H_
#define _SIMPLE2DENGINE_NODES_SOUND_NODE_H_

#include <string>

#include "SFML/Audio/Sound.hpp"

#include "simple2dengine/engine.h"
#include "simple2dengine/nodes/node.h"

namespace simple2dengine
{
    class SoundNode : public Node, public sf::Sound
    {
      public:
        using Node::Node;
        void setSound(const AssetManager& assetManager, const std::string& filename);
    };
} // namespace simple2dengine

#endif // _SIMPLE2DENGINE_NODES_SOUND_NODE_H_