C# Class Aura.Channel.Skills.CombatActionPack

Collection of combat actions
A combat action (eg a player hitting a monster) consits of multiple actions, depending on the amount involved creatures. Each action has information about one creature, to make the client display the result of the attack. An attack action shows the creature hitting, a target action shows it receiving a hit.
Show file Open project: aura-project/aura Class Usage Examples

Public Methods

Method Description
Add ( ) : void

Adds combat actions.

CombatActionPack ( Creature attacker, SkillId skillId ) : System

Creates new combat action pack.

GetTargets ( ) : Aura.Channel.World.Entities.Creature[]

Returns all creatures found in this pack's target actions.

Handle ( ) : void

Handles actions and broadcasts action pack.

Private Methods

Method Description
CombatActionPack ( ) : System

Initializes combat action pack.

Method Details

Add() public method

Adds combat actions.
public Add ( ) : void
return void

CombatActionPack() public method

Creates new combat action pack.
public CombatActionPack ( Creature attacker, SkillId skillId ) : System
attacker Aura.Channel.World.Entities.Creature
skillId SkillId
return System

GetTargets() public method

Returns all creatures found in this pack's target actions.
public GetTargets ( ) : Aura.Channel.World.Entities.Creature[]
return Aura.Channel.World.Entities.Creature[]

Handle() public method

Handles actions and broadcasts action pack.
public Handle ( ) : void
return void