SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
PlayerSeArea.cpp
1#include "Game/AreaObj/PlayerSeArea.hpp"
2
3PlayerSeArea::PlayerSeArea(int type, const char *pName) : AreaObj(type, pName) {
4
5}
6
7PlayerSeArea::~PlayerSeArea() {
8
9}
10
11void PlayerSeArea::init(const JMapInfoIter &rIter) {
12 AreaObj::init(rIter);
13 MR::connectToSceneAreaObj(this);
14 _3C = mObjArg0;
15}
16
17void PlayerSeArea::movement() {
18 if (!isInVolume(*MR::getPlayerPos()) || _3C != 0) {
19 return;
20 }
21
22 if (!MR::isPlayerJumpRising()) {
23 MR::startLevelSoundPlayer("SE_PM_LV_LONG_FALL", -1);
24 }
25}
26
27const char *PlayerSeArea::getManagerName() const {
28 return "PlayerSeArea";
29}
virtual void init(const JMapInfoIter &)
Intializes the NameObj and can set various settings and construct necessary classes.
Definition AreaObj.cpp:41
virtual void init(const JMapInfoIter &)
Intializes the NameObj and can set various settings and construct necessary classes.