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

The scheduling projection a policy is allowed to compare. 更多...

#include <TurnPolicy.h>

Public 属性

int initiative = 0
 Per-turn initiative declared by the unit's turn resources.
 
std::size_t sideIndex = 0
 Index of the unit's side inside the battle's side list.
 
int charge = 0
 Charge accumulated by this unit under a charge-time policy.
 

详细描述

The scheduling projection a policy is allowed to compare.

This carries values, not handles, on purpose: a policy cannot resolve a unit, mutate it, or depend on a component the caller did not offer, so a policy cannot quietly become a second authority over battle state. It also means the projection has no lifetime relationship with the battle.

在文件 TurnPolicy.h 第 35 行定义.

类成员变量说明

◆ charge

int eve::tactics::UnitOrder::charge = 0

Charge accumulated by this unit under a charge-time policy.

Always 0 for a policy whose ChargeModel declares no charge, so a policy that ignores this field cannot be affected by it.

在文件 TurnPolicy.h 第 46 行定义.

◆ initiative

int eve::tactics::UnitOrder::initiative = 0

Per-turn initiative declared by the unit's turn resources.

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

◆ sideIndex

std::size_t eve::tactics::UnitOrder::sideIndex = 0

Index of the unit's side inside the battle's side list.

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


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