annotate TileFrameTable.h @ 40:001b45e84aaa

Слияние
author Ritor1
date Thu, 18 Oct 2012 09:12:15 +0600
parents 8b8875f5b359
children
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 #pragma once
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5 /* 327 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6 enum TILE_DESC_FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 TILE_DESC_BURNS = 0x1,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9 TILE_DESC_WATER = 0x2,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 TILE_DESC_BLOCK = 0x4,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11 TILE_DESC_REPULSE = 0x8,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12 TILE_DESC_FLAT = 0x10,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 TILE_DESC_WAVY = 0x20,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14 TILE_DESC_DONT_DRAW = 0x40,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15 TILE_DESC_WATER_2 = 0x100,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16 TILE_DESC_TRANSITION = 0x200,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17 TILE_DESC_SCROLL_DOWN = 0x400,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18 TILE_DESC_SCROLL_UP = 0x800,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19 TILE_DESC_SCROLL_LEFT = 0x1000,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20 TILE_DESC_SCROLL_RIGHT = 0x2000,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 /* 48 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27 struct TileDesc
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29 char pTileName[16];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30 unsigned __int16 uTileID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 unsigned __int16 uBitmapID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32 unsigned __int16 uTerrainType;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 unsigned __int16 uSection;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34 unsigned __int16 uAttributes;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38 /* 49 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 struct TileTable
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42 //----- (00487E13) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43 TileTable()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 this->pTiles = nullptr;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46 this->uNumTiles = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48 ~TileTable();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50 TileDesc *GetTileById(unsigned int uTileID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51 void InitializeTileset(int uTerrainType);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52 int method_487ED6(signed int a1, int a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53 unsigned int GetTileId(unsigned int uTerrainType, unsigned int uSection);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54 void ToFile();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55 void FromFile(void *pSerialized);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56 int FromFileTxt(const char *pFilename);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
58 unsigned int uNumTiles;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
59 struct TileDesc *pTiles;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
60 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
61 #pragma pack(pop)