Input to the pure formation planner. 更多...
#include <RTSSystems.h>
Public 成员函数 | |
| EVENGINE_API_DOMAINS Result< void > | validate () const |
| Validate layout kind, spacing, grid columns and finite rotation. | |
Public 属性 | |
| FormationKind | kind = FormationKind::Line |
| float | spacing = 32.0f |
| int | columns = 0 |
| float | rotationRadians = 0.f |
| Counterclockwise rotation around the anchor; zero preserves legacy layouts. | |
详细描述
Input to the pure formation planner.
在文件 RTSSystems.h 第 34 行定义.
成员函数说明
◆ validate()
| Result< void > eve::rts::FormationSpec::validate | ( | ) | const |
Validate layout kind, spacing, grid columns and finite rotation.
在文件 RTSFormation.cpp 第 12 行定义.
引用了 eve::Applied, eve::rts::Column, columns, eve::rts::Dispersed, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::rts::Grid, eve::InvalidArgument, kind, eve::rts::Line, rotationRadians, spacing, eve::Status::success(), eve::Result< T >::success() , 以及 eve::rts::Wedge.
被这些函数引用 eve::rts::CommandFanOutSystem::fanOut(), eve::rts::FormationPlanner::plan() , 以及 eve::rts::RTSCommandLog::queue().
类成员变量说明
◆ columns
| int eve::rts::FormationSpec::columns = 0 |
在文件 RTSSystems.h 第 37 行定义.
被这些函数引用 eve::rts::FormationPlanner::plan() , 以及 validate().
◆ kind
| FormationKind eve::rts::FormationSpec::kind = FormationKind::Line |
◆ rotationRadians
| float eve::rts::FormationSpec::rotationRadians = 0.f |
Counterclockwise rotation around the anchor; zero preserves legacy layouts.
在文件 RTSSystems.h 第 38 行定义.
被这些函数引用 validate().
◆ spacing
| float eve::rts::FormationSpec::spacing = 32.0f |
该结构体的文档由以下文件生成:
- src/modules/rts/RTSSystems.h
- src/modules/rts/RTSFormation.cpp