Перейти к основному содержанию

Entity.EntityHealth

Class used to manipulate entity's health.

That feature is obsolete

Index

Constructors

constructor

Methods

get

  • get(): number
  • Invocation may throw an error

    No such method.


    Returns number

    Entity's current health value.

getMax

  • getMax(): number
  • Invocation may throw an error

    No such method.


    Returns number

    Entity's maximum health value.

set

  • set(health: number): void
  • Sets entity's current health value.

    Invocation may throw an error

    No such method.


    Parameters

    • health: number

      health value to be set

    Returns void

setMax

  • setMax(maxHealth: number): void
  • Sets entity's maximum health value.

    Invocation may throw an error

    No such method.


    Parameters

    • maxHealth: number

    Returns void