metaforce/Runtime/World/CHealthInfo.hpp

34 lines
659 B
C++
Raw Normal View History

2016-04-25 05:03:38 +00:00
#ifndef __URDE_CHEALTHINFO_HPP__
#define __URDE_CHEALTHINFO_HPP__
2017-02-12 03:17:18 +00:00
#include "Runtime/RetroTypes.hpp"
2016-04-25 05:03:38 +00:00
namespace urde
{
class CHealthInfo
{
float x0_health;
float x4_knockbackResistance;
public:
2016-06-30 19:33:38 +00:00
CHealthInfo(float hp)
: x0_health(hp),
x4_knockbackResistance(0.f)
{
}
CHealthInfo(float hp, float resist)
: x0_health(hp),
x4_knockbackResistance(resist)
{}
2016-04-25 05:03:38 +00:00
CHealthInfo(CInputStream& in);
2016-06-30 19:33:38 +00:00
void SetHP(float hp) { x0_health = hp; }
float GetHP() const {return x0_health;}
2016-04-25 05:03:38 +00:00
float GetKnockbackResistance() const {return x4_knockbackResistance;}
};
}
#endif // __URDE_CHEALTHINFO_HPP__