stmm-games-doc  0.32.0
Public Member Functions | Public Attributes | List of all members
stmg::Block::Contact Struct Reference

A contact. More...

Public Member Functions

constexpr bool operator== (const Contact &oOther) const noexcept
 
constexpr bool operator< (const Block::Contact &oOther) const noexcept
 

Public Attributes

int32_t m_nRelX
 The x coordinate of the contact relative to the block's origin (not the brick's position). More...
 
int32_t m_nRelY
 The y coordinate of the contact relative to the block's origin (not the brick's position). More...
 
int32_t m_nBrickId
 The brick the contact refers to. More...
 

Detailed Description

A contact.

The position adjacent a certain brick that is not occupied by another brick.

Member Function Documentation

◆ operator<()

constexpr bool stmg::Block::Contact::operator< ( const Block::Contact oOther) const
inlinenoexcept

◆ operator==()

constexpr bool stmg::Block::Contact::operator== ( const Contact oOther) const
inlinenoexcept

Member Data Documentation

◆ m_nBrickId

int32_t stmg::Block::Contact::m_nBrickId

The brick the contact refers to.

◆ m_nRelX

int32_t stmg::Block::Contact::m_nRelX

The x coordinate of the contact relative to the block's origin (not the brick's position).

◆ m_nRelY

int32_t stmg::Block::Contact::m_nRelY

The y coordinate of the contact relative to the block's origin (not the brick's position).