ItemType.h 759 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include <Bild.h>
  3. #include "ModelInfo.h"
  4. class ItemType : public virtual Framework::ReferenceCounter
  5. {
  6. protected:
  7. const int id;
  8. const ModelInfo model;
  9. Framework::Bild* icon;
  10. Framework::Text name;
  11. Framework::Text tooltipUIML;
  12. public:
  13. ItemType(int id,
  14. ModelInfo model,
  15. Framework::Text name,
  16. Framework::Text tooltipUIML);
  17. ~ItemType();
  18. int getId() const;
  19. void setBild(Framework::Bild* icon);
  20. Framework::Bild* zIcon() const;
  21. Framework::Model3DData* getItemModel() const;
  22. Framework::Model3DTextur* getItemTextur() const;
  23. const Framework::Text& getName() const;
  24. const Framework::Text& getTooltipUIML() const;
  25. float getSize() const;
  26. };