Gegenstand.h 557 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. #include "GameObject.h"
  3. enum GegenstandTyp
  4. {
  5. KEIN_GEGENSTAND,
  6. PFEIL,
  7. LEBEN,
  8. SCHILD,
  9. SCHUH,
  10. GEIST,
  11. KUGEL,
  12. ROLLE,
  13. STURM,
  14. DRACHENAUGE,
  15. FEUERBALL,
  16. ENTERHAKEN,
  17. MINE,
  18. RWEISHEIT,
  19. RSTRENGTH,
  20. RBOSHEIT,
  21. RLEBEN,
  22. RTEMPO,
  23. ITEMANZAHL
  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. };