1
This commit is contained in:
parent
1a230fccab
commit
f60a7f84e1
@ -14,7 +14,12 @@ AndroidAgent::~AndroidAgent()
|
||||
|
||||
}
|
||||
|
||||
behaviac::EBTStatus AndroidAgent::DoIdle(int time)
|
||||
State_e AndroidAgent::GetState()
|
||||
{
|
||||
return behaviac::BT_SUCCESS;
|
||||
}
|
||||
|
||||
behaviac::EBTStatus AndroidAgent::DoIdle(int min_time, int max_time)
|
||||
{
|
||||
if (status_ == behaviac::BT_RUNNING) {
|
||||
return status_runing_cb_();
|
||||
@ -39,3 +44,18 @@ behaviac::EBTStatus AndroidAgent::DoIdle(int time)
|
||||
};
|
||||
return behaviac::BT_RUNNING;
|
||||
}
|
||||
|
||||
behaviac::EBTStatus DoRandomWalk()
|
||||
{
|
||||
return behaviac::BT_SUCCESS;
|
||||
}
|
||||
|
||||
behaviac::EBTStatus DoRandomShot()
|
||||
{
|
||||
return behaviac::BT_SUCCESS;
|
||||
}
|
||||
|
||||
behaviac::EBTStatus DoAttack()
|
||||
{
|
||||
return behaviac::BT_SUCCESS;
|
||||
}
|
||||
|
@ -12,12 +12,17 @@ public:
|
||||
|
||||
BEHAVIAC_DECLARE_AGENTTYPE(AndroidAgent, behaviac::Agent)
|
||||
|
||||
State_e GetState();
|
||||
|
||||
behaviac::EBTStatus DoIdle(int min_time, int max_time);
|
||||
behaviac::EBTStatus DoRandomWalk();
|
||||
behaviac::EBTStatus DoRandomShot();
|
||||
behaviac::EBTStatus DoAttack();
|
||||
|
||||
public:
|
||||
void SetOwner(Android* owner) { owner_ = owner; };
|
||||
Android* GetOwner() { return owner_; };
|
||||
|
||||
behaviac::EBTStatus DoIdle(int time);
|
||||
|
||||
private:
|
||||
Android* owner_ = nullptr;
|
||||
behaviac::EBTStatus status_= behaviac::BT_SUCCESS;
|
||||
|
Loading…
x
Reference in New Issue
Block a user