This commit is contained in:
aozhiwei 2023-10-13 17:04:02 +08:00
parent d0c16bf0b9
commit 949c532867
2 changed files with 18 additions and 14 deletions

View File

@ -5,6 +5,9 @@
#include "hero.h"
#include "room.h"
#include "movement.h"
#include "netdata.h"
#include "mt/Hero.h"
HeroAgent::HeroAgent():BaseAgent()
{
@ -53,72 +56,72 @@ bool HeroAgent::IsDead()
glm::vec3 HeroAgent::GetSafeAreaCenter()
{
abort();
}
float HeroAgent::GetSafeAreaRadius()
{
abort();
}
float HeroAgent::GetHp()
{
return owner_->GetHP();
}
float HeroAgent::GetMaxHp()
{
return owner_->GetMaxHP();
}
void HeroAgent::OpenBulletTraceMode()
{
bullet_trace_mode_ = true;
}
void HeroAgent::CloseBulletTraceMode()
{
bullet_trace_mode_ = false;
}
float HeroAgent::CalcDistance(const glm::vec3& target_pos)
{
abort();
}
int HeroAgent::GetHeroId()
{
return owner_->GetHeroMeta()->id();
}
int HeroAgent::GetLevel()
{
return owner_->level;
}
bool HeroAgent::CanShot()
{
abort();
}
bool HeroAgent::CanUseSkill()
{
abort();
}
void HeroAgent::UseSkill(int skill_id)
{
abort();
}
void HeroAgent::SendEmote(int emote)
{
abort();
}
int HeroAgent::GetBattleTimes()
{
return owner_->GetBattleContext()->GetBattleTimes();
}
void HeroAgent::SetMoveDir(const glm::vec3& dir)

View File

@ -91,4 +91,5 @@ public:
private:
Creature* owner_ = nullptr;
bool bullet_trace_mode_ = false;
};