1 #ifndef SAMPLERESOURCE_HPP 2 #define SAMPLERESOURCE_HPP 3 4 #include "cosmic_protector.hpp" 5 6 class SampleResource : public Resource { 7 public: 8 void destroy(void); 9 bool load(void); 10 void* get(void); 11 SampleResource(const char* filename); 12 private: 13 ALLEGRO_SAMPLE *sample_data; 14 std::string filename; 15 }; 16 17 #endif // SAMPLERESOURCE_HPP 18 19