mirror of
https://github.com/encounter/Petari.git
synced 2026-03-30 11:34:15 -07:00
38 lines
904 B
C++
38 lines
904 B
C++
#pragma once
|
|
|
|
#include "Game/LiveActor/LiveActor.hpp"
|
|
#include "Game/MapObj/MapObjConnector.hpp"
|
|
|
|
class PTimerSwitch : public LiveActor {
|
|
public:
|
|
PTimerSwitch(const char *pName);
|
|
|
|
virtual void init(const JMapInfoIter& rIter);
|
|
virtual void initAfterPlacement();
|
|
virtual void appear();
|
|
virtual void kill();
|
|
virtual void calcAnim();
|
|
virtual void control();
|
|
virtual void calcAndSetBaseMtx();
|
|
virtual bool receiveMsgPlayerAttack(u32 msg, HitSensor *pSender, HitSensor *pReceiver);
|
|
virtual bool receiveOtherMsg(u32 msg, HitSensor *pSender, HitSensor *pReceiver);
|
|
|
|
void reset();
|
|
bool trySwitchDown();
|
|
bool tryOn();
|
|
void exeOff();
|
|
void exeSwitchDown();
|
|
void exeOn();
|
|
|
|
CollisionParts *mSwitchCollision; // 0x8C
|
|
MapObjConnector *mConnector; // 0x90
|
|
s32 _94;
|
|
bool _98;
|
|
};
|
|
|
|
namespace NrvPTimerSwitch {
|
|
NERVE(PTimerSwitchNrvOn);
|
|
NERVE(PTimerSwitchNrvSwitchDown);
|
|
NERVE(PTimerSwitchNrvOff);
|
|
};
|