#include "C4Include.h"
#include "landscape/C4MapCreatorS2.h"
#include "control/C4Record.h"
#include "graphics/CSurface8.h"
#include "landscape/C4Material.h"
#include "landscape/C4Texture.h"
#include "lib/C4Random.h"
#include "script/C4ScriptHost.h"
Go to the source code of this file.
Macros | |
#define | IntPar IntPar(pParser, szSVal, iVal, ValType) |
#define | StrPar StrPar(pParser, szSVal, iVal, ValType) |
#define | a pOvrl->Alpha |
#define | b pOvrl->Beta |
#define | s pOvrl->Seed |
#define | z C4MC_ZoomRes |
#define | z2 (C4MC_ZoomRes*C4MC_ZoomRes) |
#define | offsC4MCOvrl(x) reinterpret_cast<C4MCOverlayOffsetType>(&C4MCOverlay::x) |
Functions | |
bool | PreparePeek (C4MCOverlay **ppOvrl, int32_t &iX, int32_t &iY, C4MCOverlay **ppTopOvrl) |
bool | AlgoSolid (C4MCOverlay *pOvrl, int32_t iX, int32_t iY) |
bool | AlgoRandom (C4MCOverlay *pOvrl, int32_t iX, int32_t iY) |
bool | AlgoChecker (C4MCOverlay *pOvrl, int32_t iX, int32_t iY) |
bool | AlgoBozo (C4MCOverlay *pOvrl, int32_t iX, int32_t iY) |
bool | AlgoSin (C4MCOverlay *pOvrl, int32_t iX, int32_t iY) |
bool | AlgoBoxes (C4MCOverlay *pOvrl, int32_t iX, int32_t iY) |
bool | AlgoRndChecker (C4MCOverlay *pOvrl, int32_t iX, int32_t iY) |
bool | AlgoLines (C4MCOverlay *pOvrl, int32_t iX, int32_t iY) |
bool | AlgoBorder (C4MCOverlay *pOvrl, int32_t iX, int32_t iY) |
bool | AlgoMandel (C4MCOverlay *pOvrl, int32_t iX, int32_t iY) |
bool | AlgoGradient (C4MCOverlay *pOvrl, int32_t iX, int32_t iY) |
bool | AlgoScript (C4MCOverlay *pOvrl, int32_t iX, int32_t iY) |
bool | AlgoRndAll (C4MCOverlay *pOvrl, int32_t iX, int32_t iY) |
bool | AlgoPolygon (C4MCOverlay *pOvrl, int32_t iX, int32_t iY) |
Variables | |
C4MCAlgorithm | C4MCAlgoMap [] |
#define a pOvrl->Alpha |
Definition at line 1533 of file C4MapCreatorS2.cpp.
#define b pOvrl->Beta |
Definition at line 1534 of file C4MapCreatorS2.cpp.
#define IntPar IntPar(pParser, szSVal, iVal, ValType) |
Definition at line 291 of file C4MapCreatorS2.cpp.
#define offsC4MCOvrl | ( | x | ) | reinterpret_cast<C4MCOverlayOffsetType>(&C4MCOverlay::x) |
Definition at line 1766 of file C4MapCreatorS2.cpp.
#define s pOvrl->Seed |
Definition at line 1535 of file C4MapCreatorS2.cpp.
#define StrPar StrPar(pParser, szSVal, iVal, ValType) |
Definition at line 292 of file C4MapCreatorS2.cpp.
#define z C4MC_ZoomRes |
Definition at line 1536 of file C4MapCreatorS2.cpp.
#define z2 (C4MC_ZoomRes*C4MC_ZoomRes) |
Definition at line 1537 of file C4MapCreatorS2.cpp.
bool AlgoBorder | ( | C4MCOverlay * | pOvrl, |
int32_t | iX, | ||
int32_t | iY | ||
) |
Definition at line 1596 of file C4MapCreatorS2.cpp.
References a, b, C4MCOverlay::Hgt, C4MCOverlay::InBounds(), C4MCOverlay::PeekPix(), PreparePeek(), and C4MCOverlay::Wdt.
bool AlgoBoxes | ( | C4MCOverlay * | pOvrl, |
int32_t | iX, | ||
int32_t | iY | ||
) |
Definition at line 1572 of file C4MapCreatorS2.cpp.
References a, Abs(), b, s, C4MCOverlay::Wdt, and z.
bool AlgoBozo | ( | C4MCOverlay * | pOvrl, |
int32_t | iX, | ||
int32_t | iY | ||
) |
Definition at line 1557 of file C4MapCreatorS2.cpp.
References a, Abs(), C4MC_SizeRes, s, z, and z2.
bool AlgoChecker | ( | C4MCOverlay * | pOvrl, |
int32_t | iX, | ||
int32_t | iY | ||
) |
Definition at line 1551 of file C4MapCreatorS2.cpp.
References z.
bool AlgoGradient | ( | C4MCOverlay * | pOvrl, |
int32_t | iX, | ||
int32_t | iY | ||
) |
Definition at line 1632 of file C4MapCreatorS2.cpp.
References C4MCOverlay::Wdt, and z.
bool AlgoLines | ( | C4MCOverlay * | pOvrl, |
int32_t | iX, | ||
int32_t | iY | ||
) |
Definition at line 1587 of file C4MapCreatorS2.cpp.
References a, Abs(), b, s, C4MCOverlay::Wdt, and z.
bool AlgoMandel | ( | C4MCOverlay * | pOvrl, |
int32_t | iX, | ||
int32_t | iY | ||
) |
Definition at line 1610 of file C4MapCreatorS2.cpp.
References a, C4MC_SizeRes, C4MCOverlay::Hgt, C4MCOverlay::Wdt, z, C4MCOverlay::ZoomX, and C4MCOverlay::ZoomY.
bool AlgoPolygon | ( | C4MCOverlay * | pOvrl, |
int32_t | iX, | ||
int32_t | iY | ||
) |
Definition at line 1649 of file C4MapCreatorS2.cpp.
References C4MCNode::Child0, MCN_Point, C4MCNode::Prev, C4MCNode::Type(), and X.
bool AlgoRandom | ( | C4MCOverlay * | pOvrl, |
int32_t | iX, | ||
int32_t | iY | ||
) |
Definition at line 1545 of file C4MapCreatorS2.cpp.
References a, C4MC_SizeRes, and s.
Referenced by AlgoRndChecker().
bool AlgoRndAll | ( | C4MCOverlay * | pOvrl, |
int32_t | iX, | ||
int32_t | iY | ||
) |
bool AlgoRndChecker | ( | C4MCOverlay * | pOvrl, |
int32_t | iX, | ||
int32_t | iY | ||
) |
Definition at line 1581 of file C4MapCreatorS2.cpp.
References AlgoRandom(), and z.
bool AlgoScript | ( | C4MCOverlay * | pOvrl, |
int32_t | iX, | ||
int32_t | iY | ||
) |
Definition at line 1637 of file C4MapCreatorS2.cpp.
References C4MCOverlay::Alpha, C4MCOverlay::Beta, C4MC_SizeRes, C4GameScriptHost::Call(), C4MCNode::int_bool::Evaluate(), FormatString(), GameScript, C4Value::getBool(), StdStrBuf::getData(), and C4MCNode::Name.
bool AlgoSin | ( | C4MCOverlay * | pOvrl, |
int32_t | iX, | ||
int32_t | iY | ||
) |
bool AlgoSolid | ( | C4MCOverlay * | pOvrl, |
int32_t | iX, | ||
int32_t | iY | ||
) |
Definition at line 1539 of file C4MapCreatorS2.cpp.
bool PreparePeek | ( | C4MCOverlay ** | ppOvrl, |
int32_t & | iX, | ||
int32_t & | iY, | ||
C4MCOverlay ** | ppTopOvrl | ||
) |
Definition at line 1515 of file C4MapCreatorS2.cpp.
References C4MCOverlay::FirstOfChain(), and C4MCNode::OwnerOverlay().
Referenced by AlgoBorder().
C4MCAlgorithm C4MCAlgoMap[] |
Definition at line 1747 of file C4MapCreatorS2.cpp.
Referenced by C4MCOverlay::GetAlgo().