Skip to content

HeroPanelInfo beta ​

Interface of @v12-engine/client

ts
export interface HeroPanelInfo

Everything the panel of a hero shows: the one hero of the player that is selected

Members ​

abilities ​

ts
abilities: AbilitySlot[];

What it learns: Q, W, E and R

activity ​

ts
activity: string;

What it is doing now, in words: Idle, Moving

buffs ​

ts
buffs: BuffInfo[];

The buffs it has now

callings ​

ts
callings?: CallingTag[];

Its callings, strongest first (HeroDef.callings): none for a hero whose type says none

color ​

ts
color: string;

CSS color of the owning player

form ​

ts
form?: {
        from: string;
        fromName: string;
    };

The form it is in (form), where it is in one: what it is as itself, by type and name. Its typeName, portrait and abilities are the form's then

health ​

ts
health: number;

Health it has now, in points

id ​

ts
id: number;

Unique id of the hero: the entity

innate ​

ts
innate: AbilitySlot[];

What it has from the start and is always on

items ​

ts
items: (ItemSlot | null)[];

Six slots, the keys 1 to 6

level ​

ts
level: number;

The hero's level

mana ​

ts
mana: number;

Mana it has now, in points

maxHealth ​

ts
maxHealth: number;

Health it has at most, in points

maxMana ​

ts
maxMana: number;

Mana it has at most, in points

meter ​

ts
meter?: {
        value: number;
        max: number;
        name: string;
    };

Points of the buff its type counts, next to the health and mana: so many out of max

money ​

ts
money: ResourceAmount;

What the player has of the game's money, the resource shops deal in

name ​

ts
name: string;

Its own name, where the map or the rules gave it one (world.named), else its type's

points ​

ts
points: number;

Unspent points to put into its abilities

pools ​

ts
pools?: PoolBar[];

Its pools beside mana (UnitTypeDef.pools: energy, fury, heat…), under its mana

portrait ​

ts
portrait?: string;

Its face, by address of an image (IconSet.portraits, else its icon)

regen ​

ts
regen: {
        healthRegen?: StatLine;
        manaRegen?: StatLine;
    };

Health and mana regained per second, for the bars

shield ​

ts
shield: number;

What its shields still hold, in points; 0 when it has none

shop ​

ts
shop: boolean;

A shop is close enough to trade with

spells ​

ts
spells: AbilitySlot[];

The two spells it brought along: D and F

stats ​

ts
stats: StatLine[];

The stats the panel lists, one line each

summons ​

ts
summons?: SummonSlot[];

What it brought into the world that is still there, by the time it has left (GameView.hud.summons turns it off)

typeId ​

ts
typeId: string;

The hero's unit type id

typeName ​

ts
typeName: string;

Its type's name: "Paladin" under "Aldric"

xp ​

ts
xp: number;

0..1 of the way to the next level