mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Order symbols in Act1State
(#1336)
* Order functions in `Act1State` * Remove IsPresent * Revert some stuff
This commit is contained in:

committed by
GitHub

parent
70b0f76fa1
commit
e8c856c585
@@ -6,14 +6,17 @@
|
|||||||
#include "mxstring.h"
|
#include "mxstring.h"
|
||||||
|
|
||||||
// SIZE 0x4c
|
// SIZE 0x4c
|
||||||
class LegoNamedPlane {
|
struct LegoNamedPlane {
|
||||||
public:
|
|
||||||
// FUNCTION: LEGO1 0x10033800
|
// FUNCTION: LEGO1 0x10033800
|
||||||
LegoNamedPlane() {}
|
LegoNamedPlane() {}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x10033a70
|
// FUNCTION: LEGO1 0x10033a70
|
||||||
// LegoNamedPlane::~LegoNamedPlane
|
// LegoNamedPlane::~LegoNamedPlane
|
||||||
|
|
||||||
|
// Unclear whether getters/setters were used.
|
||||||
|
// Act1State::Serialize seems to access `m_name` directly (only matches like that)
|
||||||
|
// Act1State::PlaceActors though seems to require extensive use of getters to improve
|
||||||
|
|
||||||
const char* GetName() const { return m_name.GetData(); }
|
const char* GetName() const { return m_name.GetData(); }
|
||||||
const Mx3DPointFloat& GetPosition() { return m_position; }
|
const Mx3DPointFloat& GetPosition() { return m_position; }
|
||||||
const Mx3DPointFloat& GetDirection() { return m_direction; }
|
const Mx3DPointFloat& GetDirection() { return m_direction; }
|
||||||
@@ -47,7 +50,6 @@ public:
|
|||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
// private:
|
|
||||||
MxString m_name; // 0x00
|
MxString m_name; // 0x00
|
||||||
Mx3DPointFloat m_position; // 0x10
|
Mx3DPointFloat m_position; // 0x10
|
||||||
Mx3DPointFloat m_direction; // 0x24
|
Mx3DPointFloat m_direction; // 0x24
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
#include "mxtypes.h"
|
#include "mxtypes.h"
|
||||||
|
|
||||||
struct LegoEdge;
|
struct LegoEdge;
|
||||||
class LegoNamedPlane;
|
struct LegoNamedPlane;
|
||||||
class LegoPathBoundary;
|
class LegoPathBoundary;
|
||||||
class LegoPathController;
|
class LegoPathController;
|
||||||
struct LegoPathEdgeContainer;
|
struct LegoPathEdgeContainer;
|
||||||
|
@@ -1487,12 +1487,12 @@ void Act1State::StopCptClickDialogue()
|
|||||||
// FUNCTION: LEGO1 0x100346d0
|
// FUNCTION: LEGO1 0x100346d0
|
||||||
MxBool Act1State::Reset()
|
MxBool Act1State::Reset()
|
||||||
{
|
{
|
||||||
m_motocyclePlane.Reset();
|
m_motocyclePlane.m_name = "";
|
||||||
m_bikePlane.Reset();
|
m_bikePlane.m_name = "";
|
||||||
m_skateboardPlane.Reset();
|
m_skateboardPlane.m_name = "";
|
||||||
m_unk0x022 = FALSE;
|
m_unk0x022 = FALSE;
|
||||||
|
|
||||||
m_helicopterPlane.Reset();
|
m_helicopterPlane.m_name = "";
|
||||||
if (m_helicopterWindshield) {
|
if (m_helicopterWindshield) {
|
||||||
delete m_helicopterWindshield;
|
delete m_helicopterWindshield;
|
||||||
m_helicopterWindshield = NULL;
|
m_helicopterWindshield = NULL;
|
||||||
@@ -1513,7 +1513,7 @@ MxBool Act1State::Reset()
|
|||||||
m_helicopter = NULL;
|
m_helicopter = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_jetskiPlane.Reset();
|
m_jetskiPlane.m_name = "";
|
||||||
if (m_jetskiFront) {
|
if (m_jetskiFront) {
|
||||||
delete m_jetskiFront;
|
delete m_jetskiFront;
|
||||||
m_jetskiFront = NULL;
|
m_jetskiFront = NULL;
|
||||||
@@ -1529,7 +1529,7 @@ MxBool Act1State::Reset()
|
|||||||
m_jetski = NULL;
|
m_jetski = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_dunebuggyPlane.Reset();
|
m_dunebuggyPlane.m_name = "";
|
||||||
if (m_dunebuggyFront) {
|
if (m_dunebuggyFront) {
|
||||||
delete m_dunebuggyFront;
|
delete m_dunebuggyFront;
|
||||||
m_dunebuggyFront = NULL;
|
m_dunebuggyFront = NULL;
|
||||||
@@ -1540,7 +1540,7 @@ MxBool Act1State::Reset()
|
|||||||
m_dunebuggy = NULL;
|
m_dunebuggy = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_racecarPlane.Reset();
|
m_racecarPlane.m_name = "";
|
||||||
if (m_racecarFront) {
|
if (m_racecarFront) {
|
||||||
delete m_racecarFront;
|
delete m_racecarFront;
|
||||||
m_racecarFront = NULL;
|
m_racecarFront = NULL;
|
||||||
|
@@ -33,14 +33,6 @@ public:
|
|||||||
// FUNCTION: LEGO1 0x10045af0
|
// FUNCTION: LEGO1 0x10045af0
|
||||||
virtual LegoBool IsReadMode() { return m_mode == c_read; } // vtable+0x18
|
virtual LegoBool IsReadMode() { return m_mode == c_read; } // vtable+0x18
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x10006030
|
|
||||||
// FUNCTION: BETA10 0x10017bb0
|
|
||||||
LegoStorage* WriteMxString(MxString p_data)
|
|
||||||
{
|
|
||||||
WriteString(p_data.GetData());
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
// FUNCTION: BETA10 0x10017c80
|
// FUNCTION: BETA10 0x10017c80
|
||||||
LegoStorage* WriteString(const char* p_data)
|
LegoStorage* WriteString(const char* p_data)
|
||||||
{
|
{
|
||||||
@@ -102,18 +94,11 @@ public:
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x10034470
|
// FUNCTION: LEGO1 0x10006030
|
||||||
LegoStorage* ReadMxString(MxString& p_data)
|
// FUNCTION: BETA10 0x10017bb0
|
||||||
|
LegoStorage* WriteMxString(MxString p_data)
|
||||||
{
|
{
|
||||||
LegoS16 length;
|
WriteString(p_data.GetData());
|
||||||
ReadS16(length);
|
|
||||||
|
|
||||||
char* text = new char[length + 1];
|
|
||||||
Read(text, length);
|
|
||||||
|
|
||||||
text[length] = '\0';
|
|
||||||
p_data = text;
|
|
||||||
delete[] text;
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -178,6 +163,21 @@ public:
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FUNCTION: LEGO1 0x10034470
|
||||||
|
LegoStorage* ReadMxString(MxString& p_data)
|
||||||
|
{
|
||||||
|
LegoS16 length;
|
||||||
|
ReadS16(length);
|
||||||
|
|
||||||
|
char* text = new char[length + 1];
|
||||||
|
Read(text, length);
|
||||||
|
|
||||||
|
text[length] = '\0';
|
||||||
|
p_data = text;
|
||||||
|
delete[] text;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
// SYNTHETIC: LEGO1 0x10045b00
|
// SYNTHETIC: LEGO1 0x10045b00
|
||||||
// LegoStorage::`scalar deleting destructor'
|
// LegoStorage::`scalar deleting destructor'
|
||||||
|
|
||||||
|
@@ -42,6 +42,7 @@ public:
|
|||||||
// FUNCTION: BETA10 0x100576b0
|
// FUNCTION: BETA10 0x100576b0
|
||||||
const CompoundObject& GetROIs() { return rois; }
|
const CompoundObject& GetROIs() { return rois; }
|
||||||
|
|
||||||
|
// FUNCTION: BETA10 0x100e1260
|
||||||
void Add(ViewROI* p_roi) { rois.push_back(p_roi); }
|
void Add(ViewROI* p_roi) { rois.push_back(p_roi); }
|
||||||
|
|
||||||
// SYNTHETIC: LEGO1 0x100a6000
|
// SYNTHETIC: LEGO1 0x100a6000
|
||||||
|
Reference in New Issue
Block a user