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