| @@ -127,12 +127,9 @@ public: | |||||
| // 获取视野内可见的道具信息 | // 获取视野内可见的道具信息 | ||||
| [[nodiscard]] virtual std::vector<std::shared_ptr<const THUAI6::Prop>> GetProps() const = 0; | [[nodiscard]] virtual std::vector<std::shared_ptr<const THUAI6::Prop>> GetProps() const = 0; | ||||
| <<<<<<< HEAD | |||||
| ======= | |||||
| // 获取视野内可见的子弹信息 | // 获取视野内可见的子弹信息 | ||||
| [[nodiscard]] virtual std::vector<std::shared_ptr<const THUAI6::Bullet>> GetBullets() const = 0; | [[nodiscard]] virtual std::vector<std::shared_ptr<const THUAI6::Bullet>> GetBullets() const = 0; | ||||
| >>>>>>> 413ef5584c0bd44e1399284a775da492adf98475 | |||||
| [[nodiscard]] virtual std::vector<std::vector<THUAI6::PlaceType>> GetFullMap() const = 0; | [[nodiscard]] virtual std::vector<std::vector<THUAI6::PlaceType>> GetFullMap() const = 0; | ||||
| [[nodiscard]] virtual THUAI6::PlaceType GetPlaceType(int32_t cellX, int32_t cellY) const = 0; | [[nodiscard]] virtual THUAI6::PlaceType GetPlaceType(int32_t cellX, int32_t cellY) const = 0; | ||||
| @@ -400,3 +400,5 @@ FodyWeavers.xsd | |||||
| #THUAI playback file | #THUAI playback file | ||||
| *.thuaipb | *.thuaipb | ||||
| #private cmd | |||||
| cmd/gameServerOfSanford.cmd | |||||
| @@ -521,6 +521,12 @@ namespace GameClass.GameObj | |||||
| return this.HasShield; | return this.HasShield; | ||||
| case BuffType.AddLife: | case BuffType.AddLife: | ||||
| return this.HasLIFE; | return this.HasLIFE; | ||||
| case BuffType.AddAp: | |||||
| return this.HasAp; | |||||
| case BuffType.Clairaudience: | |||||
| return this.HasClairaudience; | |||||
| case BuffType.Invisible: | |||||
| return this.HasInvisible; | |||||
| default: | default: | ||||
| return false; | return false; | ||||
| } | } | ||||
| @@ -292,6 +292,7 @@ namespace Gaming | |||||
| { | { | ||||
| ((WriteAnswers)student.FindIActiveSkill(ActiveSkillType.WriteAnswers)).DegreeOfMeditation = 0; | ((WriteAnswers)student.FindIActiveSkill(ActiveSkillType.WriteAnswers)).DegreeOfMeditation = 0; | ||||
| } | } | ||||
| student.SetDegreeOfTreatment0(); | |||||
| #if DEBUG | #if DEBUG | ||||
| Debugger.Output(bullet, " 's AP is " + bullet.AP.ToString()); | Debugger.Output(bullet, " 's AP is " + bullet.AP.ToString()); | ||||
| #endif | #endif | ||||
| @@ -328,7 +329,6 @@ namespace Gaming | |||||
| bullet.Parent.AddScore(GameData.TrickerScoreAttackStudent(subHp)); | bullet.Parent.AddScore(GameData.TrickerScoreAttackStudent(subHp)); | ||||
| bullet.Parent.HP = (int)(bullet.Parent.HP + (bullet.Parent.Vampire * subHp)); | bullet.Parent.HP = (int)(bullet.Parent.HP + (bullet.Parent.Vampire * subHp)); | ||||
| } | } | ||||
| student.SetDegreeOfTreatment0(); | |||||
| if (student.HP <= 0) | if (student.HP <= 0) | ||||
| student.TryActivatingLIFE(); // 如果有复活甲 | student.TryActivatingLIFE(); // 如果有复活甲 | ||||
| @@ -113,6 +113,7 @@ | |||||
| `std::vector<std::vector<THUAI6::PlaceType>> GetFullMap() const`:返回整张地图的地形信息。 | `std::vector<std::vector<THUAI6::PlaceType>> GetFullMap() const`:返回整张地图的地形信息。 | ||||
| - 下面的 CellX 和 CellY 指的是地图格数,而非绝对坐标。 | - 下面的 CellX 和 CellY 指的是地图格数,而非绝对坐标。 | ||||
| `THUAI6::PlaceType GetPlaceType(int32_t cellX, int32_t cellY)` :返回某一位置场地种类信息。场地种类详见 structure.h 。 | `THUAI6::PlaceType GetPlaceType(int32_t cellX, int32_t cellY)` :返回某一位置场地种类信息。场地种类详见 structure.h 。 | ||||
| `bool IsDoorOpen(int32_t cellX, int32_t cellY) const`:查询特定位置门是否开启 | `bool IsDoorOpen(int32_t cellX, int32_t cellY) const`:查询特定位置门是否开启 | ||||
| `int32_t GetChestProgress(int32_t cellX, int32_t cellY) const`:查询特定位置箱子开启进度 | `int32_t GetChestProgress(int32_t cellX, int32_t cellY) const`:查询特定位置箱子开启进度 | ||||
| @@ -277,7 +278,9 @@ | |||||
| ## 辅助函数 | ## 辅助函数 | ||||
| `static inline int CellToGrid(int cell) noexcept`:将地图格数 cell 转换为绝对坐标grid。 | `static inline int CellToGrid(int cell) noexcept`:将地图格数 cell 转换为绝对坐标grid。 | ||||
| `static inline int GridToCell(int grid) noexcept`:将绝对坐标 grid 转换为地图格数cell。 | `static inline int GridToCell(int grid) noexcept`:将绝对坐标 grid 转换为地图格数cell。 | ||||
| 下面为用于DEBUG的输出函数,选手仅在开启Debug模式的情况下可以使用 | 下面为用于DEBUG的输出函数,选手仅在开启Debug模式的情况下可以使用 | ||||
| ~~~c | ~~~c | ||||
| void Print(std::string str) const; | void Print(std::string str) const; | ||||