blob: e88068a92c2f677c3c0f9fd8874cdee68839787c (
plain) (
tree)
|
|
#include "Block.hpp"
Block::~Block() {}
Block::Block(unsigned short id, unsigned char state) : id(id), state(state) {}
Block::Block() : id(0), state(0) {}
bool operator<(const Block &lhs, const Block &rhs) {
if (lhs.id < rhs.id)
return true;
if (lhs.id == rhs.id) {
if (lhs.state != rhs.state)
return lhs.state < rhs.state;
}
return false;
}
|