载入中...
搜索中...
未找到
eve::scene::PcgGrowth类 参考

Caller-owned one-shot Pcg Growth state with explicit time and random seed. 更多...

#include <PcgGrowth.h>

Public 成员函数

Result< void > configure (float startScale, float endScale, float variance, float duration)
 Configure scale interval, variance, and duration atomically.
 
Result< void > start (float now, std::uint32_t seed)
 Choose the final scale from seed and begin at absolute real time.
 
Result< float > advance (float now)
 Evaluate the linear scale at absolute real time.
 
Result< void > die (float now)
 Schedule destruction five seconds from absolute real time.
 
Result< bool > shouldDestroy (float now) const
 Return whether delayed destruction is due.
 
float getActualEndScale () const noexcept
 Return selected end scale.
 
float getScale () const noexcept
 Return last evaluated scale.
 
bool getFinished () const noexcept
 Return whether growth reached its end.
 

详细描述

Caller-owned one-shot Pcg Growth state with explicit time and random seed.

在文件 PcgGrowth.h 第 8 行定义.

成员函数说明

◆ advance()

Result< float > eve::scene::PcgGrowth::advance ( float  now)

Evaluate the linear scale at absolute real time.

在文件 PcgGrowth.cpp 第 11 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::Result< T >::success() , 以及 t.

◆ configure()

Result< void > eve::scene::PcgGrowth::configure ( float  startScale,
float  endScale,
float  variance,
float  duration 
)

Configure scale interval, variance, and duration atomically.

在文件 PcgGrowth.cpp 第 9 行定义.

引用了 a, b, d, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::Result< T >::success() , 以及 v.

◆ die()

Result< void > eve::scene::PcgGrowth::die ( float  now)

Schedule destruction five seconds from absolute real time.

在文件 PcgGrowth.cpp 第 12 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument , 以及 eve::Result< T >::success().

◆ getActualEndScale()

float eve::scene::PcgGrowth::getActualEndScale ( ) const
inlinenoexcept

Return selected end scale.

在文件 PcgGrowth.h 第 15 行定义.

◆ getFinished()

bool eve::scene::PcgGrowth::getFinished ( ) const
inlinenoexcept

Return whether growth reached its end.

在文件 PcgGrowth.h 第 17 行定义.

◆ getScale()

float eve::scene::PcgGrowth::getScale ( ) const
inlinenoexcept

Return last evaluated scale.

在文件 PcgGrowth.h 第 16 行定义.

◆ shouldDestroy()

Result< bool > eve::scene::PcgGrowth::shouldDestroy ( float  now) const

Return whether delayed destruction is due.

在文件 PcgGrowth.cpp 第 13 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument , 以及 eve::Result< T >::success().

◆ start()

Result< void > eve::scene::PcgGrowth::start ( float  now,
std::uint32_t  seed 
)

Choose the final scale from seed and begin at absolute real time.

在文件 PcgGrowth.cpp 第 10 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, seed , 以及 eve::Result< T >::success().


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