C# Class Aura.Channel.World.HitTracker

Tracks damage and amount of hits done by one creature to another.
Mostra file Open project: aura-project/aura

Public Methods

Method Description
HitTracker ( long id, Creature target, Creature attacker ) : Aura.Channel.World.Entities

Creates new hit tracker for target, for hits by attacker.

RegisterHit ( float damage ) : void

Increases hit count and damage.

Method Details

HitTracker() public method

Creates new hit tracker for target, for hits by attacker.
public HitTracker ( long id, Creature target, Creature attacker ) : Aura.Channel.World.Entities
id long
target Aura.Channel.World.Entities.Creature
attacker Aura.Channel.World.Entities.Creature
return Aura.Channel.World.Entities

RegisterHit() public method

Increases hit count and damage.
public RegisterHit ( float damage ) : void
damage float
return void