mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 16:34:06 +00:00
Implement/match several functions in Act3
, refactor (#1197)
* Implement/match several functions in Act3, refactor * Fix naming * Rename * Add comment * Add annotation * Add BETA assert
This commit is contained in:

committed by
GitHub

parent
97fb6e4f15
commit
1aff40dd94
@@ -117,7 +117,7 @@ MxResult Act2Actor::VTable0x9c()
|
||||
|
||||
// STUB: LEGO1 0x10018c30
|
||||
// STUB: BETA10 0x1000cb52
|
||||
void Act2Actor::VTable0x70(float p_und)
|
||||
void Act2Actor::VTable0x70(float p_time)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
@@ -15,7 +15,7 @@ Act3Actor::Act3Actor()
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x1003fb70
|
||||
MxU32 Act3Actor::VTable0x90(float p_float, Matrix4& p_transform)
|
||||
MxU32 Act3Actor::VTable0x90(float p_time, Matrix4& p_transform)
|
||||
{
|
||||
// Note: Code duplication with LegoExtraActor::VTable0x90
|
||||
switch (m_state & 0xff) {
|
||||
@@ -23,10 +23,10 @@ MxU32 Act3Actor::VTable0x90(float p_float, Matrix4& p_transform)
|
||||
case 1:
|
||||
return TRUE;
|
||||
case 2:
|
||||
m_unk0x1c = p_float + 2000.0f;
|
||||
m_unk0x1c = p_time + 2000.0f;
|
||||
m_state = 3;
|
||||
m_actorTime += (p_float - m_lastTime) * m_worldSpeed;
|
||||
m_lastTime = p_float;
|
||||
m_actorTime += (p_time - m_lastTime) * m_worldSpeed;
|
||||
m_lastTime = p_time;
|
||||
return FALSE;
|
||||
case 3:
|
||||
assert(!m_userNavFlag);
|
||||
@@ -34,7 +34,7 @@ MxU32 Act3Actor::VTable0x90(float p_float, Matrix4& p_transform)
|
||||
|
||||
p_transform = m_roi->GetLocal2World();
|
||||
|
||||
if (m_unk0x1c > p_float) {
|
||||
if (m_unk0x1c > p_time) {
|
||||
Mx3DPointFloat position;
|
||||
|
||||
position = positionRef;
|
||||
@@ -42,8 +42,8 @@ MxU32 Act3Actor::VTable0x90(float p_float, Matrix4& p_transform)
|
||||
p_transform.RotateX(0.6);
|
||||
positionRef = position;
|
||||
|
||||
m_actorTime += (p_float - m_lastTime) * m_worldSpeed;
|
||||
m_lastTime = p_float;
|
||||
m_actorTime += (p_time - m_lastTime) * m_worldSpeed;
|
||||
m_lastTime = p_time;
|
||||
|
||||
VTable0x74(p_transform);
|
||||
return FALSE;
|
||||
|
@@ -21,7 +21,7 @@ void Act3Brickster::ParseAction(char* p_extra)
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10041050
|
||||
void Act3Brickster::VTable0x70(float p_und)
|
||||
void Act3Brickster::VTable0x70(float p_time)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
@@ -22,7 +22,7 @@ void Act3Cop::ParseAction(char* p_extra)
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x100401f0
|
||||
void Act3Cop::VTable0x70(float p_und)
|
||||
void Act3Cop::VTable0x70(float p_time)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@ MxResult Act3Shark::FUN_10042ce0(void*)
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10042d40
|
||||
void Act3Shark::VTable0x70(float p_float)
|
||||
void Act3Shark::VTable0x70(float p_time)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
@@ -40,11 +40,11 @@ MxResult Doors::VTable0x94(LegoPathActor* p_actor, MxBool p_bool)
|
||||
|
||||
// FUNCTION: LEGO1 0x10066190
|
||||
// FUNCTION: BETA10 0x1002696b
|
||||
MxFloat Doors::VTable0xcc(float p_float)
|
||||
MxFloat Doors::VTable0xcc(float p_time)
|
||||
{
|
||||
MxFloat fVar1;
|
||||
|
||||
fVar1 = p_float - m_unk0x158;
|
||||
fVar1 = p_time - m_unk0x158;
|
||||
|
||||
if (fVar1 <= 0.0f) {
|
||||
return 0.0f;
|
||||
@@ -65,7 +65,7 @@ MxFloat Doors::VTable0xcc(float p_float)
|
||||
|
||||
// FUNCTION: LEGO1 0x10066250
|
||||
// FUNCTION: BETA10 0x10026a45
|
||||
void Doors::VTable0x70(float p_float)
|
||||
void Doors::VTable0x70(float p_time)
|
||||
{
|
||||
assert(m_ltDoor && m_rtDoor);
|
||||
|
||||
@@ -80,7 +80,7 @@ void Doors::VTable0x70(float p_float)
|
||||
case 1:
|
||||
break;
|
||||
case 2:
|
||||
float local8 = VTable0xcc(p_float);
|
||||
float local8 = VTable0xcc(p_time);
|
||||
|
||||
if (local8 > 0.0f) {
|
||||
MxMatrix local58(m_ltDoorLocal);
|
||||
@@ -102,7 +102,7 @@ void Doors::VTable0x70(float p_float)
|
||||
m_unk0x1f4 = local8;
|
||||
}
|
||||
|
||||
if (m_unk0x158 + g_unk0x100d8e84 < p_float) {
|
||||
if (m_unk0x158 + g_unk0x100d8e84 < p_time) {
|
||||
m_ltDoor->FUN_100a58f0(m_ltDoorLocal);
|
||||
m_rtDoor->FUN_100a58f0(m_rtDoorLocal);
|
||||
m_ltDoor->VTable0x14();
|
||||
|
@@ -354,16 +354,16 @@ void Helicopter::VTable0x74(Matrix4& p_transform)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10003ee0
|
||||
void Helicopter::VTable0x70(float p_float)
|
||||
void Helicopter::VTable0x70(float p_time)
|
||||
{
|
||||
MxU32 state = m_state->GetUnkown8();
|
||||
switch (state) {
|
||||
default:
|
||||
LegoPathActor::VTable0x70(p_float);
|
||||
LegoPathActor::VTable0x70(p_time);
|
||||
return;
|
||||
case 4:
|
||||
case 5:
|
||||
float f = m_unk0x1f0 - p_float + 3000;
|
||||
float f = m_unk0x1f0 - p_time + 3000;
|
||||
if (f >= 0) {
|
||||
float f2 = f / 3000 + 1;
|
||||
if (f2 < 0) {
|
||||
|
@@ -889,7 +889,7 @@ void LegoBuildingManager::FUN_100307b0(LegoEntity* p_entity, MxS32 p_adjust)
|
||||
// FUNCTION: LEGO1 0x10030800
|
||||
void LegoBuildingManager::FUN_10030800()
|
||||
{
|
||||
for (MxS32 i = 0; i < sizeOfArray(g_buildingInfo); i++) {
|
||||
for (MxU32 i = 0; i < sizeOfArray(g_buildingInfo); i++) {
|
||||
g_buildingInfo[i].m_initialUnk0x11 = g_buildingInfo[i].m_unk0x11;
|
||||
}
|
||||
}
|
||||
|
@@ -633,3 +633,11 @@ void LegoPlantManager::FUN_100271b0(LegoEntity* p_entity, MxS32 p_adjust)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10027200
|
||||
void LegoPlantManager::FUN_10027200()
|
||||
{
|
||||
for (MxU32 i = 0; i < sizeOfArray(g_plantInfo); i++) {
|
||||
g_plantInfo[i].m_initialUnk0x16 = g_plantInfo[i].m_unk0x16;
|
||||
}
|
||||
}
|
||||
|
@@ -25,7 +25,7 @@ void LegoJetski::FUN_100136f0(float p_worldSpeed)
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10013740
|
||||
void LegoJetski::VTable0x70(float p_float)
|
||||
void LegoJetski::VTable0x70(float p_time)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
@@ -119,14 +119,14 @@ MxS32 LegoJetskiRaceActor::VTable0x1c(LegoPathBoundary* p_boundary, LegoEdge* p_
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10081550
|
||||
void LegoJetskiRaceActor::VTable0x70(float p_float)
|
||||
void LegoJetskiRaceActor::VTable0x70(float p_time)
|
||||
{
|
||||
if (m_unk0x0c == 0) {
|
||||
const LegoChar* raceState = VariableTable()->GetVariable(g_raceState);
|
||||
if (!stricmp(raceState, g_racing)) {
|
||||
m_unk0x0c = 1;
|
||||
m_lastTime = p_float - 1.0f;
|
||||
m_unk0x1c = p_float;
|
||||
m_lastTime = p_time - 1.0f;
|
||||
m_unk0x1c = p_time;
|
||||
}
|
||||
else if (!m_userNavFlag) {
|
||||
LegoAnimActor::VTable0x70(m_lastTime + 1.0f);
|
||||
@@ -134,7 +134,7 @@ void LegoJetskiRaceActor::VTable0x70(float p_float)
|
||||
}
|
||||
|
||||
if (m_unk0x0c == 1) {
|
||||
LegoAnimActor::VTable0x70(p_float);
|
||||
LegoAnimActor::VTable0x70(p_time);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -142,6 +142,7 @@ void LegoNavController::SetControlMax(int p_hMax, int p_vMax)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10054cd0
|
||||
// FUNCTION: BETA10 0x1009ad76
|
||||
void LegoNavController::SetToDefaultParams()
|
||||
{
|
||||
m_deadZone = g_defdeadZone;
|
||||
|
@@ -106,7 +106,7 @@ MxResult LegoPointOfViewController::Create(Lego3DView* p_lego3DView)
|
||||
m_lego3DView = p_lego3DView;
|
||||
m_nav = new LegoNavController();
|
||||
LegoOmni::GetInstance()->SetNavController(m_nav);
|
||||
m_nav->SetTrackDefaultParams(TRUE);
|
||||
m_nav->SetTrackDefault(TRUE);
|
||||
TickleManager()->RegisterClient(this, 10);
|
||||
return SUCCESS;
|
||||
}
|
||||
|
@@ -70,10 +70,10 @@ void LegoAnimActor::VTable0x74(Matrix4& p_transform)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x1001c290
|
||||
void LegoAnimActor::VTable0x70(float p_float)
|
||||
void LegoAnimActor::VTable0x70(float p_time)
|
||||
{
|
||||
if (m_lastTime == 0) {
|
||||
m_lastTime = p_float - 1.0f;
|
||||
m_lastTime = p_time - 1.0f;
|
||||
}
|
||||
|
||||
if (m_state == 0 && !m_userNavFlag && m_worldSpeed <= 0) {
|
||||
@@ -84,10 +84,10 @@ void LegoAnimActor::VTable0x70(float p_float)
|
||||
FUN_1001c360(f, matrix);
|
||||
}
|
||||
|
||||
m_lastTime = m_actorTime = p_float;
|
||||
m_lastTime = m_actorTime = p_time;
|
||||
}
|
||||
else {
|
||||
LegoPathActor::VTable0x70(p_float);
|
||||
LegoPathActor::VTable0x70(p_time);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -45,7 +45,7 @@ MxS32 LegoRaceActor::VTable0x68(Vector3& p_v1, Vector3& p_v2, Vector3& p_v3)
|
||||
|
||||
// FUNCTION: LEGO1 0x100147f0
|
||||
// FUNCTION: BETA10 0x100c9c93
|
||||
MxU32 LegoRaceActor::VTable0x90(float p_float, Matrix4& p_transform)
|
||||
MxU32 LegoRaceActor::VTable0x90(float p_time, Matrix4& p_transform)
|
||||
{
|
||||
// Note: Code duplication with LegoExtraActor::VTable0x90
|
||||
switch (m_state) {
|
||||
@@ -54,10 +54,10 @@ MxU32 LegoRaceActor::VTable0x90(float p_float, Matrix4& p_transform)
|
||||
return 1;
|
||||
|
||||
case 2:
|
||||
m_unk0x08 = p_float + 2000.0f;
|
||||
m_unk0x08 = p_time + 2000.0f;
|
||||
m_state = 3;
|
||||
m_actorTime += (p_float - m_lastTime) * m_worldSpeed;
|
||||
m_lastTime = p_float;
|
||||
m_actorTime += (p_time - m_lastTime) * m_worldSpeed;
|
||||
m_lastTime = p_time;
|
||||
return 0;
|
||||
|
||||
case 3:
|
||||
@@ -66,7 +66,7 @@ MxU32 LegoRaceActor::VTable0x90(float p_float, Matrix4& p_transform)
|
||||
|
||||
p_transform = m_roi->GetLocal2World();
|
||||
|
||||
if (m_unk0x08 > p_float) {
|
||||
if (m_unk0x08 > p_time) {
|
||||
Mx3DPointFloat position;
|
||||
|
||||
position = positionRef;
|
||||
@@ -74,8 +74,8 @@ MxU32 LegoRaceActor::VTable0x90(float p_float, Matrix4& p_transform)
|
||||
p_transform.RotateX(0.6);
|
||||
positionRef = position;
|
||||
|
||||
m_actorTime += (p_float - m_lastTime) * m_worldSpeed;
|
||||
m_lastTime = p_float;
|
||||
m_actorTime += (p_time - m_lastTime) * m_worldSpeed;
|
||||
m_lastTime = p_time;
|
||||
|
||||
VTable0x74(p_transform);
|
||||
return 0;
|
||||
|
@@ -371,17 +371,17 @@ MxU32 LegoRaceCar::HandleSkeletonKicks(float p_param1)
|
||||
|
||||
// FUNCTION: LEGO1 0x100131f0
|
||||
// FUNCTION: BETA10 0x100cb88a
|
||||
void LegoRaceCar::VTable0x70(float p_float)
|
||||
void LegoRaceCar::VTable0x70(float p_time)
|
||||
{
|
||||
if (m_userNavFlag && (m_userState == LEGORACECAR_KICK1 || m_userState == LEGORACECAR_KICK2)) {
|
||||
FUN_10012ff0(p_float);
|
||||
FUN_10012ff0(p_time);
|
||||
return;
|
||||
}
|
||||
|
||||
LegoCarRaceActor::VTable0x70(p_float);
|
||||
LegoCarRaceActor::VTable0x70(p_time);
|
||||
|
||||
if (m_userNavFlag && m_userState == LEGORACECAR_UNKNOWN_1) {
|
||||
if (HandleSkeletonKicks(p_float)) {
|
||||
if (HandleSkeletonKicks(p_time)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -390,7 +390,7 @@ void LegoRaceCar::VTable0x70(float p_float)
|
||||
FUN_1005d4b0();
|
||||
|
||||
if (!m_userNavFlag) {
|
||||
FUN_10080590(p_float);
|
||||
FUN_10080590(p_time);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -415,11 +415,11 @@ void LegoRaceCar::VTable0x70(float p_float)
|
||||
}
|
||||
|
||||
if (absoluteSpeed != 0.0f) {
|
||||
g_unk0x100f0b88 = p_float;
|
||||
g_unk0x100f0b88 = p_time;
|
||||
g_unk0x100f0b8c = FALSE;
|
||||
}
|
||||
|
||||
if (p_float - g_unk0x100f0b88 > 5000.0f && !g_unk0x100f0b8c) {
|
||||
if (p_time - g_unk0x100f0b88 > 5000.0f && !g_unk0x100f0b8c) {
|
||||
SoundManager()->GetCacheSoundManager()->Play(g_srt001ra, NULL, 0);
|
||||
g_unk0x100f0b8c = TRUE;
|
||||
}
|
||||
|
@@ -54,7 +54,7 @@ LegoCarRaceActor::LegoCarRaceActor()
|
||||
|
||||
// FUNCTION: LEGO1 0x10080590
|
||||
// FUNCTION: BETA10 0x100cd8cf
|
||||
void LegoCarRaceActor::FUN_10080590(float p_float)
|
||||
void LegoCarRaceActor::FUN_10080590(float p_time)
|
||||
{
|
||||
MxFloat maxSpeed = m_maxLinearVel;
|
||||
Mx3DPointFloat destEdgeUnknownVector;
|
||||
@@ -89,8 +89,8 @@ void LegoCarRaceActor::FUN_10080590(float p_float)
|
||||
}
|
||||
|
||||
MxFloat deltaSpeed = maxSpeed - m_worldSpeed;
|
||||
MxFloat changeInSpeed = (p_float - m_unk0x1c) * m_unk0x14;
|
||||
m_unk0x1c = p_float;
|
||||
MxFloat changeInSpeed = (p_time - m_unk0x1c) * m_unk0x14;
|
||||
m_unk0x1c = p_time;
|
||||
|
||||
if (deltaSpeed < 0.0f) {
|
||||
changeInSpeed = -changeInSpeed;
|
||||
@@ -214,7 +214,7 @@ void LegoCarRaceActor::SwitchBoundary(LegoPathBoundary*& p_boundary, LegoUnknown
|
||||
|
||||
// FUNCTION: LEGO1 0x10080b70
|
||||
// FUNCTION: BETA10 0x100cdbae
|
||||
void LegoCarRaceActor::VTable0x70(float p_float)
|
||||
void LegoCarRaceActor::VTable0x70(float p_time)
|
||||
{
|
||||
// m_unk0x0c is not an MxBool, there are places where it is set to 2 or higher
|
||||
if (m_unk0x0c == 0) {
|
||||
@@ -222,13 +222,13 @@ void LegoCarRaceActor::VTable0x70(float p_float)
|
||||
|
||||
if (strcmpi(value, g_racing) == 0) {
|
||||
m_unk0x0c = 1;
|
||||
m_lastTime = p_float - 1.0f;
|
||||
m_unk0x1c = p_float;
|
||||
m_lastTime = p_time - 1.0f;
|
||||
m_unk0x1c = p_time;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_unk0x0c == 1) {
|
||||
LegoAnimActor::VTable0x70(p_float);
|
||||
LegoAnimActor::VTable0x70(p_time);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1,26 +1,42 @@
|
||||
#include "act3.h"
|
||||
|
||||
#include "3dmanager/lego3dmanager.h"
|
||||
#include "act3_actions.h"
|
||||
#include "helicopter.h"
|
||||
#include "legoanimationmanager.h"
|
||||
#include "legobuildingmanager.h"
|
||||
#include "legocontrolmanager.h"
|
||||
#include "legomain.h"
|
||||
#include "legonavcontroller.h"
|
||||
#include "legoplantmanager.h"
|
||||
#include "legovideomanager.h"
|
||||
#include "misc.h"
|
||||
#include "mxbackgroundaudiomanager.h"
|
||||
#include "mxmisc.h"
|
||||
#include "mxnotificationmanager.h"
|
||||
#include "mxticklemanager.h"
|
||||
#include "mxtransitionmanager.h"
|
||||
|
||||
DECOMP_SIZE_ASSERT(Act3, 0x4274)
|
||||
DECOMP_SIZE_ASSERT(Act3State, 0x0c)
|
||||
DECOMP_SIZE_ASSERT(Act3ListElement, 0x0c)
|
||||
DECOMP_SIZE_ASSERT(Act3List, 0x10)
|
||||
|
||||
// GLOBAL: LEGO1 0x100d95e8
|
||||
Act3Script::Script g_unk0x100d95e8[] =
|
||||
{Act3Script::c_tlp053in_RunAnim, Act3Script::c_tlp064la_RunAnim, Act3Script::c_tlp068in_RunAnim};
|
||||
|
||||
// FUNCTION: LEGO1 0x10072270
|
||||
// FUNCTION: BETA10 0x10015470
|
||||
Act3::Act3()
|
||||
{
|
||||
m_unk0xf8 = 0;
|
||||
m_state = NULL;
|
||||
m_unk0x41fc = 0;
|
||||
m_unk0x4200 = 0;
|
||||
m_unk0x4204 = 0;
|
||||
m_unk0x4208 = 0;
|
||||
m_helicopter = NULL;
|
||||
m_unk0x4210 = 0;
|
||||
m_cop1 = NULL;
|
||||
m_cop2 = NULL;
|
||||
m_brickster = NULL;
|
||||
m_copter = NULL;
|
||||
m_shark = NULL;
|
||||
m_unk0x4214 = -1;
|
||||
m_unk0x421e = 0;
|
||||
|
||||
@@ -37,10 +53,13 @@ MxBool Act3::VTable0x5c()
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x100726a0
|
||||
// FUNCTION: LEGO1 0x100726a0
|
||||
// FUNCTION: BETA10 0x100155da
|
||||
Act3::~Act3()
|
||||
{
|
||||
// TODO
|
||||
Destroy(TRUE);
|
||||
NotificationManager()->Unregister(this);
|
||||
TickleManager()->UnregisterClient(this);
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x100727e0
|
||||
@@ -55,47 +74,134 @@ MxBool Act3::FUN_10072980(LegoPathController*, Mx3DPointFloat& p_loc, Mx3DPointF
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10072c30
|
||||
// FUNCTION: LEGO1 0x10072c30
|
||||
// FUNCTION: BETA10 0x100160fb
|
||||
MxResult Act3::Create(MxDSAction& p_dsAction)
|
||||
{
|
||||
// TODO
|
||||
return SUCCESS;
|
||||
GameState()->FindLoadedAct();
|
||||
|
||||
MxResult result = LegoWorld::Create(p_dsAction);
|
||||
if (result == SUCCESS) {
|
||||
ControlManager()->Register(this);
|
||||
InputManager()->SetWorld(this);
|
||||
InputManager()->Register(this);
|
||||
|
||||
switch (GameState()->GetLoadedAct()) {
|
||||
case LegoGameState::e_act2:
|
||||
GameState()->StopArea(LegoGameState::e_infomain);
|
||||
GameState()->StopArea(LegoGameState::e_act2main);
|
||||
break;
|
||||
case LegoGameState::e_act3:
|
||||
GameState()->StopArea(LegoGameState::e_infomain);
|
||||
GameState()->StopArea(LegoGameState::e_act3script);
|
||||
break;
|
||||
case LegoGameState::e_act1:
|
||||
case LegoGameState::e_actNotFound:
|
||||
GameState()->StopArea(LegoGameState::e_undefined);
|
||||
if (GameState()->GetPreviousArea() == LegoGameState::e_infomain) {
|
||||
GameState()->StopArea(LegoGameState::e_isle);
|
||||
}
|
||||
}
|
||||
|
||||
LegoGameState* gameState = GameState();
|
||||
Act3State* state = (Act3State*) gameState->GetState("Act3State");
|
||||
|
||||
if (state == NULL) {
|
||||
state = (Act3State*) gameState->CreateState("Act3State");
|
||||
}
|
||||
|
||||
m_state = state;
|
||||
assert(m_state);
|
||||
|
||||
GameState()->m_currentArea = LegoGameState::e_act3script;
|
||||
GameState()->SetCurrentAct(LegoGameState::e_act3);
|
||||
GameState()->SetDirty(TRUE);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10072d50
|
||||
// FUNCTION: LEGO1 0x10072d50
|
||||
// FUNCTION: BETA10 0x1001627f
|
||||
void Act3::Destroy(MxBool p_fromDestructor)
|
||||
{
|
||||
// TODO
|
||||
NavController()->Reset();
|
||||
ControlManager()->Unregister(this);
|
||||
|
||||
if (InputManager()->GetWorld() == this) {
|
||||
InputManager()->ClearWorld();
|
||||
}
|
||||
|
||||
InputManager()->UnRegister(this);
|
||||
|
||||
if (UserActor() != NULL) {
|
||||
if ((IslePathActor*) UserActor() == m_copter) {
|
||||
((IslePathActor*) UserActor())->Exit();
|
||||
}
|
||||
|
||||
Remove(UserActor());
|
||||
}
|
||||
|
||||
if (!p_fromDestructor) {
|
||||
LegoWorld::Destroy(FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10072de0
|
||||
// STUB: BETA10 0x10016322
|
||||
MxLong Act3::Notify(MxParam& p_param)
|
||||
{
|
||||
// TODO
|
||||
return 0;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10073270
|
||||
// FUNCTION: LEGO1 0x10073270
|
||||
void Act3::ReadyWorld()
|
||||
{
|
||||
// TODO
|
||||
PlantManager()->FUN_10027200();
|
||||
BuildingManager()->FUN_10030800();
|
||||
AnimationManager()->FUN_1005f6d0(FALSE);
|
||||
VideoManager()->Get3DManager()->SetFrustrum(90.0f, 0.1f, 125.0f);
|
||||
|
||||
m_unk0x426c = g_unk0x100d95e8[rand() % 3];
|
||||
AnimationManager()->FUN_10060dc0(m_unk0x426c, NULL, TRUE, FALSE, NULL, TRUE, FALSE, FALSE, FALSE);
|
||||
|
||||
m_state->m_unk0x08 = 1;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10073300
|
||||
// FUNCTION: LEGO1 0x10073300
|
||||
MxResult Act3::Tickle()
|
||||
{
|
||||
// TODO
|
||||
if (!m_worldStarted) {
|
||||
LegoWorld::Tickle();
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
if (m_unk0x426c != (Act3Script::Script) 0) {
|
||||
if (AnimationManager()->FUN_10064ee0(m_unk0x426c)) {
|
||||
FUN_10015820(FALSE, LegoOmni::c_disableInput | LegoOmni::c_disable3d | LegoOmni::c_clearScreen);
|
||||
TickleManager()->UnregisterClient(this);
|
||||
m_unk0x426c = (Act3Script::Script) 0;
|
||||
}
|
||||
}
|
||||
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10073400
|
||||
// FUNCTION: LEGO1 0x10073400
|
||||
void Act3::FUN_10073400()
|
||||
{
|
||||
m_state->m_unk0x08 = 2;
|
||||
m_destLocation = LegoGameState::e_infomain;
|
||||
TransitionManager()->StartTransition(MxTransitionManager::e_mosaic, 50, FALSE, FALSE);
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10073430
|
||||
// FUNCTION: LEGO1 0x10073430
|
||||
void Act3::FUN_10073430()
|
||||
{
|
||||
m_state->m_unk0x08 = 3;
|
||||
m_destLocation = LegoGameState::e_infomain;
|
||||
TransitionManager()->StartTransition(MxTransitionManager::e_mosaic, 50, FALSE, FALSE);
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10073a90
|
||||
@@ -104,15 +210,18 @@ void Act3::Enable(MxBool p_enable)
|
||||
// TODO
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10073e40
|
||||
// FUNCTION: LEGO1 0x10073e40
|
||||
void Act3::VTable0x60()
|
||||
{
|
||||
// TODO
|
||||
// empty
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10073e50
|
||||
// FUNCTION: LEGO1 0x10073e50
|
||||
MxBool Act3::Escape()
|
||||
{
|
||||
// TODO
|
||||
return FALSE;
|
||||
BackgroundAudioManager()->Stop();
|
||||
AnimationManager()->FUN_10061010(FALSE);
|
||||
DeleteObjects(&m_atomId, Act3Script::c_tlp053in_RunAnim, 999);
|
||||
m_destLocation = LegoGameState::e_infomain;
|
||||
return TRUE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user