1#include "Game/LiveActor/MirrorReflectionModel.hpp"
2#include "Game/NameObj/NameObjExecuteHolder.hpp"
4MirrorReflectionModel::MirrorReflectionModel(
const LiveActor *pActor,
const char *pName,
const char *pInternalName, MtxPtr mtx) :
LiveActor(pName) {
12 pos.getTrans(mPosition);
18 mRotation.set(_8C->mRotation);
19 mScale.set(_8C->mScale);
20 initModelManagerWithAnm(pInternalName,
nullptr,
false);
21 MR::connectToSceneMirrorMapObjDecoration(
this);
25 MR::invalidateClipping(
this);
26 MR::registerDemoSimpleCastAll(
this);
31void MirrorReflectionModel::movement() {
32 if (MR::isDead(_8C) || MR::isClipped(_8C) || MR::isHiddenModel(_8C)) {
36 if (!MR::isHiddenModel(
this)) {
37 MR::disconnectToDrawTemporarily(
this);
44 if (!MR::isHiddenModel(
this)) {
45 MR::connectToDrawTemporarily(
this);
49 LiveActor::movement();
53void MirrorReflectionModel::calcAnim() {
55 if (!MR::isDead(
this)) {
56 if (MR::isNoCalcAnim(
this) || MR::isClipped(
this)) {
60 LiveActor::calcAnim();
65void MirrorReflectionModel::calcViewAndEntry() {
67 LiveActor::calcViewAndEntry();
79 MR::setBaseTRMtx(
this, _90);
83MirrorReflectionModel::~MirrorReflectionModel() {
The basis of a drawable actor that can contain states (see: Nerve)
TVec3f mPosition
3D vector of the actor's position.
virtual void calcAndSetBaseMtx()
Calculates and sets the base matrix of the actor.
virtual void init(const JMapInfoIter &)
Intializes the NameObj and can set various settings and construct necessary classes.
virtual void calcAndSetBaseMtx()
Calculates and sets the base matrix of the actor.