瀏覽代碼

Implement new callback in stupidAI

Dydzio 2 年之前
父節點
當前提交
d8eef4905a
共有 2 個文件被更改,包括 6 次插入0 次删除
  1. 5 0
      AI/StupidAI/StupidAI.cpp
  2. 1 0
      AI/StupidAI/StupidAI.h

+ 5 - 0
AI/StupidAI/StupidAI.cpp

@@ -47,6 +47,11 @@ void CStupidAI::initBattleInterface(std::shared_ptr<Environment> ENV, std::share
 	CB->unlockGsWhenWaiting = false;
 }
 
+void CStupidAI::initBattleInterface(std::shared_ptr<Environment> ENV, std::shared_ptr<CBattleCallback> CB, AutocombatPreferences autocombatPreferences)
+{
+	initBattleInterface(ENV, CB);
+}
+
 void CStupidAI::actionFinished(const BattleAction &action)
 {
 	print("actionFinished called");

+ 1 - 0
AI/StupidAI/StupidAI.h

@@ -29,6 +29,7 @@ public:
 	~CStupidAI();
 
 	void initBattleInterface(std::shared_ptr<Environment> ENV, std::shared_ptr<CBattleCallback> CB) override;
+	void initBattleInterface(std::shared_ptr<Environment> ENV, std::shared_ptr<CBattleCallback> CB, AutocombatPreferences autocombatPreferences) override;
 	void actionFinished(const BattleAction &action) override;//occurs AFTER every action taken by any stack or by the hero
 	void actionStarted(const BattleAction &action) override;//occurs BEFORE every action taken by any stack or by the hero
 	void activeStack(const CStack * stack) override; //called when it's turn of that stack