annotate Level/Decoration.h @ 2388:41025c0eb414

sub_407A1C - changing some variables to signed
author zipi
date Mon, 30 Jun 2014 10:22:31 +0100
parents 9bd7522cdbbb
children
rev   line source
1480
61451d5980bf LevelDecoration maintenance changes
yoctozepto
parents:
diff changeset
1 #pragma once
61451d5980bf LevelDecoration maintenance changes
yoctozepto
parents:
diff changeset
2
1512
af57b3b76fe4 Clean and decouple. (1)
yoctozepto
parents: 1502
diff changeset
3 #include <cstdint>
1828
35c1e4ff6ba7 party_finds_gold to Party::PartyFindsGold, cleaned up, moved Level/Decoration.h reference out of Indoor.h
Grumpy7
parents: 1514
diff changeset
4 #include <array>
1489
a27cdb3d753e Cleanup of LevelDecoration and related.
yoctozepto
parents: 1480
diff changeset
5
1512
af57b3b76fe4 Clean and decouple. (1)
yoctozepto
parents: 1502
diff changeset
6 #include "../VectorTypes.h"
af57b3b76fe4 Clean and decouple. (1)
yoctozepto
parents: 1502
diff changeset
7
1828
35c1e4ff6ba7 party_finds_gold to Party::PartyFindsGold, cleaned up, moved Level/Decoration.h reference out of Indoor.h
Grumpy7
parents: 1514
diff changeset
8
1512
af57b3b76fe4 Clean and decouple. (1)
yoctozepto
parents: 1502
diff changeset
9 enum LEVEL_DECORATION_FLAGS: uint16_t
1480
61451d5980bf LevelDecoration maintenance changes
yoctozepto
parents:
diff changeset
10 {
61451d5980bf LevelDecoration maintenance changes
yoctozepto
parents:
diff changeset
11 LEVEL_DECORATION_TRIGGERED_BY_TOUCH = 0x01,
61451d5980bf LevelDecoration maintenance changes
yoctozepto
parents:
diff changeset
12 LEVEL_DECORATION_TRIGGERED_BY_MONSTER = 0x02,
61451d5980bf LevelDecoration maintenance changes
yoctozepto
parents:
diff changeset
13 LEVEL_DECORATION_TRIGGERED_BY_OBJECT = 0x04,
61451d5980bf LevelDecoration maintenance changes
yoctozepto
parents:
diff changeset
14 LEVEL_DECORATION_VISIBLE_ON_MAP = 0x08,
61451d5980bf LevelDecoration maintenance changes
yoctozepto
parents:
diff changeset
15 LEVEL_DECORATION_CHEST = 0x10,
61451d5980bf LevelDecoration maintenance changes
yoctozepto
parents:
diff changeset
16 LEVEL_DECORATION_INVISIBLE = 0x20,
61451d5980bf LevelDecoration maintenance changes
yoctozepto
parents:
diff changeset
17 LEVEL_DECORATION_OBELISK_CHEST = 0x40,
61451d5980bf LevelDecoration maintenance changes
yoctozepto
parents:
diff changeset
18 };
61451d5980bf LevelDecoration maintenance changes
yoctozepto
parents:
diff changeset
19
61451d5980bf LevelDecoration maintenance changes
yoctozepto
parents:
diff changeset
20 /* 74 */
61451d5980bf LevelDecoration maintenance changes
yoctozepto
parents:
diff changeset
21 #pragma pack(push, 1)
61451d5980bf LevelDecoration maintenance changes
yoctozepto
parents:
diff changeset
22 struct LevelDecoration
61451d5980bf LevelDecoration maintenance changes
yoctozepto
parents:
diff changeset
23 {
61451d5980bf LevelDecoration maintenance changes
yoctozepto
parents:
diff changeset
24 LevelDecoration();
61451d5980bf LevelDecoration maintenance changes
yoctozepto
parents:
diff changeset
25 int GetGlobalEvent();
61451d5980bf LevelDecoration maintenance changes
yoctozepto
parents:
diff changeset
26 bool IsInteractive();
1491
6d21ef91cb2d Rename LevelDecoration::_47A825 to LevelDecoration::IsObeliskChestActive().
yoctozepto
parents: 1489
diff changeset
27 bool IsObeliskChestActive();
1480
61451d5980bf LevelDecoration maintenance changes
yoctozepto
parents:
diff changeset
28
1512
af57b3b76fe4 Clean and decouple. (1)
yoctozepto
parents: 1502
diff changeset
29 uint16_t uDecorationDescID;
af57b3b76fe4 Clean and decouple. (1)
yoctozepto
parents: 1502
diff changeset
30 uint16_t uFlags;
1489
a27cdb3d753e Cleanup of LevelDecoration and related.
yoctozepto
parents: 1480
diff changeset
31 Vec3_int_ vPosition;
1512
af57b3b76fe4 Clean and decouple. (1)
yoctozepto
parents: 1502
diff changeset
32 int32_t field_10_y_rot;
af57b3b76fe4 Clean and decouple. (1)
yoctozepto
parents: 1502
diff changeset
33 uint16_t uCog;
1514
965af46e8793 Rename LevelDecoration::field_16_event_id to LevelDecoration::uEventID.
yoctozepto
parents: 1513
diff changeset
34 uint16_t uEventID;
1513
4055b09160ae Clean and decouple. (2)
yoctozepto
parents: 1512
diff changeset
35 uint16_t uTriggerRange;
1512
af57b3b76fe4 Clean and decouple. (1)
yoctozepto
parents: 1502
diff changeset
36 int16_t field_1A;
af57b3b76fe4 Clean and decouple. (1)
yoctozepto
parents: 1502
diff changeset
37 int16_t _idx_in_stru123;
af57b3b76fe4 Clean and decouple. (1)
yoctozepto
parents: 1502
diff changeset
38 int16_t field_1E;
1480
61451d5980bf LevelDecoration maintenance changes
yoctozepto
parents:
diff changeset
39 };
1828
35c1e4ff6ba7 party_finds_gold to Party::PartyFindsGold, cleaned up, moved Level/Decoration.h reference out of Indoor.h
Grumpy7
parents: 1514
diff changeset
40
35c1e4ff6ba7 party_finds_gold to Party::PartyFindsGold, cleaned up, moved Level/Decoration.h reference out of Indoor.h
Grumpy7
parents: 1514
diff changeset
41
35c1e4ff6ba7 party_finds_gold to Party::PartyFindsGold, cleaned up, moved Level/Decoration.h reference out of Indoor.h
Grumpy7
parents: 1514
diff changeset
42
35c1e4ff6ba7 party_finds_gold to Party::PartyFindsGold, cleaned up, moved Level/Decoration.h reference out of Indoor.h
Grumpy7
parents: 1514
diff changeset
43 extern std::array<LevelDecoration, 3000> pLevelDecorations;
35c1e4ff6ba7 party_finds_gold to Party::PartyFindsGold, cleaned up, moved Level/Decoration.h reference out of Indoor.h
Grumpy7
parents: 1514
diff changeset
44 extern size_t uNumLevelDecorations;
2154
9bd7522cdbbb Render decoupling.
Nomad
parents: 1828
diff changeset
45 extern LevelDecoration* activeLevelDecoration; // 5C3420
1480
61451d5980bf LevelDecoration maintenance changes
yoctozepto
parents:
diff changeset
46 #pragma pack(pop)