Browse Source

Update CAPI接口(cpp).md

tags/0.1.0
DragonAura GitHub 3 years ago
parent
commit
3cb9b4fbb7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      docs/CAPI接口(cpp).md

+ 3
- 0
docs/CAPI接口(cpp).md View File

@@ -52,6 +52,7 @@
- `std::vector<std::shared_ptr<const THUAI6::Tricker>> GetTrickers() const` :返回所有可视捣蛋鬼的信息。
- `std::vector<std::shared_ptr<const THUAI6::Prop>> GetProps() const` :返回所有可视道具的信息。
- `std::vector<std::shared_ptr<const THUAI6::Bullet>> GetBullets() const` :返回所有可视子弹(攻击)的信息。
- `bool HaveView(int gridX, int gridY) const`:判断坐标是否可见

#### 查询特定位置物体的信息

@@ -158,6 +159,8 @@
{
return grid / numOfGridPerCell;
}
[[nodiscard]] virtual bool HaveView(int gridX, int gridY) const = 0;

// 用于DEBUG的输出函数,选手仅在开启Debug模式的情况下可以使用



Loading…
Cancel
Save