#include <C4MapScript.h>
Public Member Functions | |
C4MapScriptAlgoModifier (const C4PropList *props, int32_t min_ops=0, int32_t max_ops=0) | |
~C4MapScriptAlgoModifier () override | |
void | Clear () |
virtual bool | operator() (int32_t x, int32_t y, uint8_t &fg, uint8_t &bg) const =0 |
Protected Member Functions | |
bool | GetXYProps (const C4PropList *props, C4PropertyName k, int32_t *out_xy, bool zero_defaults) |
Protected Attributes | |
std::vector< C4MapScriptAlgo * > | operands |
Definition at line 163 of file C4MapScript.h.
C4MapScriptAlgoModifier::C4MapScriptAlgoModifier | ( | const C4PropList * | props, |
int32_t | min_ops = 0 , |
||
int32_t | max_ops = 0 |
||
) |
Definition at line 221 of file C4MapScriptAlgo.cpp.
References Clear(), FnParAlgo(), FormatString(), C4Value::getArray(), C4ValueArray::GetItem(), C4PropList::GetProperty(), C4Value::getPropList(), C4ValueArray::GetSize(), operands, P_Op, and C4ValueArray::SetItem().
|
inlineoverride |
Definition at line 169 of file C4MapScript.h.
References Clear().
void C4MapScriptAlgoModifier::Clear | ( | ) |
Definition at line 263 of file C4MapScriptAlgo.cpp.
References operands.
Referenced by C4MapScriptAlgoModifier(), and ~C4MapScriptAlgoModifier().
|
protectedinherited |
Definition at line 26 of file C4MapScriptAlgo.cpp.
References FormatString(), C4Value::getArray(), C4String::GetCStr(), StdStrBuf::getData(), C4Value::getInt(), C4ValueArray::GetItem(), C4PropList::GetProperty(), C4ValueArray::GetSize(), C4PropList::HasProperty(), C4StringTable::P, and Strings.
Referenced by C4MapScriptAlgoBorder::C4MapScriptAlgoBorder(), and C4MapScriptAlgoTurbulence::C4MapScriptAlgoTurbulence().
|
pure virtualinherited |
Implemented in C4MapScriptAlgoSetMaterial, C4MapScriptAlgoFilter, C4MapScriptAlgoBorder, C4MapScriptAlgoTurbulence, C4MapScriptAlgoRotate, C4MapScriptAlgoScale, C4MapScriptAlgoOffset, C4MapScriptAlgoXor, C4MapScriptAlgoNot, C4MapScriptAlgoOr, C4MapScriptAlgoAnd, C4MapScriptAlgoLines, C4MapScriptAlgoPolygon, C4MapScriptAlgoEllipse, C4MapScriptAlgoRect, C4MapScriptAlgoRndChecker, and C4MapScriptAlgoLayer.
|
protected |
Definition at line 166 of file C4MapScript.h.
Referenced by C4MapScriptAlgoModifier(), Clear(), C4MapScriptAlgoAnd::operator()(), C4MapScriptAlgoOr::operator()(), C4MapScriptAlgoNot::operator()(), C4MapScriptAlgoXor::operator()(), C4MapScriptAlgoOffset::operator()(), C4MapScriptAlgoScale::operator()(), C4MapScriptAlgoRotate::operator()(), C4MapScriptAlgoTurbulence::operator()(), C4MapScriptAlgoBorder::operator()(), and C4MapScriptAlgoFilter::operator()().