PathfindingTest.Combat.DamageEvent.DamageEvent C# (CSharp) Method

DamageEvent() public method

public DamageEvent ( DamageSource by, Damageable target, Unit source ) : System
by DamageSource
target Damageable
source PathfindingTest.Units.Unit
return System
        public DamageEvent(DamageSource by, Damageable target, Unit source)
        {
            this.source = source;
            this.by = by;
            this.target = target;
            this.usedModifier = this.GetModifier();
            this.damageDone = by.baseDamage * this.usedModifier;
        }