Gegenstand.h 548 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. #include "GameObject.h"
  3. enum GegenstandTyp
  4. {
  5. PFEIL,
  6. LEBEN,
  7. SCHILD,
  8. SCHUH,
  9. GEIST,
  10. KUGEL,
  11. ROLLE,
  12. STURM,
  13. DRACHENAUGE,
  14. FEUERBALL,
  15. ENTERHAKEN,
  16. MINE,
  17. RWEISHEIT,
  18. RSTRENGTH,
  19. RBOSHEIT,
  20. RLEBEN,
  21. RTEMPO,
  22. ITEMANZAHL,
  23. NICHTS
  24. };
  25. class Gegenstand : public GameObject
  26. {
  27. private:
  28. GegenstandTyp typ;
  29. bool onMap;
  30. public:
  31. Gegenstand( GegenstandTyp typ, bool onMap = 0, int x = 0, int y = 0, int w = 50, int h = 50 );
  32. ~Gegenstand();
  33. bool isOnMap() const;
  34. };