From 97ddbf89d16e13caa62b1b7d25f2fc1daa7c8f22 Mon Sep 17 00:00:00 2001 From: DragonAura Date: Sat, 22 Oct 2022 22:10:28 +0800 Subject: [PATCH] fix: :bug: fix some bugs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修了几个错误的构造函数及一些错误的拼写 --- CAPI/API/include/AI.h | 2 +- CAPI/API/include/API.h | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CAPI/API/include/AI.h b/CAPI/API/include/AI.h index 4fba3ad..c80728e 100644 --- a/CAPI/API/include/AI.h +++ b/CAPI/API/include/AI.h @@ -7,7 +7,7 @@ class IAI { public: - virtual void play(IAPI& appi) = 0; + virtual void play(IAPI& api) = 0; }; #endif \ No newline at end of file diff --git a/CAPI/API/include/API.h b/CAPI/API/include/API.h index 3aabda2..7d76642 100644 --- a/CAPI/API/include/API.h +++ b/CAPI/API/include/API.h @@ -142,7 +142,7 @@ class IAPIForLogic : public IAPI class IHumanAPI : public IAPIForLogic { public: - HumanAPI(ILogic& logic) : + IHumanAPI(ILogic& logic) : IAPIForLogic(logic) { } @@ -159,7 +159,7 @@ public: class IButcherAPI : public IAPIForLogic { public: - ButcherAPI(Logic& logic) : + IButcherAPI(Logic& logic) : IAPIForLogic(logic) { } @@ -174,7 +174,7 @@ class HumanAPI : public IHumanAPI { public: HumanAPI(Logic& logic) : - logic(logic) + IHumanAPI(logic) { } }; @@ -183,7 +183,7 @@ class DebugHumanAPI : public IHumanAPI { public: DebugHumanAPI(Logic& logic) : - logic(logic) + IHumanAPI(logic) { } }; @@ -192,7 +192,7 @@ class ButhcerAPI : public IButcherAPI { public: ButhcerAPI(Logic& logic) : - logic(logic) + IButcherAPI(logic) { } }; @@ -201,7 +201,7 @@ class DebugButcherAPI : public IButcherAPI { public: DebugButcherAPI(Logic& logic) : - logic(logic) + IButcherAPI(logic) { } };