载入中...
搜索中...
未找到
eve::rts::FormationPlanner类 参考

Pure deterministic formation planner. 更多...

#include <RTSSystems.h>

静态 Public 成员函数

static Result< std::vector< WorldPosition > > plan (std::size_t count, WorldPosition anchor, const FormationSpec &spec)
 Plan positions around an anchor for a fixed unit count.
 

详细描述

Pure deterministic formation planner.

Positions are generated in input order. No wall clock or random stream is read, so replay and lockstep callers receive the same layout.

在文件 RTSSystems.h 第 169 行定义.

成员函数说明

◆ plan()

Result< std::vector< WorldPosition > > eve::rts::FormationPlanner::plan ( std::size_t  count,
WorldPosition  anchor,
const FormationSpec &  spec 
)
static

Plan positions around an anchor for a fixed unit count.

参数
countNumber of positions to produce.
anchorFormation anchor position.
specLayout strategy and spacing.
返回
Exactly count positions or a structured validation failure.

在文件 RTSFormation.cpp 第 33 行定义.

引用了 anchor, angle, center, column, eve::rts::Column, columns, eve::rts::FormationSpec::columns, count, eve::rts::Dispersed, eve::Diagnostic::error(), eve::rts::Grid, index, eve::InvalidArgument, eve::InvariantViolation, eve::rts::FormationSpec::kind, eve::rts::Line, eve::NoOp, radius, rows, slots, spacing, eve::rts::FormationSpec::spacing, eve::Status::success(), valid, eve::rts::FormationSpec::validate() , 以及 eve::rts::Wedge.


该类的文档由以下文件生成: