Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
monopoly::sequence::SequenceClock Class Referencefinal

#include <SequenceClock.hpp>

Public Member Functions

std::expected< ClockUpdate, ClockError > update (std::int32_t parentClock, bool forceReevaluation=false)
 
std::expected< void, ClockError > supplyVideoClock (std::int32_t mediaClock, std::int32_t duration, bool ended)
 
std::expected< void, ClockError > supplySoundClock (std::int32_t mediaClock)
 
std::int32_t elapsedParentClock () const noexcept
 
std::expected< void, ClockError > setPaused (bool paused, std::int32_t parentClock)
 
void hibernateScrollingWorld (std::int32_t parentClock) noexcept
 
ClockUpdate seek (std::int32_t newTime, std::int32_t parentClock)
 
std::expected< void, ClockError > setEndingAction (std::uint8_t action)
 
std::int32_t clock () const noexcept
 
std::int32_t endTime () const noexcept
 
std::uint8_t timeMultiple () const noexcept
 
std::uint8_t endingAction () const noexcept
 
bool paused () const noexcept
 
bool stopped () const noexcept
 

Static Public Member Functions

static std::expected< SequenceClock, ClockError > start (const data::LegacySequenceRecord &record, ClockStartOptions options={})
 

Static Public Attributes

static constexpr std::int32_t InfiniteEndTime = 1'234'567'890
 

Detailed Description

Definition at line 59 of file SequenceClock.hpp.

Member Function Documentation

◆ clock()

std::int32_t monopoly::sequence::SequenceClock::clock ( ) const
inlinenoexcept

Definition at line 93 of file SequenceClock.hpp.

◆ elapsedParentClock()

std::int32_t monopoly::sequence::SequenceClock::elapsedParentClock ( ) const
inlinenoexcept

Definition at line 81 of file SequenceClock.hpp.

◆ endingAction()

std::uint8_t monopoly::sequence::SequenceClock::endingAction ( ) const
inlinenoexcept

Definition at line 96 of file SequenceClock.hpp.

◆ endTime()

std::int32_t monopoly::sequence::SequenceClock::endTime ( ) const
inlinenoexcept

Definition at line 94 of file SequenceClock.hpp.

◆ hibernateScrollingWorld()

void monopoly::sequence::SequenceClock::hibernateScrollingWorld ( std::int32_t  parentClock)
noexcept

Definition at line 208 of file SequenceClock.cpp.

◆ paused()

bool monopoly::sequence::SequenceClock::paused ( ) const
inlinenoexcept

Definition at line 97 of file SequenceClock.hpp.

◆ seek()

ClockUpdate monopoly::sequence::SequenceClock::seek ( std::int32_t  newTime,
std::int32_t  parentClock 
)

Definition at line 222 of file SequenceClock.cpp.

◆ setEndingAction()

std::expected< void, ClockError > monopoly::sequence::SequenceClock::setEndingAction ( std::uint8_t  action)

Definition at line 248 of file SequenceClock.cpp.

◆ setPaused()

std::expected< void, ClockError > monopoly::sequence::SequenceClock::setPaused ( bool  paused,
std::int32_t  parentClock 
)

Definition at line 196 of file SequenceClock.cpp.

◆ start()

std::expected< SequenceClock, ClockError > monopoly::sequence::SequenceClock::start ( const data::LegacySequenceRecord &  record,
ClockStartOptions  options = {} 
)
static

Definition at line 32 of file SequenceClock.cpp.

◆ stopped()

bool monopoly::sequence::SequenceClock::stopped ( ) const
inlinenoexcept

Definition at line 98 of file SequenceClock.hpp.

◆ supplySoundClock()

std::expected< void, ClockError > monopoly::sequence::SequenceClock::supplySoundClock ( std::int32_t  mediaClock)

Definition at line 188 of file SequenceClock.cpp.

◆ supplyVideoClock()

std::expected< void, ClockError > monopoly::sequence::SequenceClock::supplyVideoClock ( std::int32_t  mediaClock,
std::int32_t  duration,
bool  ended 
)

Definition at line 180 of file SequenceClock.cpp.

◆ timeMultiple()

std::uint8_t monopoly::sequence::SequenceClock::timeMultiple ( ) const
inlinenoexcept

Definition at line 95 of file SequenceClock.hpp.

◆ update()

std::expected< ClockUpdate, ClockError > monopoly::sequence::SequenceClock::update ( std::int32_t  parentClock,
bool  forceReevaluation = false 
)

Definition at line 78 of file SequenceClock.cpp.

Member Data Documentation

◆ InfiniteEndTime

constexpr std::int32_t monopoly::sequence::SequenceClock::InfiniteEndTime = 1'234'567'890
staticconstexpr

Definition at line 62 of file SequenceClock.hpp.


The documentation for this class was generated from the following files: