Block.h 341 B

123456789101112131415161718192021222324
  1. #ifndef BLOCK_H
  2. #define BLOCK_H
  3. #include "common/utils/Face.h"
  4. typedef unsigned short BlockId;
  5. class Block
  6. {
  7. public:
  8. Block();
  9. virtual ~Block();
  10. BlockId getId() const;
  11. virtual bool isEmpty() const;
  12. virtual bool isBlockingFace(Face& f) const;
  13. private:
  14. static BlockId idCounter;
  15. BlockId id;
  16. };
  17. #endif