Block.cpp 375 B

1234567891011121314151617181920212223242526272829303132
  1. #include <iostream>
  2. #include "common/block/Block.h"
  3. using namespace std;
  4. BlockId Block::idCounter = 0;
  5. Block::Block()
  6. {
  7. id = idCounter++;
  8. cout << "Block " << id << endl;
  9. }
  10. Block::~Block()
  11. {
  12. }
  13. BlockId Block::getId() const
  14. {
  15. return id;
  16. }
  17. bool Block::isEmpty() const
  18. {
  19. return false;
  20. }
  21. bool Block::isBlockingFace(Face& f) const
  22. {
  23. return !isEmpty();
  24. }