1
This commit is contained in:
parent
3ce06c75c9
commit
9f2ca00d02
@ -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;
|
||||
};
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user