SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
CoconutTree.cpp
1#include "Game/MapObj/CoconutTree.hpp"
2#include "Game/Util.hpp"
3
4CoconutTree::CoconutTree(const char *pName) : LiveActor(pName) {
5
6}
7
8CoconutTree::~CoconutTree() {
9
10}
11
12void CoconutTree::init(const JMapInfoIter &rIter) {
13 MR::initDefaultPos(this, rIter);
14 initModelManagerWithAnm("CoconutTree", nullptr, false);
15 MR::connectToSceneMapObj(this);
16 initHitSensor(1);
17 MR::addBodyMessageSensorMapObj(this);
18 MR::initCollisionParts(this, "CoconutTree", getSensor("body"), nullptr);
19 MR::setClippingTypeSphere(this, 2000.0f);
20 makeActorAppeared();
21}
virtual void init(const JMapInfoIter &)
Intializes the NameObj and can set various settings and construct necessary classes.
The basis of a drawable actor that can contain states (see: Nerve)
Definition LiveActor.hpp:24
HitSensor * getSensor(const char *pSensorName) const
Gets a sensor.