#include <C4MapCreatorS2.h>
Public Member Functions | |
C4MapCreatorS2 (C4SLandscape *pLandscape, C4TextureMap *pTexMap, C4MaterialMap *pMatMap, int iPlayerCount) | |
~C4MapCreatorS2 () override | |
void | Default () |
void | Clear () |
bool | ReadFile (const char *szFilename, C4Group *pGrp) |
bool | ReadScript (const char *szScript) |
C4MCMap * | GetMap (const char *szMapName) |
bool | Render (const char *szMapName, CSurface8 *&sfcMap, CSurface8 *&sfcMapBkg) |
BYTE * | RenderBuf (const char *szMapName, int32_t &sfcWdt, int32_t &sfcHgt) |
void | SetC4SLandscape (C4SLandscape *pLandscape) |
void | ExecuteCallbacks (int32_t iMapZoom) |
virtual C4MCNode * | clone (C4MCParser *pParser, C4MCNode *pToNode) |
void | Reg2Owner (C4MCNode *pOwner) |
virtual C4MCNodeType | Type () |
virtual C4MCOverlay * | Overlay () |
C4MCOverlay * | OwnerOverlay () |
Public Attributes | |
C4MCNode * | Owner |
C4MCNode * | Child0 |
C4MCNode * | ChildL |
C4MCNode * | Prev |
C4MCNode * | Next |
C4MapCreatorS2 * | MapCreator |
char | Name [C4MaxName] |
Protected Member Functions | |
bool | GlobalScope () override |
virtual bool | SetOp (C4MCTokenType eOp) |
C4MCNode * | GetNodeByName (const char *szName) |
virtual bool | SetField (C4MCParser *pParser, const char *szField, const char *szSVal, int32_t iVal, C4MCTokenType ValType) |
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) |
virtual void | Evaluate () |
void | ReEvaluate () |
Protected Attributes | |
C4SLandscape * | Landscape |
C4TextureMap * | TexMap |
C4MaterialMap * | MatMap |
C4MCMap | DefaultMap |
C4MCOverlay | DefaultOverlay |
C4MCPoint | DefaultPoint |
C4MCMap * | pCurrentMap |
C4MCCallbackArrayList | CallbackArrays |
int | PlayerCount |
Friends | |
class | C4MCOverlay |
class | C4MCMap |
class | C4MCParser |
class | C4MCCallbackArray |
Definition at line 297 of file C4MapCreatorS2.h.
C4MapCreatorS2::C4MapCreatorS2 | ( | C4SLandscape * | pLandscape, |
C4TextureMap * | pTexMap, | ||
C4MaterialMap * | pMatMap, | ||
int | iPlayerCount | ||
) |
Definition at line 759 of file C4MapCreatorS2.cpp.
References Default(), DefaultMap, DefaultOverlay, DefaultPoint, Landscape, C4MCNode::MapCreator, MatMap, PlayerCount, and TexMap.
|
override |
Definition at line 774 of file C4MapCreatorS2.cpp.
References Clear().
void C4MapCreatorS2::Clear | ( | ) |
Definition at line 789 of file C4MapCreatorS2.cpp.
References CallbackArrays, C4MCCallbackArrayList::Clear(), C4MCNode::Clear(), and Default().
Referenced by ~C4MapCreatorS2().
|
inlinevirtualinherited |
Reimplemented in C4MCMap, C4MCPoint, and C4MCOverlay.
Definition at line 156 of file C4MapCreatorS2.h.
References C4MCNode::C4MCNode().
void C4MapCreatorS2::Default | ( | ) |
Definition at line 780 of file C4MapCreatorS2.cpp.
References C4MCOverlay::Default(), C4MCPoint::Default(), C4MCMap::Default(), DefaultMap, DefaultOverlay, DefaultPoint, and pCurrentMap.
Referenced by C4MapCreatorS2(), and Clear().
|
inlineprotectedvirtualinherited |
Reimplemented in C4MCPoint, and C4MCOverlay.
Definition at line 170 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay::Evaluate(), C4MCPoint::Evaluate(), and C4MCNode::ReEvaluate().
|
inline |
Definition at line 332 of file C4MapCreatorS2.h.
References CallbackArrays, and C4MCCallbackArrayList::Execute().
C4MCMap * C4MapCreatorS2::GetMap | ( | const char * | szMapName | ) |
Definition at line 831 of file C4MapCreatorS2.cpp.
References C4MCNode::ChildL, C4MCNode::GetNodeByName(), MCN_Map, C4MCNode::Prev, and C4MCNode::Type().
Referenced by c4_mapgen_handle_new(), Render(), and RenderBuf().
|
protectedinherited |
Definition at line 255 of file C4MapCreatorS2.cpp.
References C4MCNode::ChildL, C4MCNode::GetNodeByName(), C4MCNode::Owner, C4MCNode::Prev, and SEqual().
Referenced by GetMap(), and C4MCNode::GetNodeByName().
|
inlineoverrideprotectedvirtual |
Reimplemented from C4MCNode.
Definition at line 329 of file C4MapCreatorS2.h.
|
protectedinherited |
Definition at line 275 of file C4MapCreatorS2.cpp.
References C4MCErr_FieldValInvalid, MCT_INT, MCT_PERCENT, and MCT_PX.
Referenced by C4MCOverlay::SetField(), and C4MCPoint::SetField().
|
inlinevirtualinherited |
Reimplemented in C4MCOverlay.
Definition at line 187 of file C4MapCreatorS2.h.
Referenced by C4MCOverlay::FirstOfChain(), and C4MCOverlay::PeekPix().
|
inherited |
Definition at line 246 of file C4MapCreatorS2.cpp.
References C4MCOverlay::Overlay(), and C4MCNode::Owner.
Referenced by C4MCOverlay::Evaluate(), C4MCPoint::Evaluate(), and PreparePeek().
bool C4MapCreatorS2::ReadFile | ( | const char * | szFilename, |
C4Group * | pGrp | ||
) |
Definition at line 799 of file C4MapCreatorS2.cpp.
References C4MCParser, and C4MCParserErr::show().
bool C4MapCreatorS2::ReadScript | ( | const char * | szScript | ) |
Definition at line 815 of file C4MapCreatorS2.cpp.
References C4MCParser, and C4MCParserErr::show().
Referenced by C4Landscape::DrawMap().
|
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().
Definition at line 855 of file C4MapCreatorS2.cpp.
References CSurface8::Bits, GetMap(), C4MCOverlay::Hgt, CSurface8::Pitch, C4MCMap::RenderTo(), and C4MCOverlay::Wdt.
Referenced by C4Landscape::DrawMap().
BYTE * C4MapCreatorS2::RenderBuf | ( | const char * | szMapName, |
int32_t & | sfcWdt, | ||
int32_t & | sfcHgt | ||
) |
Definition at line 886 of file C4MapCreatorS2.cpp.
References GetMap(), C4MCOverlay::Hgt, and C4MCOverlay::Wdt.
Referenced by c4_mapgen_handle_new().
|
inline |
|
protectedvirtualinherited |
Reimplemented in C4MCPoint, and C4MCOverlay.
Definition at line 269 of file C4MapCreatorS2.cpp.
Referenced by C4MCOverlay::SetField().
|
inlineprotectedvirtualinherited |
Reimplemented in C4MCOverlay.
Definition at line 163 of file C4MapCreatorS2.h.
|
protectedinherited |
Definition at line 283 of file C4MapCreatorS2.cpp.
References C4MCErr_FieldValInvalid, and MCT_IDTF.
Referenced by C4MCOverlay::SetField().
|
inlinevirtualinherited |
Reimplemented in C4MCMap, C4MCPoint, and C4MCOverlay.
Definition at line 186 of file C4MapCreatorS2.h.
References MCN_Node.
Referenced by AlgoPolygon(), and GetMap().
|
friend |
Definition at line 337 of file C4MapCreatorS2.h.
|
friend |
Definition at line 335 of file C4MapCreatorS2.h.
|
friend |
Definition at line 334 of file C4MapCreatorS2.h.
|
friend |
Definition at line 336 of file C4MapCreatorS2.h.
Referenced by ReadFile(), and ReadScript().
|
protected |
Definition at line 326 of file C4MapCreatorS2.h.
Referenced by C4MCCallbackArray::C4MCCallbackArray(), Clear(), and ExecuteCallbacks().
|
inherited |
Definition at line 147 of file C4MapCreatorS2.h.
Referenced by AlgoPolygon(), C4MCNode::C4MCNode(), C4MCNode::Clear(), C4MCNode::ReEvaluate(), C4MCNode::Reg2Owner(), C4MCOverlay::RenderPix(), and C4MCNode::~C4MCNode().
|
inherited |
Definition at line 147 of file C4MapCreatorS2.h.
Referenced by GetMap(), C4MCNode::GetNodeByName(), C4MCNode::Reg2Owner(), and C4MCNode::~C4MCNode().
|
protected |
Definition at line 322 of file C4MapCreatorS2.h.
Referenced by C4MapCreatorS2(), and Default().
|
protected |
Definition at line 323 of file C4MapCreatorS2.h.
Referenced by C4MapCreatorS2(), and Default().
|
protected |
Definition at line 324 of file C4MapCreatorS2.h.
Referenced by C4MapCreatorS2(), and Default().
|
protected |
Definition at line 319 of file C4MapCreatorS2.h.
Referenced by C4MapCreatorS2(), C4MCMap::Default(), and SetC4SLandscape().
|
inherited |
Definition at line 148 of file C4MapCreatorS2.h.
Referenced by C4MapCreatorS2(), C4MCMap::Default(), C4MCOverlay::Evaluate(), C4MCNode::Reg2Owner(), C4MCMap::RenderTo(), C4MCOverlay::SetField(), and C4MCMap::SetSize().
|
protected |
Definition at line 321 of file C4MapCreatorS2.h.
Referenced by C4MapCreatorS2(), C4MCOverlay::Evaluate(), and C4MCOverlay::SetField().
|
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(), C4MCOverlay::PeekPix(), C4MCNode::ReEvaluate(), C4MCNode::Reg2Owner(), C4MCOverlay::RenderPix(), and C4MCNode::~C4MCNode().
|
inherited |
Definition at line 147 of file C4MapCreatorS2.h.
Referenced by C4MCNode::C4MCNode(), C4MCOverlay::Evaluate(), C4MCPoint::Evaluate(), C4MCNode::GetNodeByName(), C4MCNode::OwnerOverlay(), C4MCNode::Reg2Owner(), and C4MCNode::~C4MCNode().
|
protected |
Definition at line 325 of file C4MapCreatorS2.h.
Referenced by Default(), C4MCCallbackArray::EnablePixel(), and C4MCMap::RenderTo().
|
protected |
Definition at line 327 of file C4MapCreatorS2.h.
Referenced by C4MapCreatorS2(), and C4MCMap::Default().
|
inherited |
Definition at line 147 of file C4MapCreatorS2.h.
Referenced by AlgoPolygon(), C4MCOverlay::FirstOfChain(), GetMap(), C4MCNode::GetNodeByName(), C4MCNode::Reg2Owner(), and C4MCNode::~C4MCNode().
|
protected |
Definition at line 320 of file C4MapCreatorS2.h.
Referenced by C4MapCreatorS2(), C4MCOverlay::Evaluate(), and C4MCOverlay::SetField().