ActiveSkill

Inherits: Skill < Item < RefCounted

Abstract extension of Skill for skills that are used directly in combat.

Methods

bool

check_for_resource(own: Entity)

void

consume_resources(own: Entity)

void

use_skill(target: Entity)


Method Descriptions

bool check_for_resource(own: Entity) 🔗

Checks whether own has enough resources (HP/Mana) and action points to use this skill.

Returns: true if the entity can afford the costs, false otherwise.


void consume_resources(own: Entity) 🔗

Deducts the skill’s resource costs (HP/Mana + action points) from own.


void use_skill(target: Entity) 🔗

Applies this skill to target.

Full execution pipeline:

PRE_SKILL_EFFECT defend_from_skill _effect VFX POST_SKILL_EFFECT