szdytom a3d235b10b
add GameBoard
Signed-off-by: szdytom <szdytom@qq.com>
2024-02-04 21:01:06 +08:00

49 lines
769 B
C++

#ifndef OGPC_COMMCODE_H_
#define OGPC_COMMCODE_H_
#include <cstdint>
enum class Direction : std::uint8_t {
N = 0x00,
S = 0x01,
W = 0x02,
E = 0x03,
};
constexpr int direction_dx[] = {-1, 1, 0, 0};
constexpr int direction_dy[] = {0, 0, -1, 1};
enum class LogLevel : std::uint8_t {
Debug = 0x00,
Info = 0x01,
Warn = 0x02,
Error = 0x03,
Fatal = 0x04,
};
enum class TileType : std::uint8_t {
Misty = 0x00,
Mountain = 0x01,
Stronghold = 0x02,
Blank = 0x03,
Capital = 0x04,
Swamp = 0x05,
};
enum class MistyTileType : std::uint8_t {
MountainLike = 0x01,
BlankLike = 0x02,
Swamp = 0x03,
};
enum class ModifierType : std::uint8_t {
Leapfrog = 0x01,
CityState = 0x02,
MistyVeil = 0x03,
CrystalClear = 0x04,
SilentWar = 0x05,
};
#endif