123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #include "ItemType.h"
- #include <InMemoryBuffer.h>
- ItemType::ItemType(
- int id, ModelInfo model, Framework::Text name, Framework::Text tooltipUIML)
- : ReferenceCounter(),
- id(id),
- model(model),
- icon(0),
- name(name),
- tooltipUIML(tooltipUIML)
- {}
- ItemType::~ItemType()
- {
- if (this->icon) this->icon->release();
- }
- int ItemType::getId() const
- {
- return id;
- }
- void ItemType::setBild(Framework::Bild* icon)
- {
- if (this->icon) this->icon->release();
- this->icon = icon;
- }
- Framework::Bild* ItemType::zIcon() const
- {
- return icon;
- }
- Framework::Model3DData* ItemType::getItemModel() const
- {
- return model.getModel();
- }
- Framework::Model3DTextur* ItemType::getItemTextur() const
- {
- return model.getTexture();
- }
- const Framework::Text& ItemType::getName() const
- {
- return name;
- }
- const Framework::Text& ItemType::getTooltipUIML() const
- {
- return tooltipUIML;
- }
- float ItemType::getSize() const
- {
- return model.getSize();
- }
|