formatting

This commit is contained in:
Seth Alves 2018-01-31 12:24:23 -08:00
parent acc5973813
commit 96b6e85745
2 changed files with 10 additions and 10 deletions

View file

@ -34,15 +34,15 @@ const int Item::LAYER_3D = 1;
const int Item::LAYER_3D_FRONT = 2;
const int Item::LAYER_3D_HUD = 3;
const uint8_t ItemKey::TAG_BITS_ALL{ 0xFF };
const uint8_t ItemKey::TAG_BITS_NONE{ 0x00 };
const uint8_t ItemKey::TAG_BITS_0{ 0x01 };
const uint8_t ItemKey::TAG_BITS_1{ 0x02 };
const uint8_t ItemKey::TAG_BITS_2{ 0x04 };
const uint8_t ItemKey::TAG_BITS_3{ 0x08 };
const uint8_t ItemKey::TAG_BITS_ALL { 0xFF };
const uint8_t ItemKey::TAG_BITS_NONE { 0x00 };
const uint8_t ItemKey::TAG_BITS_0 { 0x01 };
const uint8_t ItemKey::TAG_BITS_1 { 0x02 };
const uint8_t ItemKey::TAG_BITS_2 { 0x04 };
const uint8_t ItemKey::TAG_BITS_3 { 0x08 };
const uint8_t ItemKey::TAG_BITS_4 { 0x10 };
const uint8_t ItemKey::TAG_BITS_5{ 0x20 };
const uint8_t ItemKey::TAG_BITS_6{ 0x40 };
const uint8_t ItemKey::TAG_BITS_5 { 0x20 };
const uint8_t ItemKey::TAG_BITS_6 { 0x40 };
const uint8_t ItemKey::TAG_BITS_7 { 0x80 };
const uint32_t ItemKey::KEY_TAG_BITS_MASK = ((uint32_t) ItemKey::TAG_BITS_ALL) << FIRST_TAG_BIT;

View file

@ -43,7 +43,7 @@ public:
// An Item can be tagged and filtering can rely on the tags to keep or exclude items
// ItemKey are not taged by default
enum Tag : uint8_t {
TAG_0 = 0, // 8 Tags
TAG_0 = 0, // 8 Tags
TAG_1,
TAG_2,
TAG_3,
@ -52,7 +52,7 @@ public:
TAG_6,
TAG_7,
NUM_TAGS,
NUM_TAGS
};
// Tag bits are derived from the Tag enum
const static uint8_t TAG_BITS_ALL;