X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FBlock.hpp;h=0bb5fd8964b0655dae6addb1dd49903cf89d08ff;hb=22b25d4b9cc24e249bc8007757267cea00ab18d3;hp=74af3e4ab4bbf025e342674e6bc7eff986bf2d7a;hpb=b7d09e1e35ef90282c97509e0020b20db3c7ea9f;p=blank.git diff --git a/src/world/Block.hpp b/src/world/Block.hpp index 74af3e4..0bb5fd8 100644 --- a/src/world/Block.hpp +++ b/src/world/Block.hpp @@ -1,6 +1,7 @@ #ifndef BLANK_WORLD_BLOCK_HPP_ #define BLANK_WORLD_BLOCK_HPP_ +#include #include @@ -98,7 +99,7 @@ struct Block { value |= Mask(f); } void Unset(Face f) { - value |= ~Mask(f); + value &= ~Mask(f); } void Clear() { @@ -130,6 +131,12 @@ private: }; +bool operator ==(const Block &, const Block &); + +std::ostream &operator <<(std::ostream &, const Block &); +std::ostream &operator <<(std::ostream &, const Block::Face &); +std::ostream &operator <<(std::ostream &, const Block::Turn &); + } #endif