1
This commit is contained in:
parent
3f1338cc7f
commit
321765334f
@ -16,6 +16,7 @@
|
|||||||
#include "human.h"
|
#include "human.h"
|
||||||
#include "btcoroutine.h"
|
#include "btcoroutine.h"
|
||||||
#include "btcontext.h"
|
#include "btcontext.h"
|
||||||
|
#include "team.h"
|
||||||
|
|
||||||
#include "mt/Hero.h"
|
#include "mt/Hero.h"
|
||||||
#include "mt/Equip.h"
|
#include "mt/Equip.h"
|
||||||
@ -46,8 +47,9 @@ void HeroAgent::Exec()
|
|||||||
|
|
||||||
void HeroAgent::SetOwner(Creature* owner)
|
void HeroAgent::SetOwner(Creature* owner)
|
||||||
{
|
{
|
||||||
room_agent = owner->room->GetRoomAgent();
|
|
||||||
owner_ = owner;
|
owner_ = owner;
|
||||||
|
room_agent = owner_->room->GetRoomAgent();
|
||||||
|
team_agent = owner_->GetTeam()->GetTeamAgent();
|
||||||
}
|
}
|
||||||
|
|
||||||
int HeroAgent::GetUniId()
|
int HeroAgent::GetUniId()
|
||||||
|
@ -60,6 +60,7 @@ class Team
|
|||||||
void IncKillCount();
|
void IncKillCount();
|
||||||
int GetKillCount();
|
int GetKillCount();
|
||||||
long long GetLastKillFrameNo() { return last_kill_frameno_; }
|
long long GetLastKillFrameNo() { return last_kill_frameno_; }
|
||||||
|
TeamAgent* GetTeamAgent() { return team_agent_; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int team_id_ = 0;
|
int team_id_ = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user