本文整理汇总了C++中Obj_Character::GetBaseMaxMP方法的典型用法代码示例。如果您正苦于以下问题:C++ Obj_Character::GetBaseMaxMP方法的具体用法?C++ Obj_Character::GetBaseMaxMP怎么用?C++ Obj_Character::GetBaseMaxMP使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Obj_Character
的用法示例。
在下文中一共展示了Obj_Character::GetBaseMaxMP方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetRefixRate
BOOL StdImpact056_T::GetIntAttrRefix(OWN_IMPACT & rImp, Obj_Character& rMe, CharIntAttrRefixs_T::Index_T nIdx, INT & rIntAttrRefix) const
{
__ENTER_FUNCTION
INT nRefixRate = GetRefixRate(rImp);
nRefixRate += 100;
INT nValue = 0;
switch (nIdx)
{
case CharIntAttrRefixs_T::REFIX_HIT:
{
if(0!=GetHitRefix(rImp))
{
nValue = Float2Int((GetHitRefix(rImp)*nRefixRate)/100.0f);
rIntAttrRefix += nValue;
return TRUE;
}
}
break;
case CharIntAttrRefixs_T::REFIX_MISS:
{
if(0!=GetMissRefix(rImp))
{
nValue = Float2Int((GetMissRefix(rImp)*nRefixRate)/100.0f);
rIntAttrRefix += nValue;
return TRUE;
}
}
break;
case CharIntAttrRefixs_T::REFIX_CRITICAL:
{
if(0!=GetCriticalRefix(rImp))
{
nValue = Float2Int((GetCriticalRefix(rImp)*nRefixRate)/100.0f);
rIntAttrRefix += nValue;
return TRUE;
}
}
break;
case CharIntAttrRefixs_T::REFIX_MAX_HP:
{
if(0!=GetMaxHpRefix(rImp))
{
nValue = Float2Int((GetMaxHpRefix(rImp)*nRefixRate)/100.0f);
nValue = Float2Int((rMe.GetBaseMaxHP()*nValue)/100.0f);
rIntAttrRefix += nValue;
return TRUE;
}
}
break;
case CharIntAttrRefixs_T::REFIX_MAX_MP:
{
if(0!=GetMaxMpRefix(rImp))
{
nValue = Float2Int((GetMaxMpRefix(rImp)*nRefixRate)/100.0f);
nValue = Float2Int((rMe.GetBaseMaxMP()*nValue)/100.0f);
rIntAttrRefix += nValue;
return TRUE;
}
}
break;
//Attacks
case CharIntAttrRefixs_T::REFIX_ATTACK_NEAR:
{
if(0!=GetAttackNearRefix(rImp))
{
nValue = Float2Int((GetAttackNearRefix(rImp)*nRefixRate)/100.0f);
nValue = Float2Int((rMe.GetBaseAttackNear()*nValue)/100.0f);
rIntAttrRefix += nValue;
return TRUE;
}
}
break;
case CharIntAttrRefixs_T::REFIX_ATTACK_MAGIC_NEAR:
{
if(0!=GetAttackMagicNearRefix(rImp))
{
nValue = Float2Int((GetAttackMagicNearRefix(rImp)*nRefixRate)/100.0f);
nValue = Float2Int((rMe.GetBaseAttackMagicNear()*nValue)/100.0f);
rIntAttrRefix += nValue;
return TRUE;
}
}
break;
//Defences
case CharIntAttrRefixs_T::REFIX_DEFENCE_NEAR:
{
if(0!=GetDefenceNearRefix(rImp))
{
nValue = Float2Int((GetDefenceNearRefix(rImp)*nRefixRate)/100.0f);
nValue = Float2Int((rMe.GetBaseDefenceNear()*nValue)/100.0f);
rIntAttrRefix += nValue;
return TRUE;
}
}
break;
case CharIntAttrRefixs_T::REFIX_DEFENCE_MAGIC_NEAR:
{
if(0!=GetDefenceMagicNearRefix(rImp))
{
nValue = Float2Int((GetDefenceMagicNearRefix(rImp)*nRefixRate)/100.0f);
//.........这里部分代码省略.........
示例2: GetRefixRate
//.........这里部分代码省略.........
}
}
break;
case CharIntAttrRefixs_T::REFIX_RESIST_COLD:
{
if(0!=GetResistColdRefix(rImp))
{
nValue = Float2Int((GetResistColdRefix(rImp)*nRefixRate)/100.0f);
nValue = Float2Int((rMe.GetBaseDefenceCold()*nValue)/100.0f);
rIntAttrRefix += nValue;
return TRUE;
}
}
break;
case CharIntAttrRefixs_T::REFIX_RESIST_FIRE:
{
if(0!=GetResistFireRefix(rImp))
{
nValue = Float2Int((GetResistFireRefix(rImp)*nRefixRate)/100.0f);
nValue = Float2Int((rMe.GetBaseDefenceFire()*nValue)/100.0f);
rIntAttrRefix += nValue;
return TRUE;
}
}
break;
case CharIntAttrRefixs_T::REFIX_RESIST_LIGHT:
{
if(0!=GetResistLightRefix(rImp))
{
nValue = Float2Int((GetResistLightRefix(rImp)*nRefixRate)/100.0f);
nValue = Float2Int((rMe.GetBaseDefenceLight()*nValue)/100.0f);
rIntAttrRefix += nValue;
return TRUE;
}
}
break;
case CharIntAttrRefixs_T::REFIX_RESIST_POISON:
{
if(0!=GetResistPoisonRefix(rImp))
{
nValue = Float2Int((GetResistPoisonRefix(rImp)*nRefixRate)/100.0f);
nValue = Float2Int((rMe.GetBaseDefencePoison()*nValue)/100.0f);
rIntAttrRefix += nValue;
return TRUE;
}
}
break;
// Maxes
case CharIntAttrRefixs_T::REFIX_MAX_HP:
{
if(0!=GetMaxHpRefix(rImp))
{
nValue = Float2Int((GetMaxHpRefix(rImp)*nRefixRate)/100.0f);
nValue = Float2Int((rMe.GetBaseMaxHP()*nValue)/100.0f);
rIntAttrRefix += nValue;
return TRUE;
}
}
break;
case CharIntAttrRefixs_T::REFIX_MAX_MP:
{
if(0!=GetMaxMpRefix(rImp))
{
nValue = Float2Int((GetMaxMpRefix(rImp)*nRefixRate)/100.0f);
nValue = Float2Int((rMe.GetBaseMaxMP()*nValue)/100.0f);
rIntAttrRefix += nValue;
return TRUE;
}
}
break;
case CharIntAttrRefixs_T::REFIX_MAX_RAGE:
{
if(0!=GetMaxRageRefix(rImp))
{
nValue = Float2Int((GetMaxRageRefix(rImp)*nRefixRate)/100.0f);
nValue = Float2Int((rMe.GetBaseMaxRage()*nValue)/100.0f);
rIntAttrRefix += nValue;
return TRUE;
}
}
break;
case CharIntAttrRefixs_T::REFIX_MAX_STRIKE_POINT:
{
if(0!=GetMaxStrikePointRefix(rImp))
{
nValue = Float2Int((GetMaxStrikePointRefix(rImp)*nRefixRate)/100.0f);
nValue = Float2Int((rMe.GetBaseMaxStrikePoint()*nValue)/100.0f);
rIntAttrRefix += nValue;
return TRUE;
}
}
break;
default:
break;
}
__LEAVE_FUNCTION
return FALSE;
}