blob: 64e5330953dfa4f0faaecb7d9f8acb3222ae09d6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#include "Block.hpp"
Block::~Block() {}
Block::Block(unsigned short idAndState, unsigned char light) : id(idAndState >> 4), state(idAndState & 0x0F),
light(light) {}
Block::Block(unsigned short id, unsigned char state, unsigned char light) : id(id), state(state), light(light) {}
Block::Block() : id(0), state(0), light(0) {}
|