Isle
Loading...
Searching...
No Matches
legoplants.h
Go to the documentation of this file.
1#ifndef LEGOPLANTS_H
2#define LEGOPLANTS_H
3
4#include "decomp.h"
5#include "mxtypes.h"
6
7class LegoEntity;
9
23 enum World {
24 c_act1 = 1 << 0,
25 c_imain = 1 << 1,
26 c_ielev = 1 << 4,
27 c_iisle = 1 << 5,
28 c_act2 = 1 << 15,
29 c_act3 = 1 << 16
30 };
31
34 enum Variant {
38 e_palm
39 };
40
43 enum Color {
44 e_white = 0,
48 e_green
49 };
50
60 const char* m_name;
62 float m_x;
63 float m_y;
64 float m_z;
66 float m_position[3];
67 float m_direction[3];
68 float m_up[3];
69};
70
76
77#endif // LEGOPLANTS_H
[AI] Represents an entity that can be placed and managed in the LEGO Island world.
Definition: legoentity.h:16
[AI] Represents a path segment or boundary in the navigation network for actors (vehicles,...
unsigned int undefined4
Definition: decomp.h:28
LegoPlantInfo g_plantInfoInit[81]
[AI] Static global array of all initial plant data for the island (81 entries).
Definition: legoplants.cpp:6
unsigned char MxU8
[AI]
Definition: mxtypes.h:8
unsigned int MxU32
[AI]
Definition: mxtypes.h:32
signed char MxS8
[AI]
Definition: mxtypes.h:14
[AI] Struct representing a single plant's static configuration on LEGO Island, including placement,...
Definition: legoplants.h:18
MxS8 m_initialUnk0x16
[AI] Initial value to be loaded into m_unk0x16 (reset/restore behavior) [AI]
Definition: legoplants.h:59
World
[AI] Bit flags indicating which game world(s) the plant appears in.
Definition: legoplants.h:23
@ c_act3
[AI] Action scene 3 [AI]
Definition: legoplants.h:29
@ c_act1
[AI] Action scene 1 [AI]
Definition: legoplants.h:24
@ c_ielev
[AI] Elevator interior scene [AI]
Definition: legoplants.h:26
@ c_imain
[AI] Main island/intro [AI]
Definition: legoplants.h:25
@ c_iisle
[AI] Small isle/secret (see SI files) [AI]
Definition: legoplants.h:27
@ c_act2
[AI] Action scene 2 [AI]
Definition: legoplants.h:28
Color
[AI] Standard colors used for LEGO plants.
Definition: legoplants.h:43
@ e_white
[AI] White
Definition: legoplants.h:44
@ e_black
[AI] Black
Definition: legoplants.h:45
@ e_yellow
[AI] Yellow
Definition: legoplants.h:46
@ e_green
[AI] Green
Definition: legoplants.h:48
@ e_red
[AI] Red
Definition: legoplants.h:47
MxU32 m_sound
[AI] Sound ID or sound group associated with this plant (e.g. upon interaction or environment event) ...
Definition: legoplants.h:54
MxU8 m_color
[AI] Color enum value, determines plant's rendering color [AI]
Definition: legoplants.h:57
MxS8 m_unk0x16
[AI] Unknown; appears to be a state variable, possibly animation frame or LOD index [AI]
Definition: legoplants.h:58
undefined4 m_unk0x1c
[AI] Unknown purpose, four bytes, possibly used for runtime flags or temporary storage [AI]
Definition: legoplants.h:61
float m_direction[3]
[AI] Orientation direction vector, typically for forward orientation of plant (for animation/transfor...
Definition: legoplants.h:67
MxU32 m_worlds
[AI] Bitfield of World enum - specifies which scenes/worlds this plant is present in [AI]
Definition: legoplants.h:52
float m_up[3]
[AI] Up direction vector, typically (0,1,0) but can be used for skew or special display [AI]
Definition: legoplants.h:68
MxU8 m_variant
[AI] Variant enum value specifying geometry/model [AI]
Definition: legoplants.h:53
MxU32 m_move
[AI] Movement/action type (for animation, swaying, interactive move, etc.) [AI]
Definition: legoplants.h:55
float m_z
[AI] World Z position (depth/axis in world) [AI]
Definition: legoplants.h:64
LegoPathBoundary * m_boundary
[AI] Pointer to a collision or path boundary for this plant, if any [AI]
Definition: legoplants.h:65
float m_y
[AI] World Y position (vertical/elevation) [AI]
Definition: legoplants.h:63
Variant
[AI] Plant geometry/model variant.
Definition: legoplants.h:34
@ e_palm
[AI] Palm tree
Definition: legoplants.h:38
@ e_bush
[AI] Bush/shrub
Definition: legoplants.h:37
@ e_flower
[AI] Standard flower
Definition: legoplants.h:35
@ e_tree
[AI] Tree
Definition: legoplants.h:36
MxU8 m_mood
[AI] Mood state; used for animation, facial expression, etc. [AI]
Definition: legoplants.h:56
float m_x
[AI] World X position (center or reference) [AI]
Definition: legoplants.h:62
LegoEntity * m_entity
[AI] Pointer to the associated entity instance (initialized later at runtime) [AI]
Definition: legoplants.h:51
float m_position[3]
[AI] Alternate position array (likely for display, reference, or bounding computations) [AI]
Definition: legoplants.h:66
const char * m_name
[AI] Name identifier; often maps to geometry, SI file object, or level editor label [AI]
Definition: legoplants.h:60