1#include "Game/NPC/PowerStarEventKeeper.hpp"
2#include "Game/Util.hpp"
4PowerStarEventKeeper::PowerStarEventKeeper() {
8 mPowerStarNum = MR::getCurrentStagePowerStarNum();
39bool PowerStarEventKeeper::isGreen(
const char *pName, s32 starNum)
const {
41 starNum = findStarID(pName);
44 if (!isCorrectStarIdWithBBS(pName,
"ゾーン不明", starNum)) {
48 return MR::isPowerStarGreenInCurrentStage(starNum);
51bool PowerStarEventKeeper::isRed(
const char *pName, s32 starNum)
const {
53 starNum = findStarID(pName);
56 if (!isCorrectStarIdWithBBS(pName,
"ゾーン不明", starNum)) {
60 return MR::isPowerStarRedInCurrentStage(starNum);
63bool PowerStarEventKeeper::isGrand(
const char *pName, s32 starNum)
const {
65 starNum = findStarID(pName);
68 if (!isCorrectStarIdWithBBS(pName,
"ゾーン不明", starNum)) {
72 return MR::isGrandStarInCurrentStage(starNum);
80bool PowerStarEventKeeper::isSuccess(
const char *pName, s32 starNum)
const {
82 starNum = findStarID(pName);
85 if (!isCorrectStarIdWithBBS(pName,
"ゾーン不明", starNum)) {
89 return MR::hasPowerStarInCurrentStage(starNum);