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

CGHeroInstance: move native terrain check into getNativeTerrain

That make it easier to use that code independently in TurnInfo
This commit is contained in:
ArseniyShestakov
2015-11-21 13:30:39 +03:00
parent a375c86ea2
commit 438a444443
4 changed files with 32 additions and 19 deletions

View File

@@ -131,6 +131,7 @@ public:
const std::string &getBiography() const;
bool needsLastStack()const override;
ui32 getTileCost(const TerrainTile &dest, const TerrainTile &from, const TurnInfo * ti) const; //move cost - applying pathfinding skill, road and terrain modifiers. NOT includes diagonal move penalty, last move levelling
int getNativeTerrain() const;
ui32 getLowestCreatureSpeed() const;
int3 getPosition(bool h3m = false) const; //h3m=true - returns position of hero object; h3m=false - returns position of hero 'manifestation'
si32 manaRegain() const; //how many points of mana can hero regain "naturally" in one day