prime/include/MetroidPrime/Player/CPlayerEnergyDrain.hpp

39 lines
1000 B
C++
Raw Normal View History

#ifndef _CPLAYERENERGYDRAIN
#define _CPLAYERENERGYDRAIN
#include "types.h"
#include "MetroidPrime/TGameTypes.hpp"
#include "rstl/vector.hpp"
class CEnergyDrainSource {
public:
CEnergyDrainSource(TUniqueId src, float intensity);
TUniqueId GetEnergyDrainSourceId() const { return x0_source; }
void SetEnergyDrainIntensity(float in) { x4_intensity = in; }
float GetEnergyDrainIntensity() const { return x4_intensity; }
private:
TUniqueId x0_source;
float x4_intensity;
};
class CPlayerEnergyDrain {
2024-09-26 05:54:05 +00:00
public:
CPlayerEnergyDrain(uint numSources);
void AddEnergyDrainSource(TUniqueId id, float intensity);
void RemoveEnergyDrainSource(TUniqueId id);
float GetEnergyDrainIntensity() const;
float GetEnergyDrainTime() const { return x10_energyDrainTime; }
void ProcessEnergyDrain(const CStateManager& mgr, float dt);
private:
rstl::vector< CEnergyDrainSource > x0_sources;
float x10_energyDrainTime;
};
CHECK_SIZEOF(CPlayerEnergyDrain, 0x14)
#endif // _CPLAYERENERGYDRAIN