pda
jvm
core
/
net.artux.pda.map.ecs.characteristics
/
HealthComponent
Health
Component
class
HealthComponent
:
Component
Members
Constructors
Health
Component
Link copied to clipboard
constructor
(
dataRepository
:
DataRepository
)
constructor
(
armorModel
:
ArmorModel
)
Properties
armor
Model
Link copied to clipboard
lateinit
var
armorModel
:
ArmorModel
damaged
Link copied to clipboard
var
damaged
:
Float
health
Link copied to clipboard
var
health
:
Float
immortal
Link copied to clipboard
var
immortal
:
Boolean
radiation
Link copied to clipboard
var
radiation
:
Float
stamina
Link copied to clipboard
var
stamina
:
Float
Functions
chemical
Link copied to clipboard
fun
chemical
(
damage
:
Float
)
damage
Link copied to clipboard
fun
damage
(
damage
:
Float
)
electric
Link copied to clipboard
fun
electric
(
damage
:
Float
)
health
Link copied to clipboard
fun
health
(
value
:
Float
)
is
Dead
Link copied to clipboard
fun
isDead
(
)
:
Boolean
psy
Link copied to clipboard
fun
psy
(
damage
:
Float
)
radiation
Value
Link copied to clipboard
fun
radiationValue
(
inputDamage
:
Float
)
stamina
Link copied to clipboard
fun
stamina
(
value
:
Float
)
thermal
Link copied to clipboard
fun
thermal
(
damage
:
Float
)
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
treat
Link copied to clipboard
fun
treat
(
model
:
MedicineModel
)