Sfoglia il codice sorgente

Callback naming fix.

Frank Zago 14 anni fa
parent
commit
0c3f3c67a9
2 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. 1 1
      AI/EmptyAI/CEmptyAI.cpp
  2. 3 2
      AI/EmptyAI/CEmptyAI.h

+ 1 - 1
AI/EmptyAI/CEmptyAI.cpp

@@ -1,6 +1,6 @@
 #include "CEmptyAI.h"
 #include <iostream>
-void CEmptyAI::init(ICallback * CB)
+void CEmptyAI::init(CCallback * CB)
 {
 	cb = CB;
 	human=false;

+ 3 - 2
AI/EmptyAI/CEmptyAI.h

@@ -5,9 +5,10 @@ struct HeroMoveDetails;
 
 class CEmptyAI : public CGlobalAI
 {
-	ICallback * cb;
+	CCallback *cb;
+
 public:
-	void init(ICallback * CB);
+	void init(CCallback * CB);
 	void yourTurn();
 	void heroKilled(const CGHeroInstance *);
 	void heroCreated(const CGHeroInstance *);