metaforce/Runtime/World/CPlayerEnergyDrain.hpp

24 lines
666 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
#include <vector>
#include "Runtime/RetroTypes.hpp"
#include "Runtime/World/CEnergyDrainSource.hpp"
2018-12-08 05:30:43 +00:00
namespace urde {
class CStateManager;
2018-12-08 05:30:43 +00:00
class CPlayerEnergyDrain {
std::vector<CEnergyDrainSource> x0_sources;
float x10_energyDrainTime;
public:
2018-12-08 05:30:43 +00:00
CPlayerEnergyDrain(u32);
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);
};
2018-12-08 05:30:43 +00:00
} // namespace urde