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

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()

Result< void > eve::rts::MatchSystem::addParticipant ( Match &  match,
Faction &  faction,
int  team 
)
static

◆ start()

◆ step()

Result< std::size_t > eve::rts::MatchSystem::step ( Match &  match,
const MatchResourceQuery &  resources = {} 
)
static

◆ surrender()

Result< void > eve::rts::MatchSystem::surrender ( Match &  match,
Faction &  faction 
)
static

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().


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