metaforce/Runtime/World/CHealthInfo.hpp

32 lines
571 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2016-04-25 05:03:38 +00:00
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;}
};
}