Block.h 472 B

1234567891011121314151617181920212223
  1. #ifndef BLOCK_H
  2. #define BLOCK_H
  3. #include "common/block/BlockTypes.h"
  4. #include "common/utils/CollisionBox.h"
  5. #include "utils/ArrayList.h"
  6. #include "utils/List.h"
  7. class Block final {
  8. BlockId id;
  9. BlockName registry;
  10. ArrayList<CollisionBox, 1> boxes;
  11. public:
  12. Block(BlockId id, const BlockName& registry);
  13. BlockId getId() const;
  14. const BlockName& getRegistry() const;
  15. void addBoxes(List<CollisionBox>& list, const Vector3& pos) const;
  16. };
  17. #endif