Skip to content

Commit 3c8693b

Browse files
yihan-wahhzzff
andauthored
fix: 🐛 关于THUAI8接口说明文档中两种attack的修改 (#1140)
Co-authored-by: Mistmoon <2070620600@qq.com>
1 parent 2a71756 commit 3c8693b

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

docs/contests/THUAI8/interface/interfacecpp.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -285,26 +285,20 @@ std::future<bool> MoveDown(int64_t timeInMilliseconds)
285285
### 角色攻击
286286
287287
```cpp
288-
std::future<bool> Skill_Attack(int64_t TeamID, int64_t PlayerID, double angle)
288+
std::future<bool> Skill_Attack(double angle)
289289
```
290290

291291
- **返回类型:** `std::future<bool>`
292292
- **参数:**
293-
- `TeamID`:队伍ID
294-
- `PlayerID`:角色ID
295293
- `angle`:攻击方向,单位为弧度
296294

297295
角色向指定方向使用技能攻击,返回操作是否成功的future对象。
298296

299297
```cpp
300-
std::future<bool> Common_Attack(int64_t teamID, int64_t PlayerID, int64_t attackedTeamID, int64_t attackedPlayerID)
298+
std::future<bool> Common_Attack(int64_t attackedPlayerID)
301299
```
302-
303300
- **返回类型:** `std::future<bool>`
304301
- **参数:**
305-
- `teamID`:攻击者队伍ID
306-
- `PlayerID`:攻击者角色ID
307-
- `attackedTeamID`:被攻击者队伍ID
308302
- `attackedPlayerID`:被攻击者角色ID
309303
310304
角色对指定目标进行普通攻击,返回操作是否成功的future对象。

0 commit comments

Comments
 (0)