#include <C4MapScript.h>
Public Member Functions | |
C4MapScriptAlgoRndChecker (const C4PropList *props) | |
bool | operator() (int32_t x, int32_t y, uint8_t &fg, uint8_t &bg) const override |
Protected Member Functions | |
bool | GetXYProps (const C4PropList *props, C4PropertyName k, int32_t *out_xy, bool zero_defaults) |
Definition at line 106 of file C4MapScript.h.
C4MapScriptAlgoRndChecker::C4MapScriptAlgoRndChecker | ( | const C4PropList * | props | ) |
Definition at line 69 of file C4MapScriptAlgo.cpp.
References Abs(), Clamp(), C4Value::getBool(), C4PropList::GetProperty(), C4PropList::GetPropertyInt(), P_FixedOffset, P_Hgt, P_Ratio, P_Seed, P_Wdt, and Random().
|
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().
|
overridevirtual |
Implements C4MapScriptAlgo.
Definition at line 99 of file C4MapScriptAlgo.cpp.