diff --git a/server/gameserver/android_agent.cc b/server/gameserver/android_agent.cc index 6df0ae77..1ddd1c77 100644 --- a/server/gameserver/android_agent.cc +++ b/server/gameserver/android_agent.cc @@ -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; +} diff --git a/server/gameserver/android_agent.h b/server/gameserver/android_agent.h index d92d3dec..096e2a47 100644 --- a/server/gameserver/android_agent.h +++ b/server/gameserver/android_agent.h @@ -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;