Block.h 447 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include <Model3D.h>
  3. #include "Inventory.h"
  4. #include "Chunk.h"
  5. using namespace Framework;
  6. class Block : public Model3D, public Inventory
  7. {
  8. private:
  9. bool visible;
  10. bool transparent;
  11. bool passable;
  12. float hp;
  13. float maxHP;
  14. float hardness;
  15. float speedModifier;
  16. ItemType *zTool;
  17. public:
  18. Block( Vec3<int> position );
  19. ~Block();
  20. friend Chunk;
  21. friend BlockType;
  22. };