public void SendDamage(GameActor kFrom, GameActor kTo) { float a_fFromPower = m_kDamageCalculator.CaculateDamage(kFrom); float a_fToHp = kTo.Hp; float a_fDamageResult = a_fToHp - a_fFromPower; bool a_bIsDeath = false; kTo.Hp = a_fDamageResult; a_bIsDeath = kTo.IsDeath; if (a_bIsDeath == true) { //어떤 역할을 해준다. } }
public float CaculateDamage(GameActor kAttacker) { return(kAttacker.Power); }