summaryrefslogtreecommitdiffstats
path: root/src/Block.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Block.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/Block.cpp b/src/Block.cpp
index e88068a..4c907d6 100644
--- a/src/Block.cpp
+++ b/src/Block.cpp
@@ -2,16 +2,6 @@
Block::~Block() {}
-Block::Block(unsigned short id, unsigned char state) : id(id), state(state) {}
+Block::Block(unsigned short id, unsigned char state, unsigned char light, unsigned char sky) : id(id), state(state), light(light), sky (sky) {}
-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;
-}
+Block::Block() : id(0), state(0), light(0), sky(0) {} \ No newline at end of file