2023-04-27 22:19:39 -04:00
|
|
|
#ifndef MXTRANSITIONMANAGER_H
|
|
|
|
#define MXTRANSITIONMANAGER_H
|
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
#include "legoomni.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "mxcore.h"
|
2023-09-29 12:09:46 -04:00
|
|
|
#include "mxvideopresenter.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-10-07 11:30:04 -04:00
|
|
|
#include <ddraw.h>
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d7ea0
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxTransitionManager : public MxCore {
|
2023-04-27 22:19:39 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
MxTransitionManager();
|
|
|
|
virtual ~MxTransitionManager() override; // vtable+0x0
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
__declspec(dllexport) void SetWaitIndicator(MxVideoPresenter* p_waitIndicator);
|
2023-09-29 12:09:46 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
virtual MxResult Tickle(); // vtable+0x8
|
2023-09-29 12:09:46 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1004b950
|
2023-10-24 19:38:27 -04:00
|
|
|
inline virtual const char* ClassName() const override // vtable+0x0c
|
|
|
|
{
|
|
|
|
return "MxTransitionManager";
|
|
|
|
}
|
2023-09-29 12:09:46 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1004b960
|
2023-12-13 05:48:14 -05:00
|
|
|
inline virtual 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, MxTransitionManager::ClassName()) || MxCore::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2023-09-29 12:09:46 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
virtual MxResult GetDDrawSurfaceFromVideoManager(); // vtable+0x14
|
2023-09-29 12:09:46 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
enum TransitionType {
|
2024-01-17 11:53:53 -05:00
|
|
|
e_notTransitioning = 0,
|
|
|
|
e_noAnimation,
|
|
|
|
e_dissolve,
|
|
|
|
e_pixelation,
|
|
|
|
e_screenWipe,
|
|
|
|
e_windows,
|
|
|
|
e_broken // Unknown what this is supposed to be, it locks the game up
|
2023-10-24 19:38:27 -04:00
|
|
|
};
|
2023-09-29 12:09:46 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
MxResult StartTransition(TransitionType p_animationType, MxS32 p_speed, MxBool p_doCopy, MxBool p_playMusicInAnim);
|
2023-10-05 18:51:34 -04:00
|
|
|
|
2024-01-06 12:06:50 -05:00
|
|
|
inline TransitionType GetTransitionType() { return m_transitionType; }
|
|
|
|
|
2023-09-29 12:09:46 -04:00
|
|
|
private:
|
2023-10-24 19:38:27 -04:00
|
|
|
void EndTransition(MxBool p_notifyWorld);
|
2023-12-13 05:48:14 -05:00
|
|
|
void TransitionNone();
|
|
|
|
void TransitionDissolve();
|
|
|
|
void TransitionPixelation();
|
|
|
|
void TransitionWipe();
|
|
|
|
void TransitionWindows();
|
|
|
|
void TransitionBroken();
|
2023-10-24 19:38:27 -04:00
|
|
|
|
2023-12-13 05:48:14 -05:00
|
|
|
void SubmitCopyRect(LPDDSURFACEDESC p_ddsc);
|
|
|
|
void SetupCopyRect(LPDDSURFACEDESC p_ddsc);
|
2023-10-24 19:38:27 -04:00
|
|
|
|
2024-01-06 12:06:50 -05:00
|
|
|
MxVideoPresenter* m_waitIndicator; // 0x08
|
|
|
|
RECT m_copyRect; // 0x0c
|
|
|
|
MxU8* m_copyBuffer; // 0x1c
|
|
|
|
FlagBitfield m_copyFlags; // 0x20
|
|
|
|
undefined4 m_unk0x24; // 0x24
|
|
|
|
FlagBitfield m_unk0x28; // 0x28
|
|
|
|
TransitionType m_transitionType; // 0x2c
|
|
|
|
LPDIRECTDRAWSURFACE m_ddSurface; // 0x30
|
|
|
|
MxU16 m_animationTimer; // 0x34
|
|
|
|
MxU16 m_columnOrder[640]; // 0x36
|
|
|
|
MxU16 m_randomShift[480]; // 0x536
|
|
|
|
MxULong m_systemTime; // 0x8f8
|
|
|
|
MxS32 m_animationSpeed; // 0x8fc
|
2023-04-27 22:19:39 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXTRANSITIONMANAGER_H
|