Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthInfo ¶
type HealthInfo struct { // Maximum HP MaxHP int // Border between critical and weak state WeakLevel int // Parameters of the updateHP function Width float64 Tau float64 // HP required to leave the critical level and reach the weak level HPReqCToW int // HP value attributed in the critical level HPCritical int // Number of days an agent can stay critical before dying MaxDayCritical int // HP loss when currentHP = weakLevel HPLossBase int // HP loss slope w.r.t currentHP - weakLevel HPLossSlope float64 }
func NewHealthInfo ¶
func NewHealthInfo(parameters *config.ConfigParameters) *HealthInfo
Click to show internal directories.
Click to hide internal directories.