1#ifndef LEGONAMEDPLANE_H
2#define LEGONAMEDPLANE_H
Abstract base class providing an interface for file-like storage with binary and text read/write oper...
LegoStorage * WriteVector(Mx3DPointFloat p_data)
Writes a 3D vector (three floats) to storage.
LegoStorage * ReadMxString(MxString &p_data)
Reads a length-prefixed string and stores it in an MxString object.
LegoStorage * ReadVector(Mx3DPointFloat &p_data)
Reads a 3D vector (three floats) from storage.
virtual LegoBool IsWriteMode()
Returns TRUE if object was opened in write mode.
virtual LegoBool IsReadMode()
Returns TRUE if object was opened in read mode.
LegoStorage * WriteMxString(MxString p_data)
Writes a length-prefixed MxString to storage.
[AI] Represents a 3D point with floating-point precision, inheriting from Vector3.
Mindscape custom string class for managing dynamic C-strings within the game engine.
char * GetData() const
Returns a pointer to the internal character buffer.
#define SUCCESS
[AI] Used to indicate a successful operation in result codes.
[AI] Represents a named 3D plane with orientation and position, used to describe places or camera tar...
void SetUp(const Mx3DPointFloat &p_up)
[AI] Set the "up" vector of the plane.
const char * GetName() const
[AI] Default destructor (implementation likely trivial).
void Reset()
[AI] Reset the plane to "not present" by clearing its name.
void SetName(const char *p_name)
[AI] Set the name identifier for this plane.
const Mx3DPointFloat & GetPosition()
[AI] Get the 3D position of this plane in world coordinates.
MxString m_name
[AI] Name identifier for this plane (used for lookups and scripting).
LegoNamedPlane()
[AI] Default constructor that initializes an unnamed plane.
MxResult Serialize(LegoStorage *p_storage)
[AI] Serialize or deserialize the plane data to or from a LegoStorage object.
Mx3DPointFloat m_direction
[AI] Direction (forward/facing) vector for the plane orientation.
MxBool IsPresent()
[AI] Determines whether the plane instance is valid (present) based on its name.
const Mx3DPointFloat & GetDirection()
[AI] Get the normalized direction (forward) vector of the plane.
const Mx3DPointFloat & GetUp()
[AI] Get the normalized "up" vector of the plane, defining its orientation.
Mx3DPointFloat m_up
[AI] "Up" vector for the plane, defines its local up direction.
Mx3DPointFloat m_position
[AI] 3D position of the plane in world space.
void SetDirection(const Mx3DPointFloat &p_direction)
[AI] Set the direction (forward) vector of the plane.
void SetPosition(const Mx3DPointFloat &p_position)
[AI] Set the 3D position of the plane.