Authoritative deterministic lifecycle and scheduling state. 更多...
#include <TacticsTypes.h>
Public 属性 | |
| Revision | revision |
| BattleStatus | status = BattleStatus::Setup |
| BattlePhase | phase = BattlePhase::Setup |
| std::string | policyId {kSideAlternatingPolicyId} |
| SimulationTick | tick = SimulationTick::zero() |
| std::uint64_t | round = 0 |
| std::size_t | cursor = 0 |
| std::optional< ecs::EntityHandle > | activeSide |
| std::optional< ecs::EntityHandle > | activeUnit |
| std::vector< ecs::EntityHandle > | sides |
| std::vector< ecs::EntityHandle > | units |
Every unit of this battle, as declared by newUnit. | |
| std::vector< ecs::EntityHandle > | schedule |
| The current round's activation queue, in activation order. | |
详细描述
Authoritative deterministic lifecycle and scheduling state.
在文件 TacticsTypes.h 第 463 行定义.
类成员变量说明
◆ activeSide
| std::optional<ecs::EntityHandle> eve::tactics::Battle::TurnState::activeSide |
在文件 TacticsTypes.h 第 471 行定义.
◆ activeUnit
| std::optional<ecs::EntityHandle> eve::tactics::Battle::TurnState::activeUnit |
在文件 TacticsTypes.h 第 472 行定义.
◆ cursor
| std::size_t eve::tactics::Battle::TurnState::cursor = 0 |
在文件 TacticsTypes.h 第 470 行定义.
◆ phase
| BattlePhase eve::tactics::Battle::TurnState::phase = BattlePhase::Setup |
在文件 TacticsTypes.h 第 466 行定义.
◆ policyId
| std::string eve::tactics::Battle::TurnState::policyId {kSideAlternatingPolicyId} |
在文件 TacticsTypes.h 第 467 行定义.
◆ revision
| Revision eve::tactics::Battle::TurnState::revision |
在文件 TacticsTypes.h 第 464 行定义.
◆ round
| std::uint64_t eve::tactics::Battle::TurnState::round = 0 |
在文件 TacticsTypes.h 第 469 行定义.
◆ schedule
| std::vector<ecs::EntityHandle> eve::tactics::Battle::TurnState::schedule |
The current round's activation queue, in activation order.
cursor indexes this list. It is a subset of units: a policy with a charge model leaves units out of the queue until they have accumulated enough charge, so the queue can be shorter than the roster and it changes from round to round. Persisted (snapshot v5) because a round may be suspended by a save at any activation.
在文件 TacticsTypes.h 第 490 行定义.
◆ sides
| std::vector<ecs::EntityHandle> eve::tactics::Battle::TurnState::sides |
在文件 TacticsTypes.h 第 473 行定义.
◆ status
| BattleStatus eve::tactics::Battle::TurnState::status = BattleStatus::Setup |
在文件 TacticsTypes.h 第 465 行定义.
◆ tick
| SimulationTick eve::tactics::Battle::TurnState::tick = SimulationTick::zero() |
在文件 TacticsTypes.h 第 468 行定义.
◆ units
| std::vector<ecs::EntityHandle> eve::tactics::Battle::TurnState::units |
Every unit of this battle, as declared by newUnit.
This is the membership roster and the authority for "which units exist". It is not an activation queue: see schedule.
在文件 TacticsTypes.h 第 480 行定义.
该结构体的文档由以下文件生成:
- src/modules/tactics/TacticsTypes.h