2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-09-25 16:45:22 +00:00
|
|
|
|
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
#include "CEnergyDrainSource.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
class CStateManager;
|
|
|
|
class CPlayerEnergyDrain
|
|
|
|
{
|
|
|
|
std::vector<CEnergyDrainSource> x0_sources;
|
|
|
|
float x10_energyDrainTime;
|
2016-12-19 18:27:58 +00:00
|
|
|
|
2016-09-25 16:45:22 +00:00
|
|
|
public:
|
|
|
|
CPlayerEnergyDrain(u32);
|
2017-07-05 18:34:12 +00:00
|
|
|
const std::vector<CEnergyDrainSource>& GetEnergyDrainSources() const { return x0_sources; }
|
2016-09-25 16:45:22 +00:00
|
|
|
void AddEnergyDrainSource(TUniqueId, float);
|
|
|
|
void RemoveEnergyDrainSource(TUniqueId id);
|
|
|
|
float GetEnergyDrainIntensity() const;
|
2017-07-05 18:34:12 +00:00
|
|
|
float GetEnergyDrainTime() const { return x10_energyDrainTime; }
|
2016-09-25 16:45:22 +00:00
|
|
|
void ProcessEnergyDrain(const CStateManager&, float);
|
|
|
|
};
|
|
|
|
}
|