Gegenstand.h 828 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 GegenstandTypVar : public Variable
  26. {
  27. private:
  28. GegenstandTyp value;
  29. public:
  30. GegenstandTypVar( GegenstandTyp value );
  31. void setValue( GegenstandTyp value );
  32. GegenstandTyp getValue() const;
  33. };
  34. class Gegenstand : public GameObject
  35. {
  36. private:
  37. GegenstandTyp typ;
  38. bool onMap;
  39. int id;
  40. public:
  41. Gegenstand( int id, GegenstandTyp typ, bool onMap = 0, int x = 0, int y = 0, int w = 50, int h = 50 );
  42. int getId() const;
  43. GegenstandTyp getTyp() const;
  44. bool isOnMap() const;
  45. };