|
@@ -72,7 +72,10 @@ public:
|
|
|
bool hotSeat;
|
|
bool hotSeat;
|
|
|
CConnection *serv;
|
|
CConnection *serv;
|
|
|
BattleAction *curbaction;
|
|
BattleAction *curbaction;
|
|
|
|
|
+
|
|
|
CPathsInfo *pathInfo;
|
|
CPathsInfo *pathInfo;
|
|
|
|
|
+ boost::mutex pathMx; //protects the variable above
|
|
|
|
|
+
|
|
|
CScriptingModule *erm;
|
|
CScriptingModule *erm;
|
|
|
|
|
|
|
|
CondSh<bool> waitingRequest;
|
|
CondSh<bool> waitingRequest;
|
|
@@ -97,6 +100,8 @@ public:
|
|
|
void run();
|
|
void run();
|
|
|
void finishCampaign( CCampaignState * camp );
|
|
void finishCampaign( CCampaignState * camp );
|
|
|
void proposeNextMission( CCampaignState * camp );
|
|
void proposeNextMission( CCampaignState * camp );
|
|
|
|
|
+ void calculatePaths(const CGHeroInstance *h);
|
|
|
|
|
+ void updatePaths(); //calls calculatePaths for same hero for which we previously calculated paths
|
|
|
|
|
|
|
|
bool terminate; // tell to terminate
|
|
bool terminate; // tell to terminate
|
|
|
boost::thread *connectionHandler; //thread running run() method
|
|
boost::thread *connectionHandler; //thread running run() method
|
|
@@ -159,7 +164,6 @@ public:
|
|
|
friend void processCommand(const std::string &message, CClient *&client); //handling console
|
|
friend void processCommand(const std::string &message, CClient *&client); //handling console
|
|
|
|
|
|
|
|
void handlePack( CPack * pack ); //applies the given pack and deletes it
|
|
void handlePack( CPack * pack ); //applies the given pack and deletes it
|
|
|
- void updatePaths();
|
|
|
|
|
void battleStarted(const BattleInfo * info);
|
|
void battleStarted(const BattleInfo * info);
|
|
|
|
|
|
|
|
void commitPackage(CPackForClient *pack) OVERRIDE;
|
|
void commitPackage(CPackForClient *pack) OVERRIDE;
|