Renamed getter and setter for IsFireproof.
This commit is contained in:
parent
fe08a903fc
commit
8768669428
@ -1044,7 +1044,7 @@ void cEntity::SetMaxHealth(int a_MaxHealth)
|
||||
|
||||
|
||||
/// Sets whether the entity is fireproof
|
||||
void cEntity::SetFireproofStatus(bool a_IsFireproof)
|
||||
void cEntity::SetIsFireproof(bool a_IsFireproof)
|
||||
{
|
||||
m_IsFireproof = a_IsFireproof;
|
||||
}
|
||||
|
@ -330,9 +330,9 @@ public:
|
||||
int GetMaxHealth(void) const { return m_MaxHealth; }
|
||||
|
||||
/// Sets whether the entity is fireproof
|
||||
void SetFireproofStatus(bool a_IsFireproof);
|
||||
void SetIsFireproof(bool a_IsFireproof);
|
||||
|
||||
bool GetFireproofStatus(void) const { return m_IsFireproof; }
|
||||
bool IsFireproof(void) const { return m_IsFireproof; }
|
||||
|
||||
/// Puts the entity on fire for the specified amount of ticks
|
||||
void StartBurning(int a_TicksLeftBurning);
|
||||
|
@ -94,7 +94,7 @@ void cMonsterConfig::AssignAttributes(cMonster * a_Monster, const AString & a_Na
|
||||
a_Monster->SetSightDistance(itr->m_SightDistance);
|
||||
a_Monster->SetAttackRate ((float)itr->m_AttackRate);
|
||||
a_Monster->SetMaxHealth (itr->m_MaxHealth);
|
||||
a_Monster->SetFireproofStatus(itr->m_IsFireproof);
|
||||
a_Monster->SetIsFireproof (itr->m_IsFireproof);
|
||||
return;
|
||||
}
|
||||
} // for itr - m_pState->AttributesList[]
|
||||
|
Loading…
Reference in New Issue
Block a user