22#ifndef MACS2_CONSTANTS_H
23#define MACS2_CONSTANTS_H
25#include "common/scummsys.h"
30static constexpr int kScreenWidth = 320;
31static constexpr int kScreenWidthLast = kScreenWidth - 1;
32static constexpr int kGameHeight = 200;
33static constexpr int kGameHeightLast = kGameHeight - 1;
36static constexpr int kWinScreenWidth = 640;
37static constexpr int kWinScreenWidthLast = kWinScreenWidth - 1;
38static constexpr int kWinGameHeight = 400;
39static constexpr int kWinGameHeightLast = kWinGameHeight - 1;
42static constexpr int kUIHeight = 64;
43static constexpr int kScreenHeight = kGameHeight + kUIHeight;
44static constexpr int kScreenHeightLast = kScreenHeight - 1;
45static constexpr int kWinScreenHeight = kWinGameHeight + kUIHeight;
51static constexpr uint kMcsMagicSize = 12;
52static constexpr const char *kMcsMagicV1 =
"AHFFMACS0100";
53static constexpr const char *kMcsMagicV2 =
"AHFFMACS0200";
56static constexpr uint32 kMcsV1ActorIndexOffset = 0x0C;
57static constexpr uint32 kMcsV1DirectoryOffset = 0x10;
58static constexpr uint32 kMcsV1DirectorySize = 0x3000;
60static constexpr uint32 kMcsV1ObjectDataPtrRel = 0x17F4;
62static constexpr uint32 kMcsV1ObjectScriptPtrRel = 0x17F8;
63static constexpr uint32 kMcsV1VanillaPaletteOffset = kMcsV1DirectoryOffset + kMcsV1DirectorySize;
64static constexpr uint32 kMcsV1VanillaPaletteSize = 0x300;
65static constexpr uint32 kMcsV1ShadingTableOffset = kMcsV1VanillaPaletteOffset + kMcsV1VanillaPaletteSize;
66static constexpr uint32 kMcsV1ShadingTableSize = 0x800;
67static constexpr uint kMcsV1CursorImageCount = 0x21;
68static constexpr uint kMcsV1MapSceneOffsetCount = 256;
69static constexpr uint32 kMcsV1MapSceneOffsetsSize = kMcsV1MapSceneOffsetCount * 4;
70static constexpr uint kPathNodeSlots = 16;
72static constexpr uint32 kMcsV2ActorIndexOffset = 0x20E;
73static constexpr uint32 kMcsV2DirectoryOffset = 0x212;