1
This commit is contained in:
parent
06a3493db2
commit
d0c16bf0b9
@ -1,8 +1,10 @@
|
|||||||
#include "precompile.h"
|
#include "precompile.h"
|
||||||
|
|
||||||
#include "new_hero_agent.h"
|
#include "new_hero_agent.h"
|
||||||
|
|
||||||
#include "hero.h"
|
#include "hero.h"
|
||||||
#include "room.h"
|
#include "room.h"
|
||||||
|
#include "movement.h"
|
||||||
|
|
||||||
HeroAgent::HeroAgent():BaseAgent()
|
HeroAgent::HeroAgent():BaseAgent()
|
||||||
{
|
{
|
||||||
@ -31,25 +33,25 @@ int HeroAgent::GetUniId()
|
|||||||
|
|
||||||
int HeroAgent::GetAgentType()
|
int HeroAgent::GetAgentType()
|
||||||
{
|
{
|
||||||
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HeroAgent::IsMoving()
|
bool HeroAgent::IsMoving()
|
||||||
{
|
{
|
||||||
|
return owner_->GetMovement()->GetPathSize() > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
const glm::vec3 HeroAgent::GetPos()
|
glm::vec3 HeroAgent::GetPos()
|
||||||
{
|
{
|
||||||
|
return owner_->GetPos().ToGlmVec3();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HeroAgent::IsDead()
|
bool HeroAgent::IsDead()
|
||||||
{
|
{
|
||||||
|
return owner_->dead;
|
||||||
}
|
}
|
||||||
|
|
||||||
const glm::vec3 HeroAgent::GetSafeAreaCenter()
|
glm::vec3 HeroAgent::GetSafeAreaCenter()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -139,17 +141,17 @@ void HeroAgent::ShotTrace()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const glm::vec3 HeroAgent::GetRandomDir()
|
glm::vec3 HeroAgent::GetRandomDir()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const glm::vec3 HeroAgent::GetTargetDir()
|
glm::vec3 HeroAgent::GetTargetDir()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const glm::vec3 HeroAgent::RandomPoint(float range)
|
glm::vec3 HeroAgent::RandomPoint(float range)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -20,9 +20,9 @@ public:
|
|||||||
int GetUniId();
|
int GetUniId();
|
||||||
int GetAgentType();
|
int GetAgentType();
|
||||||
bool IsMoving();
|
bool IsMoving();
|
||||||
const glm::vec3 GetPos();
|
glm::vec3 GetPos();
|
||||||
bool IsDead();
|
bool IsDead();
|
||||||
const glm::vec3 GetSafeAreaCenter();
|
glm::vec3 GetSafeAreaCenter();
|
||||||
float GetSafeAreaRadius();
|
float GetSafeAreaRadius();
|
||||||
float GetHp();
|
float GetHp();
|
||||||
float GetMaxHp();
|
float GetMaxHp();
|
||||||
@ -40,9 +40,9 @@ public:
|
|||||||
void SetAttackDir(const glm::vec3& dir);
|
void SetAttackDir(const glm::vec3& dir);
|
||||||
void ShotNormal(const glm::vec3& dir);
|
void ShotNormal(const glm::vec3& dir);
|
||||||
void ShotTrace();
|
void ShotTrace();
|
||||||
const glm::vec3 GetRandomDir();
|
glm::vec3 GetRandomDir();
|
||||||
const glm::vec3 GetTargetDir();
|
glm::vec3 GetTargetDir();
|
||||||
const glm::vec3 RandomPoint(float range);
|
glm::vec3 RandomPoint(float range);
|
||||||
float GetShotRange();
|
float GetShotRange();
|
||||||
void SetV(int id, int val);
|
void SetV(int id, int val);
|
||||||
int GetV(int id);
|
int GetV(int id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user