This commit is contained in:
aozhiwei 2023-10-21 18:04:17 +08:00
parent 0764bba1b2
commit 2b021debe3
2 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,7 @@
#include "precompile.h" #include "precompile.h"
#include <f8/btmgr.h>
#include "room_agent.h" #include "room_agent.h"
#include "room.h" #include "room.h"
@ -13,6 +15,11 @@ RoomAgent::~RoomAgent()
{ {
} }
void RoomAgent::Exec()
{
behaviac::EBTStatus status = f8::BtMgr::Instance()->BtExec(this);
}
int RoomAgent::GetMapId() int RoomAgent::GetMapId()
{ {
return room_->GetMapMeta()->map_id(); return room_->GetMapMeta()->map_id();

View File

@ -13,6 +13,8 @@ public:
BEHAVIAC_DECLARE_AGENTTYPE(RoomAgent, BaseAgent) BEHAVIAC_DECLARE_AGENTTYPE(RoomAgent, BaseAgent)
void Exec();
int GetMapId(); int GetMapId();
int GetHumanNum(); int GetHumanNum();
int GetAliveHumanNum(); int GetAliveHumanNum();