1
This commit is contained in:
parent
f60a7f84e1
commit
4eb46ec465
@ -16,7 +16,7 @@ AndroidAgent::~AndroidAgent()
|
|||||||
|
|
||||||
State_e AndroidAgent::GetState()
|
State_e AndroidAgent::GetState()
|
||||||
{
|
{
|
||||||
return behaviac::BT_SUCCESS;
|
return kPreBattle;
|
||||||
}
|
}
|
||||||
|
|
||||||
behaviac::EBTStatus AndroidAgent::DoIdle(int min_time, int max_time)
|
behaviac::EBTStatus AndroidAgent::DoIdle(int min_time, int max_time)
|
||||||
@ -26,7 +26,7 @@ behaviac::EBTStatus AndroidAgent::DoIdle(int min_time, int max_time)
|
|||||||
}
|
}
|
||||||
xtimer_list* timer = GetOwner()->room->xtimer.AddDeadLineTimerAndAttach
|
xtimer_list* timer = GetOwner()->room->xtimer.AddDeadLineTimerAndAttach
|
||||||
(
|
(
|
||||||
time / FRAME_RATE_MS,
|
min_time / FRAME_RATE_MS,
|
||||||
a8::XParams(),
|
a8::XParams(),
|
||||||
[] (const a8::XParams& param)
|
[] (const a8::XParams& param)
|
||||||
{
|
{
|
||||||
@ -45,17 +45,17 @@ behaviac::EBTStatus AndroidAgent::DoIdle(int min_time, int max_time)
|
|||||||
return behaviac::BT_RUNNING;
|
return behaviac::BT_RUNNING;
|
||||||
}
|
}
|
||||||
|
|
||||||
behaviac::EBTStatus DoRandomWalk()
|
behaviac::EBTStatus AndroidAgent::DoRandomWalk()
|
||||||
{
|
{
|
||||||
return behaviac::BT_SUCCESS;
|
return behaviac::BT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
behaviac::EBTStatus DoRandomShot()
|
behaviac::EBTStatus AndroidAgent::DoRandomShot()
|
||||||
{
|
{
|
||||||
return behaviac::BT_SUCCESS;
|
return behaviac::BT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
behaviac::EBTStatus DoAttack()
|
behaviac::EBTStatus AndroidAgent::DoAttack()
|
||||||
{
|
{
|
||||||
return behaviac::BT_SUCCESS;
|
return behaviac::BT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "behaviac_headers.h"
|
#include "behaviac_headers.h"
|
||||||
|
#include "behaviac_customized_types.h"
|
||||||
|
|
||||||
class Android;
|
class Android;
|
||||||
class AndroidAgent : public behaviac::Agent
|
class AndroidAgent : public behaviac::Agent
|
||||||
|
@ -34,7 +34,6 @@
|
|||||||
#include "framework/cpp/tglog.h"
|
#include "framework/cpp/tglog.h"
|
||||||
#include "framework/cpp/httpclientpool.h"
|
#include "framework/cpp/httpclientpool.h"
|
||||||
#include "framework/cpp/btmgr.h"
|
#include "framework/cpp/btmgr.h"
|
||||||
#include "FirstAgent.h"
|
|
||||||
|
|
||||||
#include "collider.h"
|
#include "collider.h"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user