SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
IconComet.cpp
1#include "Game/Screen/IconComet.hpp"
2#include "Game/Util/EventUtil.hpp"
3#include "Game/Util/LayoutUtil.hpp"
4
5IconComet::IconComet() : LayoutActor("コメットアイコン", true) {
6
7}
8
9void IconComet::init(const JMapInfoIter &rIter) {
10 initLayoutManager("IconComet", 1);
11 initNerve(&NrvIconComet::IconCometNrvWait::sInstance);
12}
13
14bool IconComet::appearIfLanding(const char *pStageName) {
15 if (!MR::isGalaxyCometLandInStage(pStageName)) {
16 return false;
17 }
18
19 MR::setCometAnimFromId(this, MR::getEncounterGalaxyCometNameId(pStageName), 0);
20 LayoutActor::appear();
21 return true;
22}
23
24void IconComet::appearByCometNameId(int id) {
25 MR::setCometAnimFromId(this, id, 0);
26 LayoutActor::appear();
27}
28
29IconComet::~IconComet() {
30
31}
32
33namespace NrvIconComet {
34 INIT_NERVE(IconCometNrvWait);
35};
virtual void init(const JMapInfoIter &)
Intializes the NameObj and can set various settings and construct necessary classes.
Definition IconComet.cpp:9