载入中...
搜索中...
未找到
eve::rpg::RPG类 参考

RPG 模块(eve.RPG):Actor 工厂 + 定义注册 + 帧调度 + 事件缓存。 更多...

#include <RPG.h>

类 eve::rpg::RPG 继承关系图:
eve::Module

Public 成员函数

 Module_REG (RPG)
 
 RPG ()=default
 
 ~RPG () override=default
 
RPGActornewActor ()
 创建一个空白 RPGActor。
 
int registerEffectsFromJson (const std::string &json)
 效果定义注册(数据驱动,进程级注册表)。
 
void clearEffectDefinitions ()
 
int getEffectDefinitionCount ()
 
int registerSkillsFromJson (const std::string &json)
 技能定义注册。
 
void clearSkillDefinitions ()
 
int getSkillDefinitionCount ()
 
void update (float dt)
 推进 StatusSystem / SkillSystem,并刷新本帧的 tick / change / cast 事件缓存。
 
int getTickEventCount () const
 周期状态 tick 事件(上一次 update() 产生的,供脚本轮询)。
 
RPGActorgetTickEventActor (int index) const
 
int getTickEventInstanceId (int index) const
 
std::string getTickEventEffectId (int index) const
 
std::string getTickEventSource (int index) const
 
int getTickEventStacks (int index) const
 
int getStatusChangeEventCount () const
 状态生命周期变更事件(apply/refresh/extend/stack/remove/expire/reject)。
 
RPGActorgetStatusChangeEventActor (int index) const
 
int getStatusChangeEventInstanceId (int index) const
 
std::string getStatusChangeEventEffectId (int index) const
 
std::string getStatusChangeEventSource (int index) const
 
std::string getStatusChangeEventAction (int index) const
 
int getStatusChangeEventStacks (int index) const
 
std::string getStatusChangeEventReason (int index) const
 
int getCastEventCount () const
 技能释放结算事件。
 
RPGActorgetCastEventCaster (int index) const
 
RPGActorgetCastEventTarget (int index) const
 
std::string getCastEventSkillId (int index) const
 
SettlementContextnewSettlementContext ()
 结算:新建上下文 / 运行流水线 / 配置阶段。
 
void runSettlement (const std::string &pipeline, SettlementContext *ctx)
 
int getSettlementStageCount (const std::string &pipeline)
 
bool hasSettlementStage (const std::string &pipeline, const std::string &stage)
 
bool setSettlementStageEnabled (const std::string &pipeline, const std::string &stage, bool enabled)
 
bool setSettlementStagePriority (const std::string &pipeline, const std::string &stage, int priority)
 
bool removeSettlementStage (const std::string &pipeline, const std::string &stage)
 
void clearSettlementPipeline (const std::string &pipeline)
 
- Public 成员函数 继承自 eve::Module
virtual ~Module ()
 
virtual std::string getName () const =0
 

详细描述

RPG 模块(eve.RPG):Actor 工厂 + 定义注册 + 帧调度 + 事件缓存。

在文件 RPG.h28 行定义.

构造及析构函数说明

◆ RPG()

eve::rpg::RPG::RPG ( )
default

◆ ~RPG()

eve::rpg::RPG::~RPG ( )
overridedefault

成员函数说明

◆ clearEffectDefinitions()

void eve::rpg::RPG::clearEffectDefinitions ( )

在文件 RPG.cpp20 行定义.

引用了 eve::rpg::EffectRegistry::clear().

◆ clearSettlementPipeline()

void eve::rpg::RPG::clearSettlementPipeline ( const std::string &  pipeline)

在文件 RPG.cpp154 行定义.

引用了 eve::rpg::SettlementPipeline::clearPipeline().

◆ clearSkillDefinitions()

void eve::rpg::RPG::clearSkillDefinitions ( )

在文件 RPG.cpp28 行定义.

引用了 eve::rpg::SkillRegistry::clear().

◆ getCastEventCaster()

RPGActor * eve::rpg::RPG::getCastEventCaster ( int  index) const

在文件 RPG.cpp110 行定义.

◆ getCastEventCount()

int eve::rpg::RPG::getCastEventCount ( ) const

技能释放结算事件。

在文件 RPG.cpp108 行定义.

◆ getCastEventSkillId()

std::string eve::rpg::RPG::getCastEventSkillId ( int  index) const

在文件 RPG.cpp120 行定义.

◆ getCastEventTarget()

RPGActor * eve::rpg::RPG::getCastEventTarget ( int  index) const

在文件 RPG.cpp115 行定义.

◆ getEffectDefinitionCount()

int eve::rpg::RPG::getEffectDefinitionCount ( )

在文件 RPG.cpp22 行定义.

引用了 eve::rpg::EffectRegistry::count().

◆ getSettlementStageCount()

int eve::rpg::RPG::getSettlementStageCount ( const std::string &  pipeline)

在文件 RPG.cpp132 行定义.

引用了 eve::rpg::SettlementPipeline::stageCount().

◆ getSkillDefinitionCount()

int eve::rpg::RPG::getSkillDefinitionCount ( )

在文件 RPG.cpp30 行定义.

引用了 eve::rpg::SkillRegistry::count().

◆ getStatusChangeEventAction()

std::string eve::rpg::RPG::getStatusChangeEventAction ( int  index) const

在文件 RPG.cpp93 行定义.

◆ getStatusChangeEventActor()

RPGActor * eve::rpg::RPG::getStatusChangeEventActor ( int  index) const

在文件 RPG.cpp73 行定义.

◆ getStatusChangeEventCount()

int eve::rpg::RPG::getStatusChangeEventCount ( ) const

状态生命周期变更事件(apply/refresh/extend/stack/remove/expire/reject)。

在文件 RPG.cpp71 行定义.

◆ getStatusChangeEventEffectId()

std::string eve::rpg::RPG::getStatusChangeEventEffectId ( int  index) const

在文件 RPG.cpp83 行定义.

◆ getStatusChangeEventInstanceId()

int eve::rpg::RPG::getStatusChangeEventInstanceId ( int  index) const

在文件 RPG.cpp78 行定义.

◆ getStatusChangeEventReason()

std::string eve::rpg::RPG::getStatusChangeEventReason ( int  index) const

在文件 RPG.cpp103 行定义.

◆ getStatusChangeEventSource()

std::string eve::rpg::RPG::getStatusChangeEventSource ( int  index) const

在文件 RPG.cpp88 行定义.

◆ getStatusChangeEventStacks()

int eve::rpg::RPG::getStatusChangeEventStacks ( int  index) const

在文件 RPG.cpp98 行定义.

◆ getTickEventActor()

RPGActor * eve::rpg::RPG::getTickEventActor ( int  index) const

在文件 RPG.cpp46 行定义.

◆ getTickEventCount()

int eve::rpg::RPG::getTickEventCount ( ) const

周期状态 tick 事件(上一次 update() 产生的,供脚本轮询)。

在文件 RPG.cpp44 行定义.

◆ getTickEventEffectId()

std::string eve::rpg::RPG::getTickEventEffectId ( int  index) const

在文件 RPG.cpp56 行定义.

◆ getTickEventInstanceId()

int eve::rpg::RPG::getTickEventInstanceId ( int  index) const

在文件 RPG.cpp51 行定义.

◆ getTickEventSource()

std::string eve::rpg::RPG::getTickEventSource ( int  index) const

在文件 RPG.cpp61 行定义.

◆ getTickEventStacks()

int eve::rpg::RPG::getTickEventStacks ( int  index) const

在文件 RPG.cpp66 行定义.

◆ hasSettlementStage()

bool eve::rpg::RPG::hasSettlementStage ( const std::string &  pipeline,
const std::string &  stage 
)

在文件 RPG.cpp136 行定义.

引用了 eve::rpg::SettlementPipeline::hasStage().

◆ Module_REG()

eve::rpg::RPG::Module_REG ( RPG  )

◆ newActor()

RPGActor * eve::rpg::RPG::newActor ( )

创建一个空白 RPGActor。

在文件 RPG.cpp14 行定义.

引用了 eve::rpg::RPGActor::createActor().

◆ newSettlementContext()

SettlementContext * eve::rpg::RPG::newSettlementContext ( )

结算:新建上下文 / 运行流水线 / 配置阶段。

在文件 RPG.cpp125 行定义.

◆ registerEffectsFromJson()

int eve::rpg::RPG::registerEffectsFromJson ( const std::string &  json)

效果定义注册(数据驱动,进程级注册表)。

在文件 RPG.cpp16 行定义.

引用了 eve::rpg::EffectRegistry::loadFromJson().

◆ registerSkillsFromJson()

int eve::rpg::RPG::registerSkillsFromJson ( const std::string &  json)

技能定义注册。

在文件 RPG.cpp24 行定义.

引用了 eve::rpg::SkillRegistry::loadFromJson().

◆ removeSettlementStage()

bool eve::rpg::RPG::removeSettlementStage ( const std::string &  pipeline,
const std::string &  stage 
)

在文件 RPG.cpp150 行定义.

引用了 eve::rpg::SettlementPipeline::unregisterStage().

◆ runSettlement()

void eve::rpg::RPG::runSettlement ( const std::string &  pipeline,
SettlementContext ctx 
)

在文件 RPG.cpp127 行定义.

引用了 eve::rpg::SettlementPipeline::run().

◆ setSettlementStageEnabled()

bool eve::rpg::RPG::setSettlementStageEnabled ( const std::string &  pipeline,
const std::string &  stage,
bool  enabled 
)

在文件 RPG.cpp140 行定义.

引用了 enabled , 以及 eve::rpg::SettlementPipeline::setStageEnabled().

◆ setSettlementStagePriority()

bool eve::rpg::RPG::setSettlementStagePriority ( const std::string &  pipeline,
const std::string &  stage,
int  priority 
)

在文件 RPG.cpp145 行定义.

引用了 priority , 以及 eve::rpg::SettlementPipeline::setStagePriority().

◆ update()

void eve::rpg::RPG::update ( float  dt)

推进 StatusSystem / SkillSystem,并刷新本帧的 tick / change / cast 事件缓存。

在文件 RPG.cpp32 行定义.

引用了 eve::rpg::SkillSystem::pollCastEvents(), eve::rpg::StatusSystem::pollChanges(), eve::rpg::StatusSystem::pollTicks(), eve::rpg::SkillSystem::update() , 以及 eve::rpg::StatusSystem::update().


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