stmm-games-doc  0.32.0
Public Types | Public Member Functions | Protected Member Functions | List of all members
stmg::TileSelector::Operator Class Reference
Inheritance diagram for stmg::TileSelector::Operator:
Inheritance graph
[legend]

Public Types

enum  OP_TYPE {
  OP_TYPE_FIRST = 0, OP_TYPE_OR = 0, OP_TYPE_AND = 1, OP_TYPE_NOT = 2,
  OP_TYPE_LAST = 2
}
 

Public Member Functions

 Operator (OP_TYPE eOperatorType, std::unique_ptr< Operand > refOperand) noexcept
 
 Operator (OP_TYPE eOperatorType, std::unique_ptr< Operand > refOperand1, std::unique_ptr< Operand > refOperand2) noexcept
 
 Operator (OP_TYPE eOperatorType, std::vector< std::unique_ptr< Operand > > &aOperands) noexcept
 
Operatoroperator= (Operator &&oSource)
 
int32_t totOperands () const noexcept
 
void dump (int32_t nIndentSpaces) const noexcept
 
- Public Member Functions inherited from stmg::TileSelector::Operand
void dump (int32_t nIndentSpaces) const noexcept
 

Protected Member Functions

bool eval (const Tile &oTile, int32_t nSkin) const noexcept
 
- Protected Member Functions inherited from stmg::TileSelector::Operand
 Operand (OPERAND_TYPE eOperandType) noexcept
 
bool eval (const Tile &oTile, int32_t nSkin) const noexcept
 

Member Enumeration Documentation

◆ OP_TYPE

Enumerator
OP_TYPE_FIRST 
OP_TYPE_OR 
OP_TYPE_AND 
OP_TYPE_NOT 
OP_TYPE_LAST 

Constructor & Destructor Documentation

◆ Operator() [1/3]

stmg::TileSelector::Operator::Operator ( OP_TYPE  eOperatorType,
std::unique_ptr< Operand refOperand 
)
noexcept

◆ Operator() [2/3]

stmg::TileSelector::Operator::Operator ( OP_TYPE  eOperatorType,
std::unique_ptr< Operand refOperand1,
std::unique_ptr< Operand refOperand2 
)
noexcept

◆ Operator() [3/3]

stmg::TileSelector::Operator::Operator ( OP_TYPE  eOperatorType,
std::vector< std::unique_ptr< Operand > > &  aOperands 
)
noexcept

Member Function Documentation

◆ dump()

void stmg::TileSelector::Operator::dump ( int32_t  nIndentSpaces) const
noexcept

◆ eval()

bool stmg::TileSelector::Operator::eval ( const Tile oTile,
int32_t  nSkin 
) const
protectednoexcept

◆ operator=()

Operator& stmg::TileSelector::Operator::operator= ( Operator &&  oSource)
inline

◆ totOperands()

int32_t stmg::TileSelector::Operator::totOperands ( ) const
inlinenoexcept