prime/include/MetroidPrime/Player/CStaticInterference.hpp

32 lines
624 B
C++

#ifndef _CSTATICINTERFERENCE
#define _CSTATICINTERFERENCE
#include "types.h"
#include "MetroidPrime/TGameTypes.hpp"
#include "rstl/vector.hpp"
struct CStaticInterferenceSource {
TUniqueId x0_id;
float x4_magnitude;
float x8_timeLeft;
};
class CStateManager;
class CStaticInterference {
public:
CStaticInterference(int sourceCount);
void AddSource(TUniqueId id, float magnitude, float duration);
void RemoveSource(TUniqueId id);
void Update(CStateManager&, float dt);
float GetTotalInterference() const;
private:
rstl::vector< CStaticInterferenceSource > sources;
};
#endif // _CSTATICINTERFERENCE