载入中...
搜索中...
未找到
Crowd.h 文件参考
#include "common/Export.h"
#include "common/LifetimeWitness.h"
#include "common/Module.h"
#include "common/Time.h"
#include "crowd/CrowdField.h"
#include "crowd/CrowdTypes.h"
#include <cstdint>
#include <limits>
#include <memory>
#include <optional>
#include <span>
#include <string>
#include <vector>

浏览源代码.

类

struct  eve::crowd::AgentState
 单个单位的状态快照(脚本 getAgentState 返回值)。 action: 0=idle, 1=flow, 2=seek, 3=boids。 更多...
 
struct  eve::crowd::FlowVec
 流场采样结果(脚本 flowAtWorld / flowAtCell 返回值)。 更多...
 
struct  eve::crowd::FlowSample
 Owning lease sample with explicit reachability. 更多...
 
struct  eve::crowd::FieldObservation
 Owning navigation metadata; no arrays or pointers are borrowed. 更多...
 
struct  eve::crowd::AdvanceBudget
 Deterministic operation budgets; exhaustion rejects the entire step before publication. 更多...
 
struct  eve::crowd::CrowdStep
 Explicit owner step; positive duration consumes the next contiguous tick. Zero reconciles current tick. 更多...
 
struct  eve::crowd::StepReport
 Owning observations of one completed advance; simulation-thread only. 更多...
 
struct  eve::crowd::AvoidanceSettings
 Optional bounded velocity sampling for RTS local avoidance. 更多...
 
struct  eve::crowd::AgentInteraction
 Independent local interaction policy, copied into Crowd storage. 更多...
 
struct  eve::crowd::InteractionPolicy
 Canonical independent predictive-steering and body-contact policy; both filters are symmetric. 更多...
 
struct  eve::crowd::SteeringIntent
 Owning local steering request; does not retain navigation or gameplay objects. 更多...
 
struct  eve::crowd::AgentUpdate
 Owned changes for one live agent. Absent fields keep their existing values. 更多...
 
struct  eve::crowd::AgentUpdateBatch
 Caller-built atomic update batch; duplicate agent references are rejected. 更多...
 
struct  eve::crowd::AgentRemovalBatch
 Owned identities to remove atomically; duplicate and stale references are rejected. 更多...
 
struct  eve::crowd::AgentRelocation
 Explicit relocation of one live agent; velocity resets while identity and intent remain. 更多...
 
struct  eve::crowd::AgentRelocationBatch
 Atomic exact placement batch; rejects terrain/contact violations without pushing neighbors. 更多...
 
struct  eve::crowd::AgentBatchReceipt
 Owning receipt for a committed update or removal batch. 更多...
 
struct  eve::crowd::AgentFrameEntry
 Owning row for a reusable renderer-neutral output frame. 更多...
 
struct  eve::crowd::AgentFrame
 Caller-owned frame storage; no pointers into Crowd are retained. 更多...
 
struct  eve::crowd::SpawnRequest
 One named agent to create; all fields are owned values. 更多...
 
struct  eve::crowd::SpawnBatch
 Caller-built transaction; positive budgets bound search and relaxation. @cost Linear in requested agents plus bounded candidate/contact checks; callers amortize by batching spawns. 更多...
 
struct  eve::crowd::SpawnPlacement
 Owning placement result, independent of compact slots and subsequent removal. 更多...
 
struct  eve::crowd::SpawnReceipt
 Observations from a committed spawn transaction. @cost Linear in created placement count; returned by value once per spawn batch. 更多...
 
class  eve::crowd::Crowd
 群体行为模块:连续流场寻路 + 海量单位移动/转向/行动 + Boids 鸟群。 更多...
 
class  eve::crowd::Crowd::SurfacePlan
 Move-only prepared terrain/navigation publication. 更多...
 
struct  eve::crowd::Crowd::FlowBuildProgress
 Deterministic work consumed by a navigation advancement. 更多...
 
class  eve::crowd::Crowd::FlowBuildPlan
 Move-only navigation workstate; contains no borrowed provider pointers. 更多...
 
class  eve::crowd::Crowd::Snapshot
 Immutable in-process checkpoint; not a persistent or cross-process format. 更多...
 
class  eve::crowd::Crowd::RestorePlan
 Prepared restore workspace; owns allocations until commit or destruction. 更多...
 
class  eve::crowd::Crowd::AgentUpdatePlan
 Move-only owning preparation token; contains values and owner identity, never a Crowd pointer. @ownership Holds immutable flow leases when present; provider-first destruction is safe. @lifetime Single successful commit; restore or stale references reject atomically. @thread Owner thread only. @reentrancy No callbacks. Not persistent or cross-process data. 更多...
 

命名空间

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

类型定义

using eve::crowd::AgentCreateBatch = SpawnBatch
 Canonical creation batch; reuses the existing atomic placement policies and budgets.
 

枚举

enum class  eve::crowd::FlowSampleState { eve::crowd::Reachable , eve::crowd::Unreachable }
 Reachability is distinct from gameplay arrival. 更多...
 
enum class  eve::crowd::SolveQuality : std::uint32_t { eve::crowd::Complete = 0 , eve::crowd::PredictionTruncated = 1 , eve::crowd::ContactResidual = 2 , eve::crowd::WallResidual = 4 }
 Independent quality flags; complete is zero, truncation/residuals may coexist. 更多...
 
enum class  eve::crowd::AgentAction : std::int32_t { eve::crowd::Idle = 0 , eve::crowd::Flow = 1 , eve::crowd::Seek = 2 , eve::crowd::Boids = 3 }
 Strong locomotion intent; numeric values retain compatibility action codes. 更多...
 
enum class  eve::crowd::SpawnPolicy { eve::crowd::RejectOverlap , eve::crowd::NearestFree , eve::crowd::PushNeighbors }
 Placement policy for an atomic spawn batch. 更多...