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

#include <SequenceWorld2DSlot.hpp>

Public Member Functions

std::expected< SequenceWorld2DSyncStats, std::string > sync (const std::vector< sequence::SequenceBitmapRenderItem > &items, data::BitmapRuntimeCache &cache)
 
void configureModernIBarSkin (std::shared_ptr< ibar::ModernIBarSkin > skin) noexcept
 
void configureModernMenuSkin (std::shared_ptr< menu::ModernMenuSkin > skin) noexcept
 
void clear () noexcept
 
void updateCamera (const std::optional< sequence::SequenceCamera2DView > &camera) noexcept
 
const sequence::Matrix2D & worldToScreen () const noexcept
 
const sequence::Matrix2D & screenToWorld () const noexcept
 
std::size_t size () const noexcept
 
const SequenceWorld2DObject * find (sequence::SequenceNodeId id) const noexcept
 
const std::vector< sequence::SequenceNodeId > & order () const noexcept
 

Static Public Member Functions

static constexpr RenderSlot slot () noexcept
 
static constexpr std::uint8_t cameraLabel () noexcept
 
static std::array< std::int32_t, 2 > transformPoint (const sequence::Matrix2D &matrix, std::int32_t x, std::int32_t y) noexcept
 
static std::array< std::int32_t, 2 > boundsCenter (const sequence::Matrix2D &matrix, const data::Sequence2DBoundingBoxAttribute &bounds) noexcept
 

Detailed Description

Definition at line 25 of file SequenceWorld2DSlot.hpp.

Member Function Documentation

◆ boundsCenter()

std::array< std::int32_t, 2 > monopoly::engine::SequenceWorld2DSlot::boundsCenter ( const sequence::Matrix2D &  matrix,
const data::Sequence2DBoundingBoxAttribute &  bounds 
)
staticnoexcept

Definition at line 29 of file SequenceWorld2DSlot.cpp.

◆ cameraLabel()

static constexpr std::uint8_t monopoly::engine::SequenceWorld2DSlot::cameraLabel ( )
inlinestaticconstexprnoexcept

Definition at line 46 of file SequenceWorld2DSlot.hpp.

◆ clear()

void monopoly::engine::SequenceWorld2DSlot::clear ( )
inlinenoexcept

Definition at line 40 of file SequenceWorld2DSlot.hpp.

◆ configureModernIBarSkin()

void monopoly::engine::SequenceWorld2DSlot::configureModernIBarSkin ( std::shared_ptr< ibar::ModernIBarSkin >  skin)
inlinenoexcept

Definition at line 34 of file SequenceWorld2DSlot.hpp.

◆ configureModernMenuSkin()

void monopoly::engine::SequenceWorld2DSlot::configureModernMenuSkin ( std::shared_ptr< menu::ModernMenuSkin >  skin)
inlinenoexcept

Definition at line 36 of file SequenceWorld2DSlot.hpp.

◆ find()

const SequenceWorld2DObject * monopoly::engine::SequenceWorld2DSlot::find ( sequence::SequenceNodeId  id) const
inlinenoexcept

Definition at line 53 of file SequenceWorld2DSlot.hpp.

◆ order()

const std::vector< sequence::SequenceNodeId > & monopoly::engine::SequenceWorld2DSlot::order ( ) const
inlinenoexcept

Definition at line 55 of file SequenceWorld2DSlot.hpp.

◆ screenToWorld()

const sequence::Matrix2D & monopoly::engine::SequenceWorld2DSlot::screenToWorld ( ) const
inlinenoexcept

Definition at line 44 of file SequenceWorld2DSlot.hpp.

◆ size()

std::size_t monopoly::engine::SequenceWorld2DSlot::size ( ) const
inlinenoexcept

Definition at line 52 of file SequenceWorld2DSlot.hpp.

◆ slot()

static constexpr RenderSlot monopoly::engine::SequenceWorld2DSlot::slot ( )
inlinestaticconstexprnoexcept

Definition at line 28 of file SequenceWorld2DSlot.hpp.

◆ sync()

std::expected< SequenceWorld2DSyncStats, std::string > monopoly::engine::SequenceWorld2DSlot::sync ( const std::vector< sequence::SequenceBitmapRenderItem > &  items,
data::BitmapRuntimeCache &  cache 
)

Definition at line 79 of file SequenceWorld2DSlot.cpp.

◆ transformPoint()

std::array< std::int32_t, 2 > monopoly::engine::SequenceWorld2DSlot::transformPoint ( const sequence::Matrix2D &  matrix,
std::int32_t  x,
std::int32_t  y 
)
staticnoexcept

Definition at line 11 of file SequenceWorld2DSlot.cpp.

◆ updateCamera()

void monopoly::engine::SequenceWorld2DSlot::updateCamera ( const std::optional< sequence::SequenceCamera2DView > &  camera)
noexcept

Definition at line 45 of file SequenceWorld2DSlot.cpp.

◆ worldToScreen()

const sequence::Matrix2D & monopoly::engine::SequenceWorld2DSlot::worldToScreen ( ) const
inlinenoexcept

Definition at line 42 of file SequenceWorld2DSlot.hpp.


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