|
|
@@ -423,7 +423,7 @@ public:
|
|
|
bool getPath(int3 src, int3 dest, const CGHeroInstance * hero, CPath &ret); //calculates path between src and dest; returns pointer to newly allocated CPath or NULL if path does not exists
|
|
|
void calculatePaths(const CGHeroInstance *hero, CPathsInfo &out, int3 src = int3(-1,-1,-1), int movement = -1); //calculates possible paths for hero, by default uses current hero position and movement left; returns pointer to newly allocated CPath or NULL if path does not exists
|
|
|
int3 guardingCreaturePosition (int3 pos) const;
|
|
|
- const std::vector<CGObjectInstance*> guardingCreatures (int3 pos) const;
|
|
|
+ std::vector<CGObjectInstance*> guardingCreatures (int3 pos) const;
|
|
|
int victoryCheck(ui8 player) const; //checks if given player is winner; -1 if std victory, 1 if special victory, 0 else
|
|
|
int lossCheck(ui8 player) const; //checks if given player is loser; -1 if std loss, 1 if special, 0 else
|
|
|
ui8 checkForStandardWin() const; //returns color of player that accomplished standard victory conditions or 255 if no winner
|