Browse Source

style: 🎨 format

tags/0.1.0
shangfengh 2 years ago
parent
commit
6a9c2bc48b
2 changed files with 15 additions and 15 deletions
  1. +14
    -14
      CAPI/cpp/API/include/constants.h
  2. +1
    -1
      CAPI/cpp/API/src/AI.cpp

+ 14
- 14
CAPI/cpp/API/include/constants.h View File

@@ -313,48 +313,48 @@ namespace Constants
SCCI bool IsRemoteAttack = false;

SCCI int CastTime = (int)BulletAttackRange * 1000 / Speed;
SCCI int Backswing =basicBackswing;
SCCI int RecoveryFromHit =basicRecoveryFromHit;
SCCI int Backswing = basicBackswing;
SCCI int RecoveryFromHit = basicRecoveryFromHit;
SCCI int cd = basicBackswing;
SCCI int maxBulletNum = 1;
};
struct FlyingKnife
{
SCCI double BulletBombRange = 0;
SCCI double BulletAttackRange = basicRemoteAttackRange * 13;
SCCI int ap = basicApOfTricker* 4 / 5;
SCCI int Speed = basicBulletMoveSpeed* 25 / 10;
SCCI int ap = basicApOfTricker * 4 / 5;
SCCI int Speed = basicBulletMoveSpeed * 25 / 10;
SCCI bool IsRemoteAttack = true;

SCCI int CastTime = basicCastTime * 4 / 5;
SCCI int Backswing =0;
SCCI int RecoveryFromHit =0;
SCCI int Backswing = 0;
SCCI int RecoveryFromHit = 0;
SCCI int cd = basicBackswing / 2;
SCCI int maxBulletNum = 1;
};
struct BombBomb
{
SCCI double BulletBombRange = basicBulletBombRange;
SCCI double BulletAttackRange = basicAttackShortRange;
SCCI int ap = basicApOfTricker * 6 / 5;
SCCI int Speed = basicBulletMoveSpeed* 30 / 37;
SCCI int Speed = basicBulletMoveSpeed * 30 / 37;
SCCI bool IsRemoteAttack = false;

SCCI int CastTime = (int)BulletAttackRange * 1000 / Speed;
SCCI int Backswing =basicRecoveryFromHit;
SCCI int RecoveryFromHit =basicRecoveryFromHit;
SCCI int Backswing = basicRecoveryFromHit;
SCCI int RecoveryFromHit = basicRecoveryFromHit;
SCCI int cd = basicCD;
SCCI int maxBulletNum = 1;
};
struct JumpyDumpty
{
SCCI double BulletBombRange = basicBulletBombRange / 2;
SCCI double BulletAttackRange = basicRemoteAttackRange * 2;
SCCI int ap = (int)(basicApOfTricker* 0.6);
SCCI int Speed = basicBulletMoveSpeed* 43 / 37;
SCCI int ap = (int)(basicApOfTricker * 0.6);
SCCI int Speed = basicBulletMoveSpeed * 43 / 37;
SCCI bool IsRemoteAttack = false;
};
} // namespace Constants


+ 1
- 1
CAPI/cpp/API/src/AI.cpp View File

@@ -20,7 +20,7 @@ extern const THUAI6::TrickerType trickerType = THUAI6::TrickerType::Assassin;

// 可以在AI.cpp内部声明变量与函数

void AI::play(IStudentAPI& api)//每帧执行一次AI::play(IStudentAPI& api)或AI::play(ITrickerAPI& api)(除非执行该函数超过一帧50ms),获取的信息都是这一帧的开始的状态
void AI::play(IStudentAPI& api) // 每帧执行一次AI::play(IStudentAPI& api)或AI::play(ITrickerAPI& api)(除非执行该函数超过一帧50ms),获取的信息都是这一帧的开始的状态
{
// 公共操作
if (this->playerID == 0)


Loading…
Cancel
Save