Quantcast
Channel: OTLand
Viewing all articles
Browse latest Browse all 32017

Learning c++, what hits code means?

$
0
0
Hi bro, i'm starting to study C/C++, what this code means?
C++:
int32_t maxValue = static_cast<int32_t>(Weapons::getMaxWeaponDamage(player->getLevel(), attackSkill, attackValue, attackFactor) * player->getVocation()->distDamageMultiplier);
I know player->getLevel() = player Level
attackSkill = player skill (in this case distance)
attackValue (attack of weapon)
and attackFactor (depends if players have full attack/full def. etc)

My doubt is, how this script calculate? Because i...

Learning c++, what hits code means?

Viewing all articles
Browse latest Browse all 32017

Trending Articles