mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 08:27:42 +00:00
Prelim CPlayer imps, fix race condition in CGameGlobalObjects
This commit is contained in:
24
Runtime/World/CPlayerEnergyDrain.hpp
Normal file
24
Runtime/World/CPlayerEnergyDrain.hpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef __URDE_CPLAYERENERGYDRAIN_HPP__
|
||||
#define __URDE_CPLAYERENERGYDRAIN_HPP__
|
||||
|
||||
#include "RetroTypes.hpp"
|
||||
#include "CEnergyDrainSource.hpp"
|
||||
|
||||
namespace urde
|
||||
{
|
||||
class CStateManager;
|
||||
class CPlayerEnergyDrain
|
||||
{
|
||||
std::vector<CEnergyDrainSource> x0_sources;
|
||||
float x10_energyDrainTime;
|
||||
public:
|
||||
CPlayerEnergyDrain(u32);
|
||||
const std::vector<CEnergyDrainSource>& GetEnergyDrainSources() const;
|
||||
void AddEnergyDrainSource(TUniqueId, float);
|
||||
void RemoveEnergyDrainSource(TUniqueId id);
|
||||
float GetEnergyDrainIntensity() const;
|
||||
float GetEnergyDrainTime() const;
|
||||
void ProcessEnergyDrain(const CStateManager&, float);
|
||||
};
|
||||
}
|
||||
#endif // __URDE_CPLAYERENERGYDRAIN_HPP__
|
||||
Reference in New Issue
Block a user