载入中...
搜索中...
未找到
eve::combat::CombatState结构体 参考

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.

在文件 Damage.h 第 37 行定义.

成员函数说明

◆ 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

在文件 Damage.h 第 39 行定义.

被这些函数引用 eve::combat::DamageRuntime::apply() , 以及 validate().

◆ maxHealth

double eve::combat::CombatState::maxHealth = 0.0

在文件 Damage.h 第 40 行定义.

被这些函数引用 validate().

◆ maxPoise

double eve::combat::CombatState::maxPoise = 0.0

在文件 Damage.h 第 42 行定义.

被这些函数引用 eve::combat::DamageRuntime::apply() , 以及 validate().

◆ poise

double eve::combat::CombatState::poise = 0.0

在文件 Damage.h 第 41 行定义.

被这些函数引用 eve::combat::DamageRuntime::apply() , 以及 validate().

◆ subject

SubjectRef eve::combat::CombatState::subject

在文件 Damage.h 第 38 行定义.

被这些函数引用 validate().


该结构体的文档由以下文件生成: