Player: Implement PlayerJudgeIsNerve (#811)

This commit is contained in:
Aubrey 2025-12-05 06:15:00 -06:00 committed by GitHub
parent 134a091c8b
commit 9fae848080
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 38 additions and 4 deletions

View file

@ -123771,20 +123771,20 @@ Player/PlayerJudgeIsNerve.o:
label:
- _ZN18PlayerJudgeIsNerveC1EPKN2al9IUseNerveEPKNS0_5NerveE
- _ZN18PlayerJudgeIsNerveC2EPKN2al9IUseNerveEPKNS0_5NerveE
status: NotDecompiled
status: Matching
- offset: 0x459fd0
size: 12
label: _ZNK18PlayerJudgeIsNerve5judgeEv
status: NotDecompiled
status: Matching
- offset: 0x459fdc
size: 4
label: _ZN18PlayerJudgeIsNerve5resetEv
status: NotDecompiled
status: Matching
lazy: true
- offset: 0x459fe0
size: 4
label: _ZN18PlayerJudgeIsNerve6updateEv
status: NotDecompiled
status: Matching
lazy: true
Player/PlayerJudgeLongFall.o:
'.text':

View file

@ -0,0 +1,11 @@
#include "Player/PlayerJudgeIsNerve.h"
#include "Library/Nerve/IUseNerve.h"
#include "Library/Nerve/NerveUtil.h"
PlayerJudgeIsNerve::PlayerJudgeIsNerve(const al::IUseNerve* nerveUser, const al::Nerve* nerve)
: mNerveUser(nerveUser), mNerve(nerve) {}
bool PlayerJudgeIsNerve::judge() const {
return al::isNerve(mNerveUser, mNerve);
}

View file

@ -0,0 +1,23 @@
#pragma once
#include "Player/IJudge.h"
namespace al {
class IUseNerve;
class Nerve;
} // namespace al
class PlayerJudgeIsNerve : public IJudge {
public:
PlayerJudgeIsNerve(const al::IUseNerve* nerveUser, const al::Nerve* nerve);
bool judge() const override;
void reset() override {}
void update() override {}
private:
const al::IUseNerve* mNerveUser;
const al::Nerve* mNerve;
};