mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Initializing CHeroClass::commander.
This commit is contained in:
parent
c2cbd8da27
commit
4674e8e3d8
@ -54,6 +54,11 @@ EAlignment::EAlignment CHeroClass::getAlignment() const
|
|||||||
return EAlignment::EAlignment(VLC->townh->factions[faction]->alignment);
|
return EAlignment::EAlignment(VLC->townh->factions[faction]->alignment);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CHeroClass::CHeroClass()
|
||||||
|
: commander(nullptr)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
std::vector<BattleHex> CObstacleInfo::getBlocked(BattleHex hex) const
|
std::vector<BattleHex> CObstacleInfo::getBlocked(BattleHex hex) const
|
||||||
{
|
{
|
||||||
std::vector<BattleHex> ret;
|
std::vector<BattleHex> ret;
|
||||||
|
@ -129,6 +129,8 @@ public:
|
|||||||
std::string imageMapMale;
|
std::string imageMapMale;
|
||||||
std::string imageMapFemale;
|
std::string imageMapFemale;
|
||||||
|
|
||||||
|
CHeroClass();
|
||||||
|
|
||||||
bool isMagicHero() const;
|
bool isMagicHero() const;
|
||||||
SecondarySkill chooseSecSkill(const std::set<SecondarySkill> & possibles, std::minstd_rand & distr) const; //picks secondary skill out from given possibilities
|
SecondarySkill chooseSecSkill(const std::set<SecondarySkill> & possibles, std::minstd_rand & distr) const; //picks secondary skill out from given possibilities
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user