31 lines
524 B
C++
31 lines
524 B
C++
#pragma once
|
|
|
|
#include "new_base_agent.h"
|
|
|
|
class Room;
|
|
class HeroAgent;
|
|
class RoomAgent : public BaseAgent
|
|
{
|
|
public:
|
|
RoomAgent();
|
|
|
|
virtual ~RoomAgent();
|
|
|
|
BEHAVIAC_DECLARE_AGENTTYPE(RoomAgent, BaseAgent)
|
|
|
|
int GetMapId();
|
|
int GetHumanNum();
|
|
int GetAliveHumanNum();
|
|
int GetPlayerNum();
|
|
int GetAlivePlayerNum();
|
|
int GetTeamNum();
|
|
int GetAliveTeamNum();
|
|
HeroAgent* FindHero(int hero_uniid);
|
|
|
|
bool IsGameOver();
|
|
void SetRoom(Room* room);
|
|
|
|
private:
|
|
Room* room_ = nullptr;
|
|
};
|