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.
 
 
 

47 regels
870 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 __DH_SAMPLE_H__
  16. #define __DH_SAMPLE_H__
  17. #include <stdint.h>
  18. #include "entity.h"
  19. class SampleData;
  20. class Sample : public Entity
  21. {
  22. public:
  23. Sample(char const *path);
  24. virtual ~Sample();
  25. protected:
  26. /* Inherited from Entity */
  27. virtual char const *GetName();
  28. virtual void TickGame(float deltams);
  29. public:
  30. /* New methods */
  31. void Play();
  32. private:
  33. SampleData *data;
  34. };
  35. #endif // __DH_SAMPLE_H__