prime/include/MetroidPrime/CHealthInfo.hpp

20 lines
451 B
C++
Raw Normal View History

#ifndef _CHEALTHINFO_HPP
#define _CHEALTHINFO_HPP
#include "types.h"
class CHealthInfo {
public:
CHealthInfo(f32 hp, f32 resist) : x0_health(hp), x4_knockbackResistance(resist) {}
void SetHP(float hp) { x0_health = hp; }
void SetKnockbackResistance(float resist) { x4_knockbackResistance = resist; }
float GetHP() const { return x0_health; }
private:
f32 x0_health;
f32 x4_knockbackResistance;
};
CHECK_SIZEOF(CHealthInfo, 0x8)
2022-09-18 06:05:46 +00:00
#endif