OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
stub-handle.cpp
Go to the documentation of this file.
1 /*
2  * mape - C4 Landscape.txt editor
3  *
4  * Copyright (c) 2005-2009, Armin Burgmeier
5  *
6  * Distributed under the terms of the ISC license; see accompanying file
7  * "COPYING" for details.
8  *
9  * "Clonk" is a registered trademark of Matthes Bender, used with permission.
10  * See accompanying file "TRADEMARK" for details.
11  *
12  * To redistribute this file separately, substitute the full license texts
13  * for the above references.
14  */
15 
16 #include "C4Include.h"
17 
18 #include "script/C4Aul.h"
19 #include "script/C4AulDebug.h"
20 #include "control/C4GameControl.h"
21 #include "object/C4Def.h"
22 #include "object/C4DefList.h"
23 #include "graphics/C4Facet.h"
24 #include "object/C4GameObjects.h"
27 #include "landscape/C4Landscape.h"
28 #include "landscape/C4PXS.h"
29 #include "control/C4Record.h"
30 #include "control/C4RoundResults.h"
32 #include "landscape/C4Sky.h"
33 #include "graphics/C4Draw.h"
34 
35 /* This file implements stubs for the parts of the engine that are not used
36  * by mape. */
37 
40 
41 class C4SoundInstance *StartSoundEffectAt(const char *, int32_t, int32_t, int32_t, int32_t, int32_t, class C4SoundModifier *) { return nullptr; }
42 
44 void C4Facet::Set(C4Surface*, float, float, float, float) {}
45 
48 bool C4Surface::Read(CStdStream &, const char *, int) { return false; }
49 bool C4Surface::Lock() { return false; }
50 bool C4Surface::Unlock() { return false; }
51 DWORD C4Surface::GetPixDw(int iX, int iY, bool fApplyModulation) { return 0; }
52 
54 
56 void C4Pattern::Clear() {}
57 bool C4Pattern::Set(C4Surface *, int) { return false; }
58 DWORD C4Pattern::PatternClr(unsigned int, unsigned int) const { return 0; }
59 C4Pattern& C4Pattern::operator=(C4Pattern const&) { return *this; }
60 
64 void C4IDList::Clear() {}
65 C4IDList& C4IDList::operator=(C4IDList const&) { return *this; }
66 bool C4IDList::operator==(const C4IDList&) const { return false; }
67 int32_t C4IDList::GetIDCount(C4ID, int32_t) const { return 0; }
68 bool C4IDList::SetIDCount(C4ID, int32_t, bool) { return false; }
72 
75 
79 bool C4DefList::DrawFontImage(const char* szImageTag, C4Facet& rTarget, C4DrawTransform* pTransform) { return false; }
80 float C4DefList::GetFontImageAspect(const char* szImageTag) { return -1.0f; }
81 
82 void C4Sky::Default() {}
83 C4Sky::~C4Sky() {}
84 
87 bool C4PXSSystem::Create(int, C4Real, C4Real, C4Real, C4Real) { return false; }
88 
89 bool C4TextureShape::Load(C4Group &group, const char *filename, int32_t base_tex_wdt, int32_t base_tex_hgt) { return true; }
90 
C4IDList & operator=(const C4IDList &rCopy)
Definition: stub-handle.cpp:65
int32_t GetIDCount(C4ID c_id, int32_t iZeroDefVal=0) const
Definition: stub-handle.cpp:67
void Clear()
Definition: stub-handle.cpp:64
DWORD PatternClr(unsigned int iX, unsigned int iY) const
Definition: C4Draw.cpp:162
~C4Sky()
Definition: C4Sky.cpp:155
bool Load(C4Group &group, const char *filename, int32_t base_tex_wdt, int32_t base_tex_hgt)
bool Lock()
Definition: C4Surface.cpp:463
virtual float GetFontImageAspect(const char *szImageTag)
Definition: stub-handle.cpp:80
bool Unlock()
Definition: C4Surface.cpp:474
C4DefGraphics(C4Def *pOwnDef=nullptr)
Definition: stub-handle.cpp:73
void Default()
Definition: C4Sky.cpp:143
bool Create(int32_t mat, C4Real ix, C4Real iy, C4Real ixdir=Fix0, C4Real iydir=Fix0)
Definition: C4PXS.cpp:206
void Set(C4Surface &rSfc)
Definition: C4Facet.cpp:459
virtual bool DrawFontImage(const char *szImageTag, C4Facet &rTarget, C4DrawTransform *pTransform)
Definition: stub-handle.cpp:79
Definition: C4Real.h:58
C4PXSSystem()
Definition: C4PXS.cpp:150
void Default()
Definition: stub-handle.cpp:63
C4Shader()
Definition: C4Shader.cpp:45
void Clear()
Definition: C4Draw.cpp:149
void CallEveryDefinition()
Definition: stub-handle.cpp:77
~C4Shader()
Definition: C4Shader.cpp:55
Definition: C4Def.h:100
void CompileFunc(StdCompiler *pComp, bool fValues=true)
Definition: stub-handle.cpp:69
C4Facet()
Definition: C4Facet.cpp:41
DWORD GetPixDw(int iX, int iY, bool fApplyModulation)
Definition: C4Surface.cpp:501
Definition: C4Id.h:28
C4PXSSystem PXS
Definition: stub-handle.cpp:39
C4Pattern()
Definition: C4Draw.cpp:141
void ResetIncludeDependencies()
Definition: stub-handle.cpp:78
void SortByPriority()
Definition: stub-handle.cpp:76
~C4PXSSystem()
Definition: C4PXS.cpp:155
bool operator==(const C4IDList &rhs) const
Definition: stub-handle.cpp:66
C4Pattern & operator=(const C4Pattern &)
Definition: C4Draw.cpp:97
bool Read(CStdStream &hGroup, const char *extension, int iFlags)
bool SetIDCount(C4ID c_id, int32_t iCount, bool fAddNewID=false)
Definition: stub-handle.cpp:68
bool Set(class C4Surface *sfcSource, int iZoom=0)
Definition: C4Draw.cpp:117
class C4SoundInstance * StartSoundEffectAt(const char *, int32_t, int32_t, int32_t, int32_t, int32_t, class C4SoundModifier *)
Definition: stub-handle.cpp:41
C4Landscape Landscape
Definition: stub-handle.cpp:38
uint32_t DWORD