annotate TileFrameTable.h @ 624:7e13a40b2718

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