mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-08-10 03:39:06 +00:00
This member function alters instance state in a few implementations, so it shouldn't be made const. The state manager parameter also shouldn't be const. Retrieved data from the post constructed instance is further modified in some implementations. This removes the constness on this parameter in order to fix more const_cast usages in a follow-up change.
40 lines
1.2 KiB
C++
40 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include <optional>
|
|
|
|
#include "Runtime/CToken.hpp"
|
|
#include "Runtime/Weapon/CWeapon.hpp"
|
|
|
|
#include <zeus/CAABox.hpp>
|
|
|
|
namespace urde {
|
|
class CElementGen;
|
|
|
|
class CPowerBomb : public CWeapon {
|
|
bool x158_24_canStartFilter : 1;
|
|
bool x158_25_filterEnabled : 1;
|
|
float x15c_curTime = 0.f;
|
|
float x160_curRadius = 0.f;
|
|
float x164_radiusIncrement;
|
|
std::unique_ptr<CElementGen> x168_particle;
|
|
float x16c_radius;
|
|
|
|
public:
|
|
CPowerBomb(const TToken<CGenDescription>& particle, TUniqueId uid, TAreaId aid, TUniqueId playerId,
|
|
const zeus::CTransform& xf, const CDamageInfo& dInfo);
|
|
|
|
void Accept(IVisitor& visitor) override;
|
|
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) override;
|
|
void Think(float, CStateManager&) override;
|
|
void AddToRenderer(const zeus::CFrustum&, CStateManager&) override;
|
|
void Render(const CStateManager&) const override {}
|
|
std::optional<zeus::CAABox> GetTouchBounds() const override { return std::nullopt; }
|
|
void Touch(CActor&, CStateManager&) override { /*x158_24_canStartFilter; */
|
|
}
|
|
float GetCurTime() const { return x15c_curTime; }
|
|
void ApplyDynamicDamage(const zeus::CVector3f&, CStateManager&);
|
|
};
|
|
|
|
} // namespace urde
|