2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-09-25 16:45:22 +00:00
|
|
|
|
2019-09-23 19:00:23 +00:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
#include "Runtime/World/CEnergyDrainSource.hpp"
|
2016-09-25 16:45:22 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2016-09-25 16:45:22 +00:00
|
|
|
class CStateManager;
|
2018-12-08 05:30:43 +00:00
|
|
|
class CPlayerEnergyDrain {
|
|
|
|
std::vector<CEnergyDrainSource> x0_sources;
|
2020-03-12 13:57:40 +00:00
|
|
|
float x10_energyDrainTime = 0.0f;
|
2016-12-19 18:27:58 +00:00
|
|
|
|
2016-09-25 16:45:22 +00:00
|
|
|
public:
|
2020-03-12 14:01:28 +00:00
|
|
|
explicit CPlayerEnergyDrain(u32 numSources);
|
2018-12-08 05:30:43 +00:00
|
|
|
const std::vector<CEnergyDrainSource>& GetEnergyDrainSources() const { return x0_sources; }
|
|
|
|
void AddEnergyDrainSource(TUniqueId, float);
|
|
|
|
void RemoveEnergyDrainSource(TUniqueId id);
|
|
|
|
float GetEnergyDrainIntensity() const;
|
|
|
|
float GetEnergyDrainTime() const { return x10_energyDrainTime; }
|
|
|
|
void ProcessEnergyDrain(const CStateManager&, float);
|
2016-09-25 16:45:22 +00:00
|
|
|
};
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|