2023-06-29 04:10:08 -04:00
|
|
|
#ifndef ISLE_H
|
|
|
|
#define ISLE_H
|
|
|
|
|
2024-03-19 15:54:13 -04:00
|
|
|
#include "actionsfwd.h"
|
2024-03-16 14:20:44 -04:00
|
|
|
#include "legogamestate.h"
|
2024-11-03 13:06:09 -05:00
|
|
|
#include "legonamedplane.h"
|
2024-06-03 12:53:25 -04:00
|
|
|
#include "legostate.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "legoworld.h"
|
2023-12-14 18:24:21 -05:00
|
|
|
#include "radio.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-15 18:11:34 -05:00
|
|
|
class Ambulance;
|
|
|
|
class Bike;
|
|
|
|
class DuneBuggy;
|
2024-05-24 21:23:41 -04:00
|
|
|
class Helicopter;
|
|
|
|
class Jetski;
|
|
|
|
class JukeBoxEntity;
|
2024-06-03 12:53:25 -04:00
|
|
|
class LegoNamedTexture;
|
2024-01-14 17:00:03 -05:00
|
|
|
class Motocycle;
|
2024-06-16 10:47:53 -04:00
|
|
|
class LegoPathStructNotificationParam;
|
2024-05-24 21:23:41 -04:00
|
|
|
class Pizza;
|
|
|
|
class Pizzeria;
|
2023-12-15 18:11:34 -05:00
|
|
|
class RaceCar;
|
2024-05-24 21:23:41 -04:00
|
|
|
class SkateBoard;
|
|
|
|
class TowTrack;
|
2023-12-15 18:11:34 -05:00
|
|
|
|
2024-06-03 12:53:25 -04:00
|
|
|
// VTABLE: LEGO1 0x100d7028
|
|
|
|
// SIZE 0x26c
|
|
|
|
class Act1State : public LegoState {
|
|
|
|
public:
|
|
|
|
enum ElevatorFloor {
|
|
|
|
c_floor1 = 1,
|
|
|
|
c_floor2,
|
|
|
|
c_floor3
|
|
|
|
};
|
|
|
|
|
|
|
|
Act1State();
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x100338a0
|
2024-07-04 19:06:32 -04:00
|
|
|
const char* ClassName() const override // vtable+0x0c
|
2024-06-03 12:53:25 -04:00
|
|
|
{
|
|
|
|
// STRING: LEGO1 0x100f0154
|
|
|
|
return "Act1State";
|
|
|
|
}
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x100338b0
|
2024-07-04 19:06:32 -04:00
|
|
|
MxBool IsA(const char* p_name) const override // vtable+0x10
|
2024-06-03 12:53:25 -04:00
|
|
|
{
|
|
|
|
return !strcmp(p_name, Act1State::ClassName()) || LegoState::IsA(p_name);
|
|
|
|
}
|
|
|
|
|
2024-11-03 13:06:09 -05:00
|
|
|
MxBool Reset() override; // vtable+0x18
|
2024-06-14 17:24:34 -04:00
|
|
|
MxResult Serialize(LegoFile* p_file) override; // vtable+0x1c
|
2024-06-03 12:53:25 -04:00
|
|
|
|
2024-11-03 11:59:21 -05:00
|
|
|
void PlayCptClickDialogue();
|
|
|
|
void StopCptClickDialogue();
|
2024-11-03 13:06:09 -05:00
|
|
|
void RemoveActors();
|
2024-06-03 12:53:25 -04:00
|
|
|
void FUN_10034d00();
|
|
|
|
|
2024-07-04 19:06:32 -04:00
|
|
|
MxU32 GetUnknown18() { return m_unk0x018; }
|
|
|
|
ElevatorFloor GetElevatorFloor() { return (ElevatorFloor) m_elevFloor; }
|
|
|
|
MxU8 GetUnknown21() { return m_unk0x021; }
|
2024-06-03 12:53:25 -04:00
|
|
|
|
2024-07-04 19:06:32 -04:00
|
|
|
void SetUnknown18(MxU32 p_unk0x18) { m_unk0x018 = p_unk0x18; }
|
|
|
|
void SetElevatorFloor(ElevatorFloor p_elevFloor) { m_elevFloor = p_elevFloor; }
|
|
|
|
void SetUnknown21(MxU8 p_unk0x21) { m_unk0x021 = p_unk0x21; }
|
2024-06-03 12:53:25 -04:00
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x10033960
|
|
|
|
// Act1State::`scalar deleting destructor'
|
|
|
|
|
|
|
|
// TODO: Most likely getters/setters are not used according to BETA.
|
|
|
|
|
2024-11-03 11:59:21 -05:00
|
|
|
Playlist m_cptClickDialogue; // 0x008
|
|
|
|
IsleScript::Script m_currentCptClickDialogue; // 0x014
|
|
|
|
MxU32 m_unk0x018; // 0x018
|
|
|
|
MxS16 m_elevFloor; // 0x01c
|
|
|
|
MxBool m_unk0x01e; // 0x01e
|
|
|
|
MxBool m_unk0x01f; // 0x01f
|
|
|
|
MxBool m_planeActive; // 0x020
|
|
|
|
undefined m_unk0x021; // 0x021
|
|
|
|
MxBool m_unk0x022; // 0x022
|
|
|
|
undefined m_unk0x023; // 0x023
|
2024-11-03 13:06:09 -05:00
|
|
|
LegoNamedPlane m_motocyclePlane; // 0x024
|
|
|
|
LegoNamedPlane m_bikePlane; // 0x070
|
|
|
|
LegoNamedPlane m_skateboardPlane; // 0x0bc
|
|
|
|
LegoNamedPlane m_helicopterPlane; // 0x108
|
2024-11-03 11:59:21 -05:00
|
|
|
LegoNamedTexture* m_unk0x154; // 0x154
|
|
|
|
LegoNamedTexture* m_unk0x158; // 0x158
|
|
|
|
LegoNamedTexture* m_unk0x15c; // 0x15c
|
|
|
|
Helicopter* m_helicopter; // 0x160
|
2024-11-03 13:06:09 -05:00
|
|
|
LegoNamedPlane m_jetskiPlane; // 0x164
|
2024-11-03 11:59:21 -05:00
|
|
|
LegoNamedTexture* m_unk0x1b0; // 0x1b0
|
|
|
|
LegoNamedTexture* m_unk0x1b4; // 0x1b4
|
|
|
|
Jetski* m_jetski; // 0x1b8
|
2024-11-03 13:06:09 -05:00
|
|
|
LegoNamedPlane m_dunebuggyPlane; // 0x1bc
|
2024-11-03 11:59:21 -05:00
|
|
|
LegoNamedTexture* m_unk0x208; // 0x208
|
|
|
|
DuneBuggy* m_dunebuggy; // 0x20c
|
2024-11-03 13:06:09 -05:00
|
|
|
LegoNamedPlane m_racecarPlane; // 0x210
|
2024-11-03 11:59:21 -05:00
|
|
|
LegoNamedTexture* m_unk0x25c; // 0x25c
|
|
|
|
LegoNamedTexture* m_unk0x260; // 0x260
|
|
|
|
LegoNamedTexture* m_unk0x264; // 0x264
|
|
|
|
RaceCar* m_racecar; // 0x268
|
2024-06-03 12:53:25 -04:00
|
|
|
};
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d6fb8
|
2023-06-29 04:10:08 -04:00
|
|
|
// SIZE 0x140
|
2023-10-24 19:38:27 -04:00
|
|
|
class Isle : public LegoWorld {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2024-03-16 14:20:44 -04:00
|
|
|
enum {
|
2024-05-22 14:09:06 -04:00
|
|
|
c_playCamAnims = 0x20,
|
|
|
|
c_playMusic = 0x40
|
2024-03-16 14:20:44 -04:00
|
|
|
};
|
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
Isle();
|
2024-02-01 15:42:10 -05:00
|
|
|
~Isle() override;
|
2024-03-15 20:43:45 -04:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
MxLong Notify(MxParam& p_param) override; // vtable+0x04
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10030910
|
2024-07-04 19:06:32 -04:00
|
|
|
const char* ClassName() const override // vtable+0x0c
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-27 15:59:42 -05:00
|
|
|
// STRING: LEGO1 0x100f0458
|
2023-10-24 19:38:27 -04:00
|
|
|
return "Isle";
|
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10030920
|
2024-07-04 19:06:32 -04:00
|
|
|
MxBool IsA(const char* p_name) const override // vtable+0x10
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-13 05:48:14 -05:00
|
|
|
return !strcmp(p_name, Isle::ClassName()) || LegoWorld::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2023-12-16 11:01:22 -05:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
MxResult Create(MxDSAction& p_dsAction) override; // vtable+0x18
|
|
|
|
void ReadyWorld() override; // vtable+50
|
|
|
|
void Add(MxCore* p_object) override; // vtable+58
|
2024-03-15 20:43:45 -04:00
|
|
|
|
2023-12-15 18:11:34 -05:00
|
|
|
// FUNCTION: LEGO1 0x10030900
|
2024-02-01 15:42:10 -05:00
|
|
|
MxBool VTable0x5c() override { return TRUE; } // vtable+5c
|
2024-03-15 20:43:45 -04:00
|
|
|
|
2023-12-15 18:11:34 -05:00
|
|
|
// FUNCTION: LEGO1 0x10033170
|
2024-03-15 20:43:45 -04:00
|
|
|
void VTable0x60() override {} // vtable+60
|
|
|
|
|
2024-05-24 20:41:57 -04:00
|
|
|
MxBool Escape() override; // vtable+64
|
2024-02-02 12:18:46 -05:00
|
|
|
void Enable(MxBool p_enable) override; // vtable+68
|
2024-05-24 13:07:45 -04:00
|
|
|
virtual void VTable0x6c(LegoPathActor* p_actor); // vtable+6c
|
2023-12-15 18:11:34 -05:00
|
|
|
|
2024-07-04 19:06:32 -04:00
|
|
|
void SetDestLocation(LegoGameState::Area p_destLocation) { m_destLocation = p_destLocation; }
|
2024-11-01 16:13:43 -04:00
|
|
|
MxBool HasHelicopter() { return m_helicopter != NULL; }
|
2024-05-24 13:16:04 -04:00
|
|
|
|
|
|
|
void FUN_10033350();
|
|
|
|
|
2024-11-03 13:06:09 -05:00
|
|
|
friend class Act1State;
|
|
|
|
|
2024-05-24 13:16:04 -04:00
|
|
|
// SYNTHETIC: LEGO1 0x10030a30
|
|
|
|
// Isle::`scalar deleting destructor'
|
|
|
|
|
|
|
|
protected:
|
2024-03-18 15:00:58 -04:00
|
|
|
MxLong HandleEndAction(MxEndActionNotificationParam& p_param);
|
2024-06-16 10:47:53 -04:00
|
|
|
MxLong HandleControl(LegoControlManagerNotificationParam& p_param);
|
|
|
|
MxLong HandlePathStruct(LegoPathStructNotificationParam& p_param);
|
2023-12-16 11:01:22 -05:00
|
|
|
MxLong HandleTransitionEnd();
|
2024-03-18 15:00:58 -04:00
|
|
|
void HandleElevatorEndAction();
|
2024-05-24 13:16:04 -04:00
|
|
|
void UpdateGlobe();
|
2024-01-13 15:42:09 -05:00
|
|
|
void FUN_10032620();
|
2024-05-24 14:07:36 -04:00
|
|
|
void CreateState();
|
2024-03-17 13:01:47 -04:00
|
|
|
void FUN_10032d30(
|
|
|
|
IsleScript::Script p_script,
|
|
|
|
JukeboxScript::Script p_music,
|
|
|
|
const char* p_cameraLocation,
|
|
|
|
MxBool p_und
|
|
|
|
);
|
2023-12-16 11:01:22 -05:00
|
|
|
|
2024-03-17 13:01:47 -04:00
|
|
|
Act1State* m_act1state; // 0xf8
|
|
|
|
Pizza* m_pizza; // 0xfc
|
|
|
|
Pizzeria* m_pizzeria; // 0x100
|
|
|
|
TowTrack* m_towtrack; // 0x104
|
|
|
|
Ambulance* m_ambulance; // 0x108
|
|
|
|
JukeBoxEntity* m_jukebox; // 0x10c
|
|
|
|
Helicopter* m_helicopter; // 0x110
|
|
|
|
Bike* m_bike; // 0x114
|
|
|
|
DuneBuggy* m_dunebuggy; // 0x118
|
|
|
|
Motocycle* m_motocycle; // 0x11c
|
|
|
|
SkateBoard* m_skateboard; // 0x120
|
|
|
|
RaceCar* m_racecar; // 0x124
|
|
|
|
Jetski* m_jetski; // 0x128
|
|
|
|
Radio m_radio; // 0x12c
|
|
|
|
LegoGameState::Area m_destLocation; // 0x13c
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ISLE_H
|