mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-29 00:41:38 +02:00
vcmi: massive refactoring v1
This commit is contained in:
@ -395,22 +395,22 @@ CreatureID CUnitState::creatureId() const
|
||||
|
||||
int32_t CUnitState::creatureLevel() const
|
||||
{
|
||||
return static_cast<int32_t>(unitType()->level);
|
||||
return static_cast<int32_t>(unitType()->getLevel());
|
||||
}
|
||||
|
||||
bool CUnitState::doubleWide() const
|
||||
{
|
||||
return unitType()->doubleWide;
|
||||
return unitType()->isDoubleWide();
|
||||
}
|
||||
|
||||
int32_t CUnitState::creatureCost() const
|
||||
{
|
||||
return unitType()->cost[Res::GOLD];
|
||||
return unitType()->getRecruitCost(EGameResID::GOLD);
|
||||
}
|
||||
|
||||
int32_t CUnitState::creatureIconIndex() const
|
||||
{
|
||||
return unitType()->iconIndex;
|
||||
return unitType()->getIconIndex();
|
||||
}
|
||||
|
||||
int32_t CUnitState::getCasterUnitId() const
|
||||
|
Reference in New Issue
Block a user