1
This commit is contained in:
parent
4bb0317e9d
commit
b2629f522c
@ -9,7 +9,11 @@
|
|||||||
|
|
||||||
Android::Android():Human()
|
Android::Android():Human()
|
||||||
{
|
{
|
||||||
|
#if 1
|
||||||
|
ai = new AndroidNewAI;
|
||||||
|
#else
|
||||||
ai = new AndroidAI;
|
ai = new AndroidAI;
|
||||||
|
#endif
|
||||||
ai->owner = this;
|
ai->owner = this;
|
||||||
#if 0
|
#if 0
|
||||||
++PerfMonitor::Instance()->entity_num[ET_Android];
|
++PerfMonitor::Instance()->entity_num[ET_Android];
|
||||||
|
@ -8,10 +8,15 @@ namespace MetaData
|
|||||||
}
|
}
|
||||||
|
|
||||||
class AndroidAI;
|
class AndroidAI;
|
||||||
|
class AndroidNewAI;
|
||||||
class Android : public Human
|
class Android : public Human
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
#if 1
|
||||||
|
AndroidNewAI* ai = nullptr;
|
||||||
|
#else
|
||||||
AndroidAI* ai = nullptr;
|
AndroidAI* ai = nullptr;
|
||||||
|
#endif
|
||||||
MetaData::Robot* robot_meta = nullptr;
|
MetaData::Robot* robot_meta = nullptr;
|
||||||
|
|
||||||
virtual ~Android() override;
|
virtual ~Android() override;
|
||||||
|
@ -401,6 +401,12 @@ void AndroidNewAI::UpdateNewAI()
|
|||||||
if (a8::HasBitFlag(hum->status, HS_Disable)) {
|
if (a8::HasBitFlag(hum->status, HS_Disable)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!ai_meta && GetAiLevel() != 0) {
|
||||||
|
ai_meta = MetaMgr::Instance()->GetAI(GetAiLevel());
|
||||||
|
if (!ai_meta) {
|
||||||
|
abort();
|
||||||
|
}
|
||||||
|
}
|
||||||
++node_.exec_frame_num;
|
++node_.exec_frame_num;
|
||||||
hum->shot_hold = false;
|
hum->shot_hold = false;
|
||||||
switch (node_.main_state) {
|
switch (node_.main_state) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user