1234567891011121314151617181920212223242526272829303132 |
- #include "Block.h"
- #include <iostream>
- using namespace std;
- BlockId Block::idCounter = 0;
- Block::Block()
- {
- id = idCounter++;
- cout << "Block " << id << endl;
- }
- Block::~Block()
- {
- }
- BlockId Block::getId() const
- {
- return id;
- }
- bool Block::isEmpty() const
- {
- return false;
- }
- bool Block::isBlockingFace(Face& f) const
- {
- return !isEmpty();
- }
|