This commit is contained in:
aozhiwei 2023-10-13 15:39:53 +08:00
parent 3ce06c75c9
commit 9f2ca00d02
3 changed files with 13 additions and 3 deletions

View File

@ -42,6 +42,7 @@ struct FrameEventData;
class SandTable;
class BatchSync;
class CustomBattle;
class RoomAgent;
struct Plane
{
@ -280,6 +281,7 @@ public:
int GetMobaLeftTime();
Team* GetMobaTeamA() { return moba_team_a_; }
Team* GetMobaTeamB() { return moba_team_b_; }
RoomAgent* GetRoomAgent() { return room_agent_; }
private:
void ShuaAndroid();
@ -438,6 +440,8 @@ private:
Team* moba_team_a_ = nullptr;
Team* moba_team_b_ = nullptr;
RoomAgent* room_agent_ = nullptr;
friend class Incubator;
friend class Team;
};

View File

@ -1,6 +1,7 @@
#include "precompile.h"
#include "room_agent.h"
#include "room.h"
RoomAgent::RoomAgent():BaseAgent()
{
@ -46,12 +47,13 @@ int RoomAgent::GetAliveTeamNum()
return 0;
}
/*
HeroAgent* RoomAgent::FindHero(int hero_uniid)
{
return nullptr;
}
}*/
bool RoomAgent::IsGameOver()
{
return room_->IsGameOver();
}

View File

@ -2,6 +2,7 @@
#include "new_base_agent.h"
class Room;
class HeroAgent;
class RoomAgent : public BaseAgent
{
@ -19,7 +20,10 @@ public:
int GetAlivePlayerNum();
int GetTeamNum();
int GetAliveTeamNum();
HeroAgent* FindHero(int hero_uniid);
//HeroAgent* FindHero(int hero_uniid);
bool IsGameOver();
private:
Room* room_ = nullptr;
};