32 lines
596 B
C++
32 lines
596 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) { room_ = room; }
|
|
virtual Room* GetRoom() override { return room_; }
|
|
|
|
private:
|
|
Room* room_ = nullptr;
|
|
};
|