Mutable combat state owned by the gameplay domain for one subject. 更多...
#include <Damage.h>
Public 成员函数 | |
| Result< void > | validate () const |
| Validate finite ranges and the non-nil subject link. | |
Public 属性 | |
| SubjectRef | subject |
| double | health = 0.0 |
| double | maxHealth = 0.0 |
| double | poise = 0.0 |
| double | maxPoise = 0.0 |
详细描述
Mutable combat state owned by the gameplay domain for one subject.
This is a focused component-like value, not an actor inheritance root. The owning domain resolves SubjectRef lifetime and persists/restores this value.
成员函数说明
◆ validate()
| Result< void > eve::combat::CombatState::validate | ( | ) | const |
Validate finite ranges and the non-nil subject link.
在文件 Damage.cpp 第 139 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), health, eve::InvalidArgument, eve::SubjectRef::isValid(), maxHealth, maxPoise, poise, subject , 以及 eve::Result< T >::success().
类成员变量说明
◆ health
| double eve::combat::CombatState::health = 0.0 |
被这些函数引用 eve::combat::DamageRuntime::apply() , 以及 validate().
◆ maxHealth
| double eve::combat::CombatState::maxHealth = 0.0 |
被这些函数引用 validate().
◆ maxPoise
| double eve::combat::CombatState::maxPoise = 0.0 |
被这些函数引用 eve::combat::DamageRuntime::apply() , 以及 validate().
◆ poise
| double eve::combat::CombatState::poise = 0.0 |
被这些函数引用 eve::combat::DamageRuntime::apply() , 以及 validate().
◆ subject
| SubjectRef eve::combat::CombatState::subject |
被这些函数引用 validate().
该结构体的文档由以下文件生成:
- src/modules/combat/Damage.h
- src/modules/combat/Damage.cpp