#include <C4MapCreatorS2.h>
Public Member Functions | |
C4MCOverlay (C4MCNode *pOwner=nullptr) | |
C4MCOverlay (C4MCParser *pParser, C4MCNode *pOwner, C4MCOverlay &rTemplate, bool fClone) | |
C4MCNode * | clone (C4MCParser *pParser, C4MCNode *pToNode) override |
bool | SetOp (C4MCTokenType eOp) override |
C4MCAlgorithm * | GetAlgo (const char *szName) |
bool | SetField (C4MCParser *pParser, const char *szField, const char *szSVal, int32_t iVal, C4MCTokenType ValType) override |
void | Evaluate () override |
C4MCOverlay * | Overlay () override |
C4MCOverlay * | FirstOfChain () |
bool | CheckMask (int32_t iX, int32_t iY) |
bool | RenderPix (int32_t iX, int32_t iY, BYTE &rPix, BYTE &rPixBkg, C4MCTokenType eLastOp=MCT_NONE, bool fLastSet=false, bool fDraw=true, C4MCOverlay **ppPixelSetOverlay=nullptr) |
bool | PeekPix (int32_t iX, int32_t iY) |
bool | InBounds (int32_t iX, int32_t iY) |
C4MCNodeType | Type () override |
void | Clear () |
void | Reg2Owner (C4MCNode *pOwner) |
C4MCOverlay * | OwnerOverlay () |
Public Attributes | |
int32_t | Seed |
int32_t | FixedSeed |
int32_t | X |
int32_t | Y |
int32_t | Wdt |
int32_t | Hgt |
int32_t | OffX |
int32_t | OffY |
int_bool | RX |
int_bool | RY |
int_bool | RWdt |
int_bool | RHgt |
int_bool | ROffX |
int_bool | ROffY |
int32_t | Material |
bool | Sub |
char | Texture [C4M_MaxName+1] |
BYTE | MatClr |
BYTE | MatClrBkg |
C4MCTokenType | Op |
C4MCAlgorithm * | Algorithm |
int32_t | Turbulence |
int32_t | Lambda |
int32_t | Rotate |
int_bool | Alpha |
int_bool | Beta |
int32_t | ZoomX |
int32_t | ZoomY |
bool | Invert |
bool | LooseBounds |
bool | Group |
bool | Mask |
C4MCCallbackArray * | pEvaluateFunc |
C4MCCallbackArray * | pDrawFunc |
C4MCNode * | Owner |
C4MCNode * | Child0 |
C4MCNode * | ChildL |
C4MCNode * | Prev |
C4MCNode * | Next |
C4MapCreatorS2 * | MapCreator |
char | Name [C4MaxName] |
Protected Member Functions | |
void | Default () |
virtual bool | GlobalScope () |
C4MCNode * | GetNodeByName (const char *szName) |
int32_t | IntPar (C4MCParser *pParser, const char *szSVal, int32_t iVal, C4MCTokenType ValType) |
const char * | StrPar (C4MCParser *pParser, const char *szSVal, int32_t iVal, C4MCTokenType ValType) |
void | ReEvaluate () |
Friends | |
class | C4MapCreatorS2 |
class | C4MCParser |
Definition at line 194 of file C4MapCreatorS2.h.
C4MCOverlay::C4MCOverlay | ( | C4MCNode * | pOwner = nullptr | ) |
Definition at line 306 of file C4MapCreatorS2.cpp.
References Algorithm, FixedSeed, Group, Hgt, Invert, Lambda, LooseBounds, Mask, MatClr, MatClrBkg, Material, MCT_NONE, MNone, OffX, OffY, Op, pDrawFunc, pEvaluateFunc, Rotate, Seed, Sub, Texture, Turbulence, Wdt, X, Y, ZoomX, and ZoomY.
Referenced by clone().
C4MCOverlay::C4MCOverlay | ( | C4MCParser * | pParser, |
C4MCNode * | pOwner, | ||
C4MCOverlay & | rTemplate, | ||
bool | fClone | ||
) |
Definition at line 325 of file C4MapCreatorS2.cpp.
References Algorithm, Alpha, Beta, C4MaxName, FixedSeed, Group, Hgt, Invert, Lambda, LooseBounds, Mask, MatClr, MatClrBkg, Material, MCT_NONE, OffX, OffY, Op, pDrawFunc, pEvaluateFunc, RHgt, ROffX, ROffY, Rotate, RWdt, RX, RY, SCopy(), Seed, Sub, Texture, Turbulence, Wdt, X, Y, ZoomX, and ZoomY.
bool C4MCOverlay::CheckMask | ( | int32_t | iX, |
int32_t | iY | ||
) |
Definition at line 516 of file C4MapCreatorS2.cpp.
References AddDbgRec(), Algorithm, C4REAL10(), Config, Cos(), C4ConfigGeneral::DebugRec, fixtoi(), C4MCAlgorithm::Function, C4Config::General, Hgt, Invert, itofix(), Lambda, LooseBounds, OffX, OffY, RCT_MCT1, RCT_MCT2, C4RCTrf::Rotate, Rotate, Seed, Sin(), C4RCTrf::Turbulence, Turbulence, Wdt, C4RCTrf::x, C4RCPos::x, X, C4RCTrf::y, C4RCPos::y, Y, ZoomX, and ZoomY.
Referenced by RenderPix().
|
inherited |
Definition at line 240 of file C4MapCreatorS2.cpp.
References C4MCNode::Child0.
Referenced by C4MapCreatorS2::Clear(), and C4MCNode::~C4MCNode().
|
inlineoverridevirtual |
Reimplemented from C4MCNode.
Reimplemented in C4MCMap.
Definition at line 200 of file C4MapCreatorS2.h.
References C4MCOverlay().
|
protected |
Definition at line 349 of file C4MapCreatorS2.cpp.
References Algorithm, Alpha, Beta, C4MC_DefAlgo, C4MC_SizeRes, C4MC_ZoomRes, FixedSeed, GetAlgo(), Group, Hgt, Invert, Lambda, LooseBounds, Mask, Material, MNone, OffX, OffY, pDrawFunc, pEvaluateFunc, RHgt, ROffX, ROffY, Rotate, RWdt, RX, RY, C4MCNode::int_bool::Set(), Sub, Texture, Turbulence, Wdt, X, Y, ZoomX, and ZoomY.
Referenced by C4MCMap::Default(), and C4MapCreatorS2::Default().
|
overridevirtual |
Reimplemented from C4MCNode.
Definition at line 458 of file C4MapCreatorS2.cpp.
References C4MCNode::Evaluate(), C4MCNode::int_bool::Evaluate(), FixedSeed, C4TextureMap::GetIndexMatTex(), Hgt, C4MaterialMap::Map, C4MCNode::MapCreator, Mat2PixColDefault(), MatClr, MatClrBkg, Material, C4MapCreatorS2::MatMap, MTunnel, C4MaterialCore::Name, C4MaterialMap::Num, OffX, OffY, C4MCNode::Owner, C4MCNode::OwnerOverlay(), Random(), RHgt, ROffX, ROffY, RWdt, RX, RY, Seed, Sub, C4MapCreatorS2::TexMap, Texture, Wdt, X, and Y.
C4MCOverlay * C4MCOverlay::FirstOfChain | ( | ) |
Definition at line 501 of file C4MapCreatorS2.cpp.
References MCT_NONE, Op, C4MCNode::Overlay(), and C4MCNode::Prev.
Referenced by PreparePeek().
C4MCAlgorithm * C4MCOverlay::GetAlgo | ( | const char * | szName | ) |
Definition at line 446 of file C4MapCreatorS2.cpp.
References C4MCAlgoMap, C4MCAlgorithm::Function, and SEqual().
Referenced by Default(), and SetField().
|
protectedinherited |
Definition at line 255 of file C4MapCreatorS2.cpp.
References C4MCNode::ChildL, C4MCNode::GetNodeByName(), C4MCNode::Owner, C4MCNode::Prev, and SEqual().
Referenced by C4MapCreatorS2::GetMap(), and C4MCNode::GetNodeByName().
|
inlineprotectedvirtualinherited |
Reimplemented in C4MapCreatorS2.
Definition at line 162 of file C4MapCreatorS2.h.
|
inline |
|
protectedinherited |
Definition at line 275 of file C4MapCreatorS2.cpp.
References C4MCErr_FieldValInvalid, MCT_INT, MCT_PERCENT, and MCT_PX.
Referenced by SetField(), and C4MCPoint::SetField().
|
inlineoverridevirtual |
Reimplemented from C4MCNode.
Definition at line 232 of file C4MapCreatorS2.h.
Referenced by C4MCNode::OwnerOverlay(), and RenderPix().
|
inherited |
Definition at line 246 of file C4MapCreatorS2.cpp.
References Overlay(), and C4MCNode::Owner.
Referenced by Evaluate(), C4MCPoint::Evaluate(), and PreparePeek().
bool C4MCOverlay::PeekPix | ( | int32_t | iX, |
int32_t | iY | ||
) |
Definition at line 622 of file C4MapCreatorS2.cpp.
References MCT_NONE, C4MCNode::Next, Op, C4MCNode::Overlay(), and RenderPix().
Referenced by AlgoBorder().
|
protectedinherited |
Definition at line 294 of file C4MapCreatorS2.cpp.
References C4MCNode::Child0, C4MCNode::Evaluate(), and C4MCNode::Next.
Referenced by C4MCMap::SetSize().
|
inherited |
Definition at line 216 of file C4MapCreatorS2.cpp.
References C4MCNode::Child0, C4MCNode::ChildL, C4MCNode::MapCreator, C4MCNode::Next, C4MCNode::Owner, and C4MCNode::Prev.
Referenced by C4MCNode::C4MCNode().
bool C4MCOverlay::RenderPix | ( | int32_t | iX, |
int32_t | iY, | ||
BYTE & | rPix, | ||
BYTE & | rPixBkg, | ||
C4MCTokenType | eLastOp = MCT_NONE , |
||
bool | fLastSet = false , |
||
bool | fDraw = true , |
||
C4MCOverlay ** | ppPixelSetOverlay = nullptr |
||
) |
Definition at line 572 of file C4MapCreatorS2.cpp.
References CheckMask(), C4MCNode::Child0, C4MCCallbackArray::EnablePixel(), Group, Mask, MatClr, MatClrBkg, MCT_AND, MCT_NONE, MCT_OR, MCT_XOR, C4MCNode::Next, Op, Overlay(), and pEvaluateFunc.
Referenced by PeekPix(), and C4MCMap::RenderTo().
|
overridevirtual |
Reimplemented from C4MCNode.
Definition at line 372 of file C4MapCreatorS2.cpp.
References C4Value::_getPropList(), C4M_MaxName, C4MC_ZoomRes, C4MCErr_AlgoNotFound, C4MCErr_MatNotFound, C4MCErr_SFuncNotFound, C4MCErr_TexNotFound, C4TextureMap::CheckTexture(), GameScript, C4MaterialMap::Get(), GetAlgo(), C4PropList::GetFunc(), C4MCNode::IntPar(), C4MCNode::MapCreator, C4MapCreatorS2::MatMap, MCT_INT, MCT_PERCENT, MNone, C4GameScriptHost::ScenPropList, SCopy(), SEqual(), C4MCNode::SetField(), C4MCNode::StrPar(), and C4MapCreatorS2::TexMap.
|
inlineoverridevirtual |
|
protectedinherited |
Definition at line 283 of file C4MapCreatorS2.cpp.
References C4MCErr_FieldValInvalid, and MCT_IDTF.
Referenced by SetField().
|
inlineoverridevirtual |
Reimplemented from C4MCNode.
Reimplemented in C4MCMap.
Definition at line 241 of file C4MapCreatorS2.h.
References MCN_Overlay.
|
friend |
Definition at line 243 of file C4MapCreatorS2.h.
|
friend |
Definition at line 244 of file C4MapCreatorS2.h.
C4MCAlgorithm* C4MCOverlay::Algorithm |
Definition at line 216 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), CheckMask(), and Default().
int_bool C4MCOverlay::Alpha |
Definition at line 218 of file C4MapCreatorS2.h.
Referenced by AlgoScript(), C4MCOverlay(), and Default().
int_bool C4MCOverlay::Beta |
Definition at line 218 of file C4MapCreatorS2.h.
Referenced by AlgoScript(), C4MCOverlay(), and Default().
|
inherited |
Definition at line 147 of file C4MapCreatorS2.h.
Referenced by AlgoPolygon(), C4MCNode::C4MCNode(), C4MCNode::Clear(), C4MCNode::ReEvaluate(), C4MCNode::Reg2Owner(), RenderPix(), and C4MCNode::~C4MCNode().
|
inherited |
Definition at line 147 of file C4MapCreatorS2.h.
Referenced by C4MapCreatorS2::GetMap(), C4MCNode::GetNodeByName(), C4MCNode::Reg2Owner(), and C4MCNode::~C4MCNode().
int32_t C4MCOverlay::FixedSeed |
Definition at line 207 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), Default(), and Evaluate().
bool C4MCOverlay::Group |
Definition at line 220 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), Default(), and RenderPix().
int32_t C4MCOverlay::Hgt |
Definition at line 208 of file C4MapCreatorS2.h.
Referenced by AlgoBorder(), AlgoMandel(), C4MCOverlay(), CheckMask(), Default(), C4MCMap::Default(), C4MCCallbackArray::EnablePixel(), Evaluate(), C4MCPoint::Evaluate(), InBounds(), C4MapCreatorS2::Render(), C4MapCreatorS2::RenderBuf(), C4MCMap::RenderTo(), and C4MCMap::SetSize().
bool C4MCOverlay::Invert |
Definition at line 220 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), CheckMask(), and Default().
int32_t C4MCOverlay::Lambda |
Definition at line 217 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), CheckMask(), and Default().
bool C4MCOverlay::LooseBounds |
Definition at line 220 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), CheckMask(), and Default().
|
inherited |
Definition at line 148 of file C4MapCreatorS2.h.
Referenced by C4MapCreatorS2::C4MapCreatorS2(), C4MCMap::Default(), Evaluate(), C4MCNode::Reg2Owner(), C4MCMap::RenderTo(), SetField(), and C4MCMap::SetSize().
bool C4MCOverlay::Mask |
Definition at line 220 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), Default(), and RenderPix().
BYTE C4MCOverlay::MatClr |
Definition at line 213 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), Evaluate(), and RenderPix().
BYTE C4MCOverlay::MatClrBkg |
Definition at line 214 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), Evaluate(), and RenderPix().
int32_t C4MCOverlay::Material |
Definition at line 210 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), Default(), and Evaluate().
|
inherited |
Definition at line 149 of file C4MapCreatorS2.h.
Referenced by AlgoScript(), and C4MCNode::C4MCNode().
|
inherited |
Definition at line 147 of file C4MapCreatorS2.h.
Referenced by C4MCNode::C4MCNode(), PeekPix(), C4MCNode::ReEvaluate(), C4MCNode::Reg2Owner(), RenderPix(), and C4MCNode::~C4MCNode().
int32_t C4MCOverlay::OffX |
Definition at line 208 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), CheckMask(), Default(), and Evaluate().
int32_t C4MCOverlay::OffY |
Definition at line 208 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), CheckMask(), Default(), and Evaluate().
C4MCTokenType C4MCOverlay::Op |
Definition at line 215 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), FirstOfChain(), PeekPix(), RenderPix(), and SetOp().
|
inherited |
Definition at line 147 of file C4MapCreatorS2.h.
Referenced by C4MCNode::C4MCNode(), Evaluate(), C4MCPoint::Evaluate(), C4MCNode::GetNodeByName(), C4MCNode::OwnerOverlay(), C4MCNode::Reg2Owner(), and C4MCNode::~C4MCNode().
C4MCCallbackArray* C4MCOverlay::pDrawFunc |
Definition at line 222 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), Default(), and C4MCMap::RenderTo().
C4MCCallbackArray* C4MCOverlay::pEvaluateFunc |
Definition at line 221 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), Default(), and RenderPix().
|
inherited |
Definition at line 147 of file C4MapCreatorS2.h.
Referenced by AlgoPolygon(), FirstOfChain(), C4MapCreatorS2::GetMap(), C4MCNode::GetNodeByName(), C4MCNode::Reg2Owner(), and C4MCNode::~C4MCNode().
int_bool C4MCOverlay::RHgt |
Definition at line 209 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), Default(), and Evaluate().
int_bool C4MCOverlay::ROffX |
Definition at line 209 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), Default(), and Evaluate().
int_bool C4MCOverlay::ROffY |
Definition at line 209 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), Default(), and Evaluate().
int32_t C4MCOverlay::Rotate |
Definition at line 217 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), CheckMask(), and Default().
int_bool C4MCOverlay::RWdt |
Definition at line 209 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), Default(), and Evaluate().
int_bool C4MCOverlay::RX |
Definition at line 209 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), Default(), and Evaluate().
int_bool C4MCOverlay::RY |
Definition at line 209 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), Default(), and Evaluate().
int32_t C4MCOverlay::Seed |
Definition at line 206 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), CheckMask(), and Evaluate().
bool C4MCOverlay::Sub |
Definition at line 211 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), Default(), and Evaluate().
char C4MCOverlay::Texture[C4M_MaxName+1] |
Definition at line 212 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), Default(), and Evaluate().
int32_t C4MCOverlay::Turbulence |
Definition at line 217 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), CheckMask(), and Default().
int32_t C4MCOverlay::Wdt |
Definition at line 208 of file C4MapCreatorS2.h.
Referenced by AlgoBorder(), AlgoBoxes(), AlgoGradient(), AlgoLines(), AlgoMandel(), C4MCOverlay(), CheckMask(), Default(), C4MCMap::Default(), C4MCCallbackArray::EnablePixel(), Evaluate(), C4MCPoint::Evaluate(), InBounds(), C4MapCreatorS2::Render(), C4MapCreatorS2::RenderBuf(), C4MCMap::RenderTo(), and C4MCMap::SetSize().
int32_t C4MCOverlay::X |
Definition at line 208 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), CheckMask(), Default(), Evaluate(), C4MCPoint::Evaluate(), and InBounds().
int32_t C4MCOverlay::Y |
Definition at line 208 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay(), CheckMask(), Default(), Evaluate(), C4MCPoint::Evaluate(), and InBounds().
int32_t C4MCOverlay::ZoomX |
Definition at line 219 of file C4MapCreatorS2.h.
Referenced by AlgoMandel(), C4MCOverlay(), CheckMask(), and Default().
int32_t C4MCOverlay::ZoomY |
Definition at line 219 of file C4MapCreatorS2.h.
Referenced by AlgoMandel(), C4MCOverlay(), CheckMask(), and Default().