Match command and simulation boundary. 更多...
#include <RTSMatch.h>
静态 Public 成员函数 | |
| static Result< void > | addParticipant (Match &match, Faction &faction, int team) |
| Add one live faction before match start. | |
| static Result< void > | start (Match &match) |
| Validate rules/participants and transition Setup to Running. | |
| static Result< void > | surrender (Match &match, Faction &faction) |
| Eliminate a participant and all of its live RTS entities. | |
| static Result< std::size_t > | step (Match &match, const MatchResourceQuery &resources={}) |
| Evaluate the configured victory rule and settle a winner or draw. | |
详细描述
Match command and simulation boundary.
在文件 RTSMatch.h 第 19 行定义.
成员函数说明
◆ addParticipant()
|
static |
Add one live faction before match start.
在文件 RTSMatch.cpp 第 93 行定义.
引用了 eve::Applied, eve::rts::EntityLink< FactionLinkTag >::bind(), eve::Conflict, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::rts::Setup, eve::Status::success() , 以及 eve::Result< T >::success().
被这些函数引用 eve::rts::RTS::addMatchParticipant().
◆ start()
Validate rules/participants and transition Setup to Running.
在文件 RTSMatch.cpp 第 106 行定义.
引用了 eve::Applied, eve::Conflict, eve::rts::DestroyHeadquarters, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::PreconditionViolation, eve::rts::ResourceTarget, eve::rts::Running, eve::rts::Setup, eve::StaleHandle, eve::Status::success() , 以及 eve::Result< T >::success().
被这些函数引用 eve::rts::RTS::startMatch().
◆ step()
|
static |
Evaluate the configured victory rule and settle a winner or draw.
在文件 RTSMatch.cpp 第 146 行定义.
引用了 eve::Applied, eve::rts::DestroyHeadquarters, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::rts::Finished, eve::NoOp, eve::PreconditionViolation, resources, eve::rts::ResourceTarget, eve::rts::Running, eve::Status::success() , 以及 eve::Result< T >::success().
◆ surrender()
Eliminate a participant and all of its live RTS entities.
在文件 RTSMatch.cpp 第 132 行定义.
引用了 eve::Applied, eve::Conflict, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::NotFound, eve::rts::Running, eve::Status::success() , 以及 eve::Result< T >::success().
被这些函数引用 eve::rts::RTS::surrenderMatch().
该类的文档由以下文件生成:
- src/modules/rts/RTSMatch.h
- src/modules/rts/RTSMatch.cpp