22 lines
465 B
C++
22 lines
465 B
C++
#pragma once
|
|
|
|
#include "weakptr.h"
|
|
|
|
class Ability
|
|
{
|
|
public:
|
|
CreatureWeakPtr owner;
|
|
|
|
void Clear();
|
|
float GetAttrAbs(int attr_id);
|
|
float GetAttrRate(int attr_id);
|
|
float GetBuffAttrAbs(int attr_id);
|
|
float GetBuffAttrRate(int attr_id);
|
|
float* GetBuffAttrAbsPtr(int attr_id);
|
|
float* GetBuffAttrRatePtr(int attr_id);
|
|
|
|
private:
|
|
std::array<float, kHAT_End> buff_attr_abs_ = {};
|
|
std::array<float, kHAT_End> buff_attr_rate_ = {};
|
|
};
|