Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: HealthIntComponent

[15:7] extends: RechargeableIntComponent

Wraps FXGL's HealthIntComponent (com.almasb.fxgl.dsl.components.HealthIntComponent), a concrete RechargeableIntComponent for int-valued HP. Inherits the full damage / restore / percent API from RechargeableIntComponent.

Methods

  • HealthIntComponent (int MaxValue = 0)

    Creates a new HealthIntComponent.

    • @p MaxValue is the initial max HP (defaults to 0).
  • adopt (object Ajo)

    Wraps an existing HealthIntComponent AussomJavaObject.