diff --git a/CAPI/API/include/API.h b/CAPI/API/include/API.h index c4525db..0babf9b 100644 --- a/CAPI/API/include/API.h +++ b/CAPI/API/include/API.h @@ -27,11 +27,11 @@ class ILogic public: // 获取服务器发来的消息 - virtual std::vector> GetButchers() const = 0; - virtual std::vector> GetHumans() const = 0; - virtual std::vector> GetProps() const = 0; - virtual std::shared_ptr HumanGetSelfInfo() const = 0; - virtual std::shared_ptr ButcherGetSelfInfo() const = 0; + virtual std::vector> GetButchers() const = 0; + virtual std::vector> GetHumans() const = 0; + virtual std::vector> GetProps() const = 0; + virtual std::shared_ptr HumanGetSelfInfo() const = 0; + virtual std::shared_ptr ButcherGetSelfInfo() const = 0; virtual std::vector> GetFullMap() const = 0; diff --git a/CAPI/API/include/logic.h b/CAPI/API/include/logic.h index 818a9f5..101247d 100644 --- a/CAPI/API/include/logic.h +++ b/CAPI/API/include/logic.h @@ -82,11 +82,11 @@ private: // 获取服务器发来的消息 - std::vector> GetButchers() const override; - std::vector> GetHumans() const override; - std::vector> GetProps() const override; - std::shared_ptr HumanGetSelfInfo() const override; - std::shared_ptr ButcherGetSelfInfo() const override; + std::vector> GetButchers() const override; + std::vector> GetHumans() const override; + std::vector> GetProps() const override; + std::shared_ptr HumanGetSelfInfo() const override; + std::shared_ptr ButcherGetSelfInfo() const override; std::vector> GetFullMap() const override; diff --git a/CAPI/API/src/API.cpp b/CAPI/API/src/API.cpp index 233ba0b..952cb16 100644 --- a/CAPI/API/src/API.cpp +++ b/CAPI/API/src/API.cpp @@ -10,3 +10,8 @@ void ButcherAPI::Play(IAI& ai) { ai.play(*this); } + +std::vector> HumanAPI::GetButcher() const +{ + return logic.GetButchers(); +}