From 2ee0f834487cfe4b6bd9424ca2715685a8db16e4 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sat, 15 Apr 2017 15:17:53 +0500 Subject: 2017-04-15 --- Block.hpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Block.hpp (limited to 'Block.hpp') diff --git a/Block.hpp b/Block.hpp new file mode 100644 index 0000000..0272e1f --- /dev/null +++ b/Block.hpp @@ -0,0 +1,26 @@ +#pragma once + +#include "PositionI.hpp" + +class Block { +public: + Block(int id = 0, unsigned char state = 0, unsigned char light = 15, PositionI position = PositionI()); + + Block(unsigned short idAndState, unsigned char light); + + ~Block(); + + int GetId(); + + int GetState(); + + int GetLight(); + +private: + int m_id; + unsigned char m_light; + PositionI m_position; + unsigned char m_state; + //NbtTree* nbt; +}; + -- cgit v1.2.3