删除无用文件

This commit is contained in:
aozhiwei 2019-04-18 15:43:54 +08:00
parent 1190220869
commit ecf2a326d3
9 changed files with 9 additions and 0 deletions

View File

@ -83,6 +83,10 @@ void AndroidAI::ChangeToState(AndroidState_e to_state)
void AndroidAI::DoMove()
{
Human* hum = (Human*)owner;
if (a8::HasBitFlag(hum->status, HS_Fly)) {
return;
}
if (owner->updated_times % 2 == 0) {
Human* hum = (Human*)owner;
int speed = std::max(1, (int)hum->GetSpeed());
@ -102,6 +106,11 @@ void AndroidAI::DoMove()
void AndroidAI::DoAttack()
{
Human* hum = (Human*)owner;
if (a8::HasBitFlag(hum->status, HS_Fly) ||
a8::HasBitFlag(hum->status, HS_Jump)) {
return;
}
if (owner->updated_times % 10 == 0) {
Human* enemy = owner->room->FindEnemy((Human*)owner);
if (enemy) {