1
This commit is contained in:
parent
95a2521293
commit
7e1257f192
@ -17,6 +17,7 @@
|
|||||||
#include "team.h"
|
#include "team.h"
|
||||||
#include "master_agent.h"
|
#include "master_agent.h"
|
||||||
#include "team_agent.h"
|
#include "team_agent.h"
|
||||||
|
#include "teammate_agent.h"
|
||||||
#include "skill.h"
|
#include "skill.h"
|
||||||
#include "loot.h"
|
#include "loot.h"
|
||||||
#include "car.h"
|
#include "car.h"
|
||||||
@ -35,6 +36,7 @@ HeroAgent::HeroAgent():BaseAgent()
|
|||||||
current_target_agent = behaviac::Agent::Create<TargetAgent>();
|
current_target_agent = behaviac::Agent::Create<TargetAgent>();
|
||||||
master_agent = behaviac::Agent::Create<MasterAgent>();
|
master_agent = behaviac::Agent::Create<MasterAgent>();
|
||||||
team_agent = behaviac::Agent::Create<TeamAgent>();
|
team_agent = behaviac::Agent::Create<TeamAgent>();
|
||||||
|
current_teammate_agent = behaviac::Agent::Create<TeammateAgent>();
|
||||||
INIT_LIST_HEAD(&coroutines_list_);
|
INIT_LIST_HEAD(&coroutines_list_);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,6 +54,10 @@ HeroAgent::~HeroAgent()
|
|||||||
f8::BtMgr::Instance()->BtDestory(team_agent);
|
f8::BtMgr::Instance()->BtDestory(team_agent);
|
||||||
team_agent = nullptr;
|
team_agent = nullptr;
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
f8::BtMgr::Instance()->BtDestory(current_teammate_agent);
|
||||||
|
current_teammate_agent = nullptr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void HeroAgent::SetOwner(Creature* owner)
|
void HeroAgent::SetOwner(Creature* owner)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user