Synchronizes linked RTS units through the canonical Crowd simulation. 更多...
#include <RTSSystems.h>
静态 Public 成员函数 | |
| static Result< std::size_t > | step (const SimulationStep &step, crowd::Crowd &crowd) |
| Push ECS targets into Crowd, advance it once, and project positions back to Unit::Motion. | |
详细描述
Synchronizes linked RTS units through the canonical Crowd simulation.
在文件 RTSSystems.h 第 344 行定义.
成员函数说明
◆ step()
|
static |
Push ECS targets into Crowd, advance it once, and project positions back to Unit::Motion.
在文件 RTSCrowdMotion.cpp 第 14 行定义.
引用了 eve::crowd::Crowd::addNamedAgent(), eve::crowd::Crowd::advance(), eve::Applied, eve::rts::Attack, eve::rts::AttackMove, eve::crowd::Crowd::clearAgentTarget(), eve::Conflict, current, eve::Diagnostic::error(), eve::rts::Escort, eve::Failed, eve::Result< T >::failure(), eve::crowd::Crowd::getAgentInteraction(), eve::crowd::Crowd::getAgentState(), eve::crowd::Crowd::getNamedAgentIndex(), eve::rts::HoldPosition, eve::InvalidArgument, eve::InvariantViolation, key, eve::rts::Move, eve::NoOp, eve::rts::Patrol, priority, eve::crowd::Crowd::removeNamedAgent(), eve::rts::Resupply, eve::crowd::Crowd::setAgentAction(), eve::crowd::Crowd::setAgentAvoidancePriority(), eve::crowd::Crowd::setAgentInteraction(), eve::crowd::Crowd::setAgentPosition(), eve::crowd::Crowd::setAgentRadius(), eve::crowd::Crowd::setAgentSpeed(), eve::crowd::Crowd::setAgentTarget(), settings, state, step, eve::Status::success(), eve::Result< T >::success(), eve::rts::SupplyRelay, target, unit , 以及 view.
该类的文档由以下文件生成:
- src/modules/rts/RTSSystems.h
- src/modules/rts/RTSCrowdMotion.cpp