You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

52 lines
913 B

  1. //
  2. // Lol Engine
  3. //
  4. // Copyright: (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the Do What The Fuck You Want To
  7. // Public License, Version 2, as published by Sam Hocevar. See
  8. // http://sam.zoy.org/projects/COPYING.WTFPL for more details.
  9. //
  10. //
  11. // The Sample class
  12. // ----------------
  13. // A Sample is a unique sound sample.
  14. //
  15. #if !defined __LOL_SAMPLE_H__
  16. #define __LOL_SAMPLE_H__
  17. #include <stdint.h>
  18. #include "entity.h"
  19. namespace lol
  20. {
  21. class SampleData;
  22. class Sample : public Entity
  23. {
  24. public:
  25. Sample(char const *path);
  26. virtual ~Sample();
  27. protected:
  28. /* Inherited from Entity */
  29. virtual char const *GetName();
  30. virtual void TickGame(float deltams);
  31. public:
  32. /* New methods */
  33. void Play();
  34. private:
  35. SampleData *data;
  36. };
  37. } /* namespace lol */
  38. #endif // __LOL_SAMPLE_H__