1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

* refactoring

This commit is contained in:
mateuszb
2013-02-11 14:42:09 +00:00
parent 86dc9386d6
commit d540723739
19 changed files with 138 additions and 119 deletions

View File

@@ -86,7 +86,7 @@ protected:
//virtual bool hasAccess(int playerId) const;
public:
CBattleCallback(CGameState *GS, int Player, CClient *C);
CBattleCallback(CGameState *GS, boost::optional<TPlayerColor> Player, CClient *C);
int battleMakeAction(BattleAction* action) OVERRIDE;//for casting spells by hero - DO NOT use it for moving active stack
bool battleMakeTacticAction(BattleAction * action) OVERRIDE; // performs tactic phase actions
@@ -101,7 +101,7 @@ private:
void validatePaths(); //recalcualte paths if necessary
public:
CCallback(CGameState * GS, int Player, CClient *C);
CCallback(CGameState * GS, boost::optional<TPlayerColor> Player, CClient *C);
//client-specific functionalities (pathfinding)
virtual const CGPathNode *getPathInfo(int3 tile); //uses main, client pathfinder info