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

单个单位的状态快照(脚本 getAgentState 返回值)。 action: 0=idle, 1=flow, 2=seek, 3=boids。 更多...

#include <Crowd.h>

Public 属性

float x = 0.f
 世界 X
 
float y = 0.f
 世界 Y
 
float heading = 0.f
 朝向(弧度,0=+X)
 
float speed = 0.f
 当前速度大小
 
float vx = 0.f
 速度 X
 
float vy = 0.f
 速度 Y
 
int action = -1
 行动枚举(-1=非法 id)
 
int data = 0
 游戏自定义标记
 
int avoidancePriority = 0
 Higher-priority agents yield less during overlap resolution.
 
std::uint64_t flowGeneration = 0
 Selected lease generation; zero selects the compatibility default.
 
MovementBinding movement
 Owning movement selection, independent of dense storage.
 

详细描述

单个单位的状态快照(脚本 getAgentState 返回值)。 action: 0=idle, 1=flow, 2=seek, 3=boids。

在文件 Crowd.h 第 27 行定义.

类成员变量说明

◆ action

int eve::crowd::AgentState::action = -1

行动枚举(-1=非法 id)

在文件 Crowd.h 第 34 行定义.

被这些函数引用 eve::crowd::Crowd::getAgentState().

◆ avoidancePriority

int eve::crowd::AgentState::avoidancePriority = 0

Higher-priority agents yield less during overlap resolution.

在文件 Crowd.h 第 36 行定义.

◆ data

int eve::crowd::AgentState::data = 0

游戏自定义标记

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

◆ flowGeneration

std::uint64_t eve::crowd::AgentState::flowGeneration = 0

Selected lease generation; zero selects the compatibility default.

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

◆ heading

float eve::crowd::AgentState::heading = 0.f

朝向(弧度,0=+X)

在文件 Crowd.h 第 30 行定义.

◆ movement

MovementBinding eve::crowd::AgentState::movement

Owning movement selection, independent of dense storage.

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

◆ speed

float eve::crowd::AgentState::speed = 0.f

当前速度大小

在文件 Crowd.h 第 31 行定义.

◆ vx

float eve::crowd::AgentState::vx = 0.f

速度 X

在文件 Crowd.h 第 32 行定义.

◆ vy

float eve::crowd::AgentState::vy = 0.f

速度 Y

在文件 Crowd.h 第 33 行定义.

◆ x

float eve::crowd::AgentState::x = 0.f

世界 X

在文件 Crowd.h 第 28 行定义.

◆ y

float eve::crowd::AgentState::y = 0.f

世界 Y

在文件 Crowd.h 第 29 行定义.


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