1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-17 01:32:21 +02:00

CGameState::battleGetBattlefieldType: use RNG by ref

For now I not sure about proper place for battleGetBattlefieldType so I left it in GS
This commit is contained in:
Arseniy Shestakov
2016-09-07 20:00:20 +03:00
parent ea63497b19
commit 70abae9b51
3 changed files with 6 additions and 6 deletions

View File

@ -218,7 +218,7 @@ public:
void giveHeroArtifact(CGHeroInstance *h, ArtifactID aid);
void apply(CPack *pack);
BFieldType battleGetBattlefieldType(int3 tile);
BFieldType battleGetBattlefieldType(int3 tile, CRandomGenerator & r);
UpgradeInfo getUpgradeInfo(const CStackInstance &stack);
PlayerRelations::PlayerRelations getPlayerRelations(PlayerColor color1, PlayerColor color2);
bool checkForVisitableDir(const int3 & src, const int3 & dst) const; //check if src tile is visitable from dst tile