HeroPanelInfo beta
Interface of @v12-engine/client
export interface HeroPanelInfoEverything the panel of a hero shows: the one hero of the player that is selected
Members
abilities
abilities: AbilitySlot[];What it learns: Q, W, E and R
activity
activity: string;What it is doing now, in words: Idle, Moving
buffs
buffs: BuffInfo[];The buffs it has now
callings
callings?: CallingTag[];Its callings, strongest first (HeroDef.callings): none for a hero whose type says none
color
color: string;CSS color of the owning player
form
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
health: number;Health it has now, in points
id
id: number;Unique id of the hero: the entity
innate
innate: AbilitySlot[];What it has from the start and is always on
items
items: (ItemSlot | null)[];Six slots, the keys 1 to 6
level
level: number;The hero's level
mana
mana: number;Mana it has now, in points
maxHealth
maxHealth: number;Health it has at most, in points
maxMana
maxMana: number;Mana it has at most, in points
meter
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
money: ResourceAmount;What the player has of the game's money, the resource shops deal in
name
name: string;Its own name, where the map or the rules gave it one (world.named), else its type's
points
points: number;Unspent points to put into its abilities
pools
pools?: PoolBar[];Its pools beside mana (UnitTypeDef.pools: energy, fury, heat…), under its mana
portrait
portrait?: string;Its face, by address of an image (IconSet.portraits, else its icon)
regen
regen: {
healthRegen?: StatLine;
manaRegen?: StatLine;
};Health and mana regained per second, for the bars
shield
shield: number;What its shields still hold, in points; 0 when it has none
shop
shop: boolean;A shop is close enough to trade with
spells
spells: AbilitySlot[];The two spells it brought along: D and F
stats
stats: StatLine[];The stats the panel lists, one line each
summons
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
typeId: string;The hero's unit type id
typeName
typeName: string;Its type's name: "Paladin" under "Aldric"
xp
xp: number;0..1 of the way to the next level