ItemStack.h 322 B

1234567891011121314151617181920
  1. #pragma once
  2. #include "Item.h"
  3. class ItemStack : public virtual Framework::ReferenceCounter
  4. {
  5. private:
  6. Item *item;
  7. int size;
  8. public:
  9. ItemStack( Item *item, int currentSize );
  10. ItemStack *split( int size );
  11. bool isStackable( Item *zItem );
  12. const Item *zItem() const;
  13. int getSize() const;
  14. };