prime/include/MetroidPrime/CHealthInfo.hpp

23 lines
527 B
C++
Raw Normal View History

#ifndef _CHEALTHINFO
#define _CHEALTHINFO
#include "types.h"
2022-10-13 22:37:09 +00:00
class CInputStream;
class CHealthInfo {
public:
CHealthInfo(float hp, float resist) : x0_health(hp), x4_knockbackResistance(resist) {}
2022-10-13 22:37:09 +00:00
explicit CHealthInfo(CInputStream&);
void SetHP(float hp) { x0_health = hp; }
void SetKnockbackResistance(float resist) { x4_knockbackResistance = resist; }
float GetHP() const { return x0_health; }
private:
float x0_health;
float x4_knockbackResistance;
};
CHECK_SIZEOF(CHealthInfo, 0x8)
#endif // _CHEALTHINFO