mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-21 07:11:16 +00:00
Cast LegoWorld* to Act3*
This commit is contained in:
parent
717db3a93f
commit
fc01b3c93e
@ -1,9 +1,10 @@
|
|||||||
#ifndef ACT3COP_H
|
#ifndef ACT3COP_H
|
||||||
#define ACT3COP_H
|
#define ACT3COP_H
|
||||||
|
|
||||||
#include "act3.h"
|
|
||||||
#include "act3actors.h"
|
#include "act3actors.h"
|
||||||
|
|
||||||
|
class LegoWorld;
|
||||||
|
|
||||||
// VTABLE: LEGO1 0x100d7750 LegoPathActor
|
// VTABLE: LEGO1 0x100d7750 LegoPathActor
|
||||||
// VTABLE: LEGO1 0x100d7820 LegoAnimActor
|
// VTABLE: LEGO1 0x100d7820 LegoAnimActor
|
||||||
// SIZE 0x188
|
// SIZE 0x188
|
||||||
@ -27,7 +28,7 @@ class Act3Cop : public Act3Actor {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
MxFloat m_unk0x20; // 0x20
|
MxFloat m_unk0x20; // 0x20
|
||||||
Act3* m_world; // 0x24
|
LegoWorld* m_world; // 0x24
|
||||||
undefined4 m_unk0x24[2]; // 0x28
|
undefined4 m_unk0x24[2]; // 0x28
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
#include "act3cop.h"
|
#include "act3cop.h"
|
||||||
|
|
||||||
|
#include "act3.h"
|
||||||
#include "act3brickster.h"
|
#include "act3brickster.h"
|
||||||
#include "legocachesoundmanager.h"
|
#include "legocachesoundmanager.h"
|
||||||
#include "legosoundmanager.h"
|
#include "legosoundmanager.h"
|
||||||
@ -28,7 +29,7 @@ MxResult Act3Cop::VTable0x94(LegoPathActor* p_actor, MxBool p_bool)
|
|||||||
}
|
}
|
||||||
|
|
||||||
assert(m_world);
|
assert(m_world);
|
||||||
m_world->EatDonut(count);
|
((Act3*) m_world)->EatDonut(count);
|
||||||
m_unk0x20 = m_lastTime + 2000;
|
m_unk0x20 = m_lastTime + 2000;
|
||||||
SetWorldSpeed(6.0);
|
SetWorldSpeed(6.0);
|
||||||
|
|
||||||
@ -37,13 +38,13 @@ MxResult Act3Cop::VTable0x94(LegoPathActor* p_actor, MxBool p_bool)
|
|||||||
FUN_10040360();
|
FUN_10040360();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (m_world->GetBrickster()->GetROI() != roi) {
|
if (((Act3*) m_world)->GetBrickster()->GetROI() != roi) {
|
||||||
if (p_bool) {
|
if (p_bool) {
|
||||||
return Act3Actor::VTable0x94(p_actor, p_bool);
|
return Act3Actor::VTable0x94(p_actor, p_bool);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
m_world->GoodEnding(roi->GetLocal2World());
|
((Act3*) m_world)->GoodEnding(roi->GetLocal2World());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user