Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/Hang-THU/THUAI8 into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Hang-THU committed Dec 20, 2024
2 parents fb9e08f + fc63292 commit 93c79de
Show file tree
Hide file tree
Showing 5 changed files with 607 additions and 58 deletions.
8 changes: 4 additions & 4 deletions CAPI/cpp/API/include/API.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ class ICharacterAPI : public IAPI
virtual std::future<bool> Skill_Attack(double angleInRadian) = 0;
virtual std::future<bool> Common_Attack(double angleInRadian) = 0;
virtual std::future<bool> Recover(int64_t recover) = 0;
virtual std::future<bool> Produce() = 0;
virtual std::future<bool> Harvest() = 0;
virtual std::future<bool> Rebuild(THUAI8::ConstructionType constructionType) = 0;
virtual std::future<bool> Construct(THUAI8::ConstructionType constructionType) = 0;
virtual std::shared_ptr<const THUAI8::Ship> GetSelfInfo() const = 0;
virtual std::shared_ptr<const THUAI8::Character> GetSelfInfo() const = 0;
virtual bool HaveView(int32_t targetX, int32_t targetY) const = 0;
};

Expand Down Expand Up @@ -193,7 +193,7 @@ class CharacterAPI : public ICharacterAPI, public IGameTimer
std::future<bool> Skill_Attack(double angleInRadian) override;
std::future<bool> Common_Attack(double angleInRadian) override;
std::future<bool> Recover(int64_t recover) override;
std::future<bool> Produce() override;
std::future<bool> Harvest() override;
std::future<bool> Rebuild(THUAI8::ConstructionType constructionType) override;
std::future<bool> Construct(THUAI8::ConstructionType constructionType) override;

Expand Down Expand Up @@ -306,7 +306,7 @@ class CharacterDebugAPI : public ICharacterAPI, public IGameTimer
std::future<bool> Skill_Attack(double angleInRadian) override;
std::future<bool> Common_Attack(double angleInRadian) override;
std::future<bool> Recover(int64_t recover) override;
std::future<bool> Produce() override;
std::future<bool> Harvest() override;
std::future<bool> Rebuild(THUAI8::ConstructionType constructionType) override;
std::future<bool> Construct(THUAI8::ConstructionType constructionType) override;

Expand Down
Loading

0 comments on commit 93c79de

Please sign in to comment.