This commit is contained in:
aozhiwei 2022-12-06 14:28:12 +08:00
parent 5b36619f6a
commit 906c0a1127
2 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,11 @@ State_e AndroidAgent::GetState()
return kPreBattle;
}
bool AndroidAgent::IsGameOver()
{
return GetOwner()->room->IsGameOver();
}
behaviac::EBTStatus AndroidAgent::DoIdle(int min_time, int max_time)
{
if (status_ == behaviac::BT_RUNNING) {

View File

@ -14,6 +14,7 @@ public:
BEHAVIAC_DECLARE_AGENTTYPE(AndroidAgent, behaviac::Agent)
State_e GetState();
bool IsGameOver();
behaviac::EBTStatus DoIdle(int min_time, int max_time);
behaviac::EBTStatus DoRandomWalk();