载入中...
搜索中...
未找到
eve::climbing::ClimbingControl类 参考final

Exposes server-probed climbing actions without accepting authored world targets. 更多...

#include <ClimbingControl.h>

类 eve::climbing::ClimbingControl 继承关系图:
eve::IGameplayControlProvider eve::IGameplayInstanceCatalog

Public 成员函数

 ClimbingControl (SubjectRef instance, SubjectRef character, ClimbingRuntime &runtime, physics::World3D &world, const ClimbingPose &pose)
 Construct an adapter over one runtime, world and authoritative character pose.
 
 ~ClimbingControl () override
 Unpublish the capability without destroying borrowed authorities.
 
 ClimbingControl (const ClimbingControl &)=delete
 
ClimbingControl & operator= (const ClimbingControl &)=delete
 
std::string_view gameplayDomain () const noexcept override
 Stable provider domain used for discovery and routing.
 
std::vector< SubjectRef > gameplayInstances () const override
 Instances currently served, in publication order.
 
Result< GameplayObservation > observeGameplay (const GameplaySession &session, SubjectRef instance) const override
 Observe one provider-owned gameplay instance without mutation.
 
Result< std::vector< GameplayActionDescriptor > > availableGameplayActions (const GameplaySession &session, SubjectRef instance, SubjectRef subject) const override
 Discover currently legal player-semantic actions for one subject.
 
Result< GameplayCommandReceipt > submitGameplay (const GameplaySession &session, SubjectRef instance, const GameplayCommand &command) override
 Validate authority and atomically submit one domain command.
 
Result< GameplayObservation > advanceGameplay (const GameplaySession &session, SubjectRef instance, const SimulationStep &step) override
 Advance one provider-owned instance using injected deterministic time.
 
Result< std::vector< GameplayEvent > > gameplayEvents (const GameplaySession &session, SubjectRef instance, std::uint64_t afterSequence) const override
 Return events strictly newer than an instance-local sequence cursor.
 
- Public 成员函数 继承自 eve::IGameplayControlProvider
virtual ~IGameplayControlProvider ()=default
 Releases IGameplayControlProvider resources.
 
- Public 成员函数 继承自 eve::IGameplayInstanceCatalog
virtual ~IGameplayInstanceCatalog ()=default
 Releases IGameplayInstanceCatalog resources.
 

额外继承的成员函数

- 静态 Public 属性 继承自 eve::IGameplayControlProvider
static constexpr const char * capabilityName = "IGameplayControlProvider"
 
- 静态 Public 属性 继承自 eve::IGameplayInstanceCatalog
static constexpr const char * capabilityName = "IGameplayInstanceCatalog"
 

详细描述

Exposes server-probed climbing actions without accepting authored world targets.

Runtime, physics world and pose remain borrowed authoritative collaborators. They must outlive this owner-thread-affine adapter. Commands carry only player semantics; begin always re-probes the borrowed authoritative world.

在文件 ClimbingControl.h 第 23 行定义.

构造及析构函数说明

◆ ClimbingControl() [1/2]

eve::climbing::ClimbingControl::ClimbingControl ( SubjectRef  instance,
SubjectRef  character,
ClimbingRuntime &  runtime,
physics::World3D &  world,
const ClimbingPose &  pose 
)

Construct an adapter over one runtime, world and authoritative character pose.

参数
instanceStable identity of this climbing-control instance.
characterStable player-controllable character identity.
runtimeBorrowed authoritative climbing lifecycle.
worldBorrowed physics world used synchronously for probing and movement.
poseBorrowed server-owned pose used synchronously for every new probe.

在文件 ClimbingControl.cpp 第 56 行定义.

◆ ~ClimbingControl()

eve::climbing::ClimbingControl::~ClimbingControl ( )
override

Unpublish the capability without destroying borrowed authorities.

在文件 ClimbingControl.cpp 第 64 行定义.

◆ ClimbingControl() [2/2]

eve::climbing::ClimbingControl::ClimbingControl ( const ClimbingControl &  )
delete

成员函数说明

◆ advanceGameplay()

Result< GameplayObservation > eve::climbing::ClimbingControl::advanceGameplay ( const GameplaySession &  session,
SubjectRef  instance,
const SimulationStep &  step 
)
overridevirtual

Advance one provider-owned instance using injected deterministic time.

Advance gameplay.

实现了 eve::IGameplayControlProvider.

在文件 ClimbingControl.cpp 第 220 行定义.

引用了 eve::Conflict, eve::Diagnostic::error(), eve::Result< T >::failure(), session , 以及 step.

◆ availableGameplayActions()

Result< std::vector< GameplayActionDescriptor > > eve::climbing::ClimbingControl::availableGameplayActions ( const GameplaySession &  session,
SubjectRef  instance,
SubjectRef  subject 
) const
overridevirtual

Discover currently legal player-semantic actions for one subject.

Available gameplay actions.

实现了 eve::IGameplayControlProvider.

在文件 ClimbingControl.cpp 第 121 行定义.

引用了 actions, eve::Diagnostic::error(), eve::climbing::Hanging, id, observeGameplay(), eve::climbing::ClimbingRuntime::phase(), phase, eve::PreconditionViolation, session , 以及 subject.

◆ gameplayDomain()

std::string_view eve::climbing::ClimbingControl::gameplayDomain ( ) const
overridevirtualnoexcept

Stable provider domain used for discovery and routing.

Gameplay domain.

实现了 eve::IGameplayControlProvider.

在文件 ClimbingControl.cpp 第 69 行定义.

◆ gameplayEvents()

Result< std::vector< GameplayEvent > > eve::climbing::ClimbingControl::gameplayEvents ( const GameplaySession &  session,
SubjectRef  instance,
std::uint64_t  afterSequence 
) const
overridevirtual

Return events strictly newer than an instance-local sequence cursor.

Gameplay events.

实现了 eve::IGameplayControlProvider.

在文件 ClimbingControl.cpp 第 241 行定义.

引用了 eve::Applied, eve::NoOp, eve::GameplayEvent::sequence, session , 以及 eve::Status::success().

◆ gameplayInstances()

std::vector< SubjectRef > eve::climbing::ClimbingControl::gameplayInstances ( ) const
overridevirtual

Instances currently served, in publication order.

Gameplay instances.

实现了 eve::IGameplayInstanceCatalog.

在文件 ClimbingControl.cpp 第 71 行定义.

引用了 eve::SubjectRef::isValid().

◆ observeGameplay()

◆ operator=()

ClimbingControl & eve::climbing::ClimbingControl::operator= ( const ClimbingControl &  )
delete

◆ submitGameplay()


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