This commit is contained in:
aozhiwei 2021-03-18 13:46:14 +08:00
parent 091526aa32
commit e2ec2e8a83
2 changed files with 11 additions and 5 deletions

View File

@ -5,6 +5,12 @@
#include "cs_proto.pb.h"
namespace MetaData
{
class Skill;
}
struct xtimer_list;
class Creature : public MoveableEntity
{
public:
@ -38,6 +44,11 @@ protected:
int skill_target_id_ = 0;
a8::Vec2 skill_target_pos_;
long long last_use_skill_frameno_ = 0;
a8::XTimerAttacher skill_xtimer_attacher_;
MetaData::Skill* skill_meta_ = nullptr;
std::map<MetaData::Skill*, xtimer_list*> passive_skill_metas_;
private:
virtual void AddBuffPostProc(Creature* caster, Buff* buff);

View File

@ -332,7 +332,6 @@ private:
protected:
int level_ = 0;
int exp_ = 0;
long long last_use_skill_frameno_ = 0;
long long hide_frameno_ = 0;
long long accelerate_frameno_ = 0;
long long damageadd_frameno_ = 0;
@ -341,7 +340,6 @@ protected:
long long reflect_damage_frameno_ = 0;
long long summon_hero_frameno_ = 0;
long long last_sync_teamdata_frameno_ = 0;
a8::XTimerAttacher skill_xtimer_attacher_;
bool leave_ = false;
long long leave_frameno_ = 0;
@ -374,9 +372,6 @@ protected:
Car* car_ = nullptr;
int seat_ = 0;
MetaData::Skill* skill_meta_ = nullptr;
std::map<MetaData::Skill*, xtimer_list*> passive_skill_metas_;
private:
RaceType_e race_ = kHumanRace;
CircleCollider* self_collider_ = nullptr;