载入中...
搜索中...
未找到
TacticsTypes.h 文件参考

Deterministic board values and short-root ECS entities for tactics. 更多...

#include "common/Export.h"
#include "common/ECS.h"
#include "common/Identity.h"
#include "common/Result.h"
#include "common/Revision.h"
#include "common/SubjectRef.h"
#include "common/Time.h"
#include <compare>
#include <cstdint>
#include <map>
#include <optional>
#include <string>
#include <string_view>
#include <tuple>
#include <utility>
#include <vector>

浏览源代码.

类

struct  eve::tactics::Cell
 Logical board coordinate independent of rendering projection. 更多...
 
struct  eve::tactics::TurnPolicyKind
 Typed spelling of the built-in turn-policy ids. 更多...
 
struct  eve::tactics::CellState
 One authoritative board cell fact. 更多...
 
struct  eve::tactics::EdgeState
 One authoritative directed edge fact between two adjacent cells. 更多...
 
struct  eve::tactics::BoardCellRecord
 Owning persistent board record used by snapshots and replay inspection. 更多...
 
struct  eve::tactics::BoardEdgeRecord
 Owning persistent edge record used by snapshots and replay inspection. 更多...
 
struct  eve::tactics::TurnResourceSpec
 Initial and per-round tactical resource values for one unit. 更多...
 
class  eve::tactics::BoardState
 Authoritative board facts and occupancy indexes for one battle. 更多...
 
class  eve::tactics::TacticalSide
 Tactical side short-root entity. 更多...
 
struct  eve::tactics::TacticalSide::Identity
 Cold, persistent and authoritative identity component. 更多...
 
class  eve::tactics::TacticalUnit
 Tactical unit short-root entity. 更多...
 
struct  eve::tactics::TacticalUnit::Identity
 Cold, persistent and authoritative identity component. 更多...
 
struct  eve::tactics::TacticalUnit::Membership
 Linked battle and side identities; both are generation checked on use. 更多...
 
struct  eve::tactics::TacticalUnit::Position
 Hot authoritative tactical position and facing. 更多...
 
struct  eve::tactics::TacticalUnit::TurnResources
 Hot authoritative per-turn resources. 更多...
 
struct  eve::tactics::BattleEvent
 One deterministic battle lifecycle event owned by Battle. 更多...
 
struct  eve::tactics::ReactionCandidate
 One eligible deterministic reaction choice. 更多...
 
struct  eve::tactics::ReactionWindow
 One open reaction window on the battle-owned LIFO stack. 更多...
 
struct  eve::tactics::ReactionReceipt
 Accepted reaction identity and remaining resource snapshot. 更多...
 
struct  eve::tactics::BattleCommand
 One accepted replay command using only persistent identities and values. 更多...
 
struct  eve::tactics::ObjectiveSpec
 Persistent objective definition using stable side identities. 更多...
 
struct  eve::tactics::ObjectiveState
 Mutable objective projection and completion revision. 更多...
 
class  eve::tactics::Battle
 Battle short-root and authoritative owner of board and turn state. 更多...
 
struct  eve::tactics::Battle::Identity
 Cold, persistent and authoritative battle identity. 更多...
 
struct  eve::tactics::Battle::Board
 Authoritative board component. 更多...
 
struct  eve::tactics::Battle::TurnState
 Authoritative deterministic lifecycle and scheduling state. 更多...
 
struct  eve::tactics::Battle::Events
 Transient deterministic event projection; not a second state authority. 更多...
 
struct  eve::tactics::Battle::Reactions
 Authoritative transient reaction stack and root-chain cycle guard. 更多...
 
struct  eve::tactics::Battle::Commands
 Accepted external commands in deterministic sequence order. 更多...
 
struct  eve::tactics::Battle::Objectives
 Authoritative objective definitions and completion state. 更多...
 
struct  eve::tactics::Battle::RandomStreamState
 One named deterministic random stream's serializable state. 更多...
 
struct  eve::tactics::Battle::Random
 Battle-owned named random streams; previews never mutate this component. 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::tactics
 

枚举

enum class  eve::tactics::BoardTopology : std::uint8_t { eve::tactics::Square4 , eve::tactics::Square8 , eve::tactics::HexAxial , eve::tactics::ExplicitGraph }
 Supported deterministic board-neighbour topologies. 更多...
 
enum class  eve::tactics::BattleStatus : std::uint8_t { eve::tactics::Setup , eve::tactics::Running , eve::tactics::Ended }
 Tactical battle lifecycle. 更多...
 
enum class  eve::tactics::BattlePhase : std::uint8_t {
  eve::tactics::Setup , eve::tactics::BattleStart , eve::tactics::RoundStart , eve::tactics::TurnStart ,
  eve::tactics::Acting , eve::tactics::Reaction , eve::tactics::TurnEnd , eve::tactics::RoundEnd ,
  eve::tactics::BattleEnd
}
 Explicit, externally observable battle phase. 更多...
 
enum class  eve::tactics::BattleCommandKind : std::uint8_t {
  eve::tactics::Start , eve::tactics::Advance , eve::tactics::Move , eve::tactics::Face ,
  eve::tactics::Wait , eve::tactics::EndTurn , eve::tactics::Finish , eve::tactics::OpenReaction ,
  eve::tactics::AcceptReaction , eve::tactics::DeclineReaction , eve::tactics::DefeatUnit , eve::tactics::RollRandom ,
  eve::tactics::UseAbility
}
 Accepted deterministic command kinds recorded for replay. 更多...
 
enum class  eve::tactics::ObjectiveKind : std::uint8_t { eve::tactics::EliminateSide , eve::tactics::SurviveRounds , eve::tactics::OccupyCells }
 Built-in deterministic objective rules. 更多...
 
enum class  eve::tactics::ObjectiveStatus : std::uint8_t { eve::tactics::Pending , eve::tactics::Completed }
 Objective lifecycle owned by its battle. 更多...
 

函数

std::string_view eve::tactics::phaseName (BattlePhase phase) noexcept
 Return the stable protocol spelling of a battle phase.
 
std::string_view eve::tactics::statusName (BattleStatus status) noexcept
 Return the stable protocol spelling of a battle status.
 
std::string_view eve::tactics::commandKindName (BattleCommandKind kind) noexcept
 Return the stable protocol spelling of an accepted command kind.
 

变量

constexpr std::string_view eve::tactics::kSideAlternatingPolicyId = "side_alternating"
 Stable id of the built-in side-alternating turn policy.
 
constexpr std::string_view eve::tactics::kInitiativePolicyId = "initiative"
 Stable id of the built-in per-unit initiative turn policy.
 
constexpr std::string_view eve::tactics::kChargeTimeBattlePolicyId = "charge_time_battle"
 Stable id of the built-in charge-time (CTB/ATB) turn policy.
 
constexpr int eve::tactics::kChargeTimeBattleThreshold = 100
 Charge a unit must accumulate before it may activate under CTB scheduling.
 
constexpr std::size_t eve::tactics::kMaxAbilityPayloadBytes = 4096
 Upper bound on the opaque ability payload a declaration may carry.
 

详细描述

Deterministic board values and short-root ECS entities for tactics.

在文件 TacticsTypes.h 中定义.