OpenClonk
C4Material Class Reference

#include <C4Material.h>

Inheritance diagram for C4Material:
[legend]
Collaboration diagram for C4Material:
[legend]

Public Member Functions

 C4Material ()
 
void UpdateScriptPointers ()
 
void Clear ()
 
void Default ()
 
bool Load (C4Group &hGroup, const char *szEntryName)
 
void CompileFunc (StdCompiler *pComp)
 

Public Attributes

int32_t BlastShiftTo
 
int32_t InMatConvertTo
 
int32_t BelowTempConvertTo
 
int32_t AboveTempConvertTo
 
int32_t DefaultMatTex
 
C4Facet PXSFace
 
std::vector< C4MaterialReactionCustomReactionList
 
char Name [C4M_MaxName+1]
 
C4MaterialCoreShape MapChunkType
 
int32_t Density
 
int32_t Friction
 
int32_t DigFree
 
int32_t BlastFree
 
C4ID Dig2Object
 
int32_t Dig2ObjectRatio
 
int32_t Dig2ObjectCollect
 
C4ID Blast2Object
 
int32_t Blast2ObjectRatio
 
int32_t Blast2PXSRatio
 
int32_t Instable
 
int32_t MaxAirSpeed
 
int32_t MaxSlide
 
int32_t WindDrift
 
int32_t Inflammable
 
int32_t Incendiary
 
int32_t Extinguisher
 
int32_t Corrosive
 
int32_t Corrode
 
int32_t Soil
 
int32_t Placement
 
int32_t Light
 
StdCopyStrBuf sTextureOverlay
 
int32_t OverlayType
 
StdCopyStrBuf sPXSGfx
 
C4TargetRect PXSGfxRt
 
int32_t PXSGfxSize
 
StdCopyStrBuf sBlastShiftTo
 
StdCopyStrBuf sInMatConvert
 
StdCopyStrBuf sInMatConvertTo
 
int32_t InMatConvertDepth
 
int32_t BelowTempConvert
 
int32_t BelowTempConvertDir
 
StdCopyStrBuf sBelowTempConvertTo
 
int32_t AboveTempConvert
 
int32_t AboveTempConvertDir
 
StdCopyStrBuf sAboveTempConvertTo
 
int32_t TempConvStrength
 
int32_t MinHeightCount
 
int32_t SplashRate
 
bool KeepSinglePixels
 
int32_t AnimationSpeed
 
int32_t LightAngle
 
int32_t LightEmit [3]
 
int32_t LightSpot [3]
 
int32_t MinShapeOverlap
 

Detailed Description

Definition at line 145 of file C4Material.h.

Constructor & Destructor Documentation

◆ C4Material()

C4Material::C4Material ( )

Definition at line 284 of file C4Material.cpp.

References MNone.

285 {
286  BlastShiftTo=0;
290 }
int32_t BlastShiftTo
Definition: C4Material.h:151
int32_t InMatConvertTo
Definition: C4Material.h:152
const int32_t MNone
Definition: C4Constants.h:177
int32_t AboveTempConvertTo
Definition: C4Material.h:154
int32_t BelowTempConvertTo
Definition: C4Material.h:153

Member Function Documentation

◆ Clear()

void C4MaterialCore::Clear ( )
inherited

Definition at line 98 of file C4Material.cpp.

References C4M_Flat, and C4ID::None.

99 {
100  CustomReactionList.clear();
102  sPXSGfx.Clear();
108  *Name='\0';
110  Density = 0;
111  Friction = 0;
112  DigFree = 0;
113  BlastFree = 0;
115  Dig2ObjectRatio = 0;
116  Dig2ObjectCollect = 0;
118  Blast2ObjectRatio = 0;
119  Blast2PXSRatio = 0;
120  Instable = 0;
121  MaxAirSpeed = 0;
122  MaxSlide = 0;
123  WindDrift = 0;
124  Inflammable = 0;
125  Incendiary = 0;
126  Extinguisher = 0;
127  Corrosive = 0;
128  Corrode = 0;
129  Soil = 0;
130  Placement = 0;
131  Light = 0;
132  OverlayType = 0;
133  PXSGfxRt.Default();
134  PXSGfxSize = 0;
135  InMatConvertDepth = 0;
136  BelowTempConvert = 0;
138  AboveTempConvert = 0;
140  TempConvStrength = 0;
141  MinHeightCount = 0;
142  SplashRate=10;
143  KeepSinglePixels=false;
144  AnimationSpeed = 20;
145  LightAngle = 255;
146  for (int i = 0; i < 3; i++) {
147  LightEmit[i] = 0;
148  LightSpot[i] = 16;
149  }
150  MinShapeOverlap = 25;
151 }
int32_t Extinguisher
Definition: C4Material.h:108
int32_t MaxSlide
Definition: C4Material.h:104
StdCopyStrBuf sTextureOverlay
Definition: C4Material.h:114
C4TargetRect PXSGfxRt
Definition: C4Material.h:117
void Clear()
Definition: StdBuf.h:466
int32_t Corrode
Definition: C4Material.h:110
int32_t Instable
Definition: C4Material.h:102
int32_t Friction
Definition: C4Material.h:93
int32_t OverlayType
Definition: C4Material.h:115
int32_t AnimationSpeed
Definition: C4Material.h:133
int32_t BlastFree
Definition: C4Material.h:95
int32_t MinShapeOverlap
Definition: C4Material.h:137
int32_t MaxAirSpeed
Definition: C4Material.h:103
int32_t Dig2ObjectCollect
Definition: C4Material.h:98
int32_t LightAngle
Definition: C4Material.h:134
StdCopyStrBuf sPXSGfx
Definition: C4Material.h:116
StdCopyStrBuf sBlastShiftTo
Definition: C4Material.h:119
char Name[C4M_MaxName+1]
Definition: C4Material.h:89
int32_t Light
Definition: C4Material.h:113
int32_t AboveTempConvert
Definition: C4Material.h:126
int32_t AboveTempConvertDir
Definition: C4Material.h:127
static const C4ID None
Definition: C4Id.h:39
int32_t Blast2PXSRatio
Definition: C4Material.h:101
int32_t Blast2ObjectRatio
Definition: C4Material.h:100
StdCopyStrBuf sAboveTempConvertTo
Definition: C4Material.h:128
int32_t MinHeightCount
Definition: C4Material.h:130
C4ID Blast2Object
Definition: C4Material.h:99
StdCopyStrBuf sInMatConvertTo
Definition: C4Material.h:121
int32_t Dig2ObjectRatio
Definition: C4Material.h:97
int32_t Density
Definition: C4Material.h:92
int32_t Soil
Definition: C4Material.h:111
int32_t PXSGfxSize
Definition: C4Material.h:118
int32_t SplashRate
Definition: C4Material.h:131
int32_t BelowTempConvert
Definition: C4Material.h:123
int32_t WindDrift
Definition: C4Material.h:105
int32_t InMatConvertDepth
Definition: C4Material.h:122
int32_t Corrosive
Definition: C4Material.h:109
C4MaterialCoreShape MapChunkType
Definition: C4Material.h:91
int32_t Placement
Definition: C4Material.h:112
bool KeepSinglePixels
Definition: C4Material.h:132
int32_t Incendiary
Definition: C4Material.h:107
int32_t LightEmit[3]
Definition: C4Material.h:135
int32_t TempConvStrength
Definition: C4Material.h:129
int32_t LightSpot[3]
Definition: C4Material.h:136
StdCopyStrBuf sInMatConvert
Definition: C4Material.h:120
std::vector< C4MaterialReaction > CustomReactionList
Definition: C4Material.h:87
void Default()
Definition: C4Rect.cpp:39
StdCopyStrBuf sBelowTempConvertTo
Definition: C4Material.h:125
int32_t DigFree
Definition: C4Material.h:94
int32_t BelowTempConvertDir
Definition: C4Material.h:124
int32_t Inflammable
Definition: C4Material.h:106

◆ CompileFunc()

void C4MaterialCore::CompileFunc ( StdCompiler pComp)
inherited

Definition at line 183 of file C4Material.cpp.

References C4M_Flat, C4M_Octagon, C4M_Rough, C4M_Smooth, C4M_Smoother, C4M_TopFlat, StdCompiler::hasNaming(), StdCompiler::isDeserializer(), mkArrayAdaptDM, mkNamingAdapt(), mkParAdapt(), mkSTLContainerAdapt(), StdCompiler::Name(), StdCompiler::NameEnd(), C4ID::None, StdCompiler::RCT_IdtfAllowEmpty, TargetRect0(), toC4CStr, and StdCompiler::Value().

184 {
185  assert(pComp->hasNaming());
186  if (pComp->isDeserializer()) Clear();
187  pComp->Name("Material");
188  pComp->Value(mkNamingAdapt(toC4CStr(Name), "Name", ""));
189 
190  const StdEnumEntry<C4MaterialCoreShape> Shapes[] =
191  {
192  { "Flat", C4M_Flat },
193  { "TopFlat", C4M_TopFlat },
194  { "Smooth", C4M_Smooth },
195  { "Rough", C4M_Rough },
196  { "Octagon", C4M_Octagon },
197  { "Smoother", C4M_Smoother },
198  { nullptr, C4M_Flat }
199  };
200  pComp->Value(mkNamingAdapt(mkEnumAdaptT<uint8_t>(MapChunkType, Shapes),
201  "Shape", C4M_Flat));
202  pComp->Value(mkNamingAdapt(Density, "Density", 0));
203  pComp->Value(mkNamingAdapt(Friction, "Friction", 0));
204  pComp->Value(mkNamingAdapt(DigFree, "DigFree", 0));
205  pComp->Value(mkNamingAdapt(BlastFree, "BlastFree", 0));
206  pComp->Value(mkNamingAdapt(Blast2Object, "Blast2Object", C4ID::None));
207  pComp->Value(mkNamingAdapt(Dig2Object, "Dig2Object", C4ID::None));
208  pComp->Value(mkNamingAdapt(Dig2ObjectRatio, "Dig2ObjectRatio", 0));
209  pComp->Value(mkNamingAdapt(Dig2ObjectCollect, "Dig2ObjectCollect", 0));
210  pComp->Value(mkNamingAdapt(Blast2ObjectRatio, "Blast2ObjectRatio", 0));
211  pComp->Value(mkNamingAdapt(Blast2PXSRatio, "Blast2PXSRatio", 0));
212  pComp->Value(mkNamingAdapt(Instable, "Instable", 0));
213  pComp->Value(mkNamingAdapt(MaxAirSpeed, "MaxAirSpeed", 0));
214  pComp->Value(mkNamingAdapt(MaxSlide, "MaxSlide", 0));
215  pComp->Value(mkNamingAdapt(WindDrift, "WindDrift", 0));
216  pComp->Value(mkNamingAdapt(Inflammable, "Inflammable", 0));
217  if (pComp->isDeserializer())
218  {
219  // The value used to have a wrong spelling ("Incindiary"). If there's
220  // no "Incendiary" value, use the wrong spelling instead
221  try
222  {
223  pComp->Value(mkNamingAdapt(Incendiary, "Incendiary"));
224  }
226  {
227  delete ex;
228  pComp->Value(mkNamingAdapt(Incendiary, "Incindiary", 0));
229  }
230  }
231  else
232  {
233  // When serializing, write both spellings because some script might be
234  // calling GetMaterialVal with the wrong one
235  pComp->Value(mkNamingAdapt(Incendiary, "Incendiary"));
236  pComp->Value(mkNamingAdapt(Incendiary, "Incindiary"));
237  }
238  pComp->Value(mkNamingAdapt(Corrode, "Corrode", 0));
239  pComp->Value(mkNamingAdapt(Corrosive, "Corrosive", 0));
240  pComp->Value(mkNamingAdapt(Extinguisher, "Extinguisher", 0));
241  pComp->Value(mkNamingAdapt(Soil, "Soil", 0));
242  pComp->Value(mkNamingAdapt(Placement, "Placement", 0));
243  pComp->Value(mkNamingAdapt(Light, "Light", 0));
245  "TextureOverlay", ""));
246  pComp->Value(mkNamingAdapt(OverlayType, "OverlayType", 0));
248  "PXSGfx", ""));
249  pComp->Value(mkNamingAdapt(PXSGfxRt, "PXSGfxRt", TargetRect0));
250  pComp->Value(mkNamingAdapt(PXSGfxSize, "PXSGfxSize", PXSGfxRt.Wdt));
251  pComp->Value(mkNamingAdapt(TempConvStrength, "TempConvStrength", 0));
253  "BlastShiftTo", ""));
255  "InMatConvert", ""));
257  "InMatConvertTo", ""));
258  pComp->Value(mkNamingAdapt(InMatConvertDepth, "InMatConvertDepth", 0));
259  pComp->Value(mkNamingAdapt(AboveTempConvert, "AboveTempConvert", 0));
260  pComp->Value(mkNamingAdapt(AboveTempConvertDir, "AboveTempConvertDir", 0));
262  "AboveTempConvertTo", ""));
263  pComp->Value(mkNamingAdapt(BelowTempConvert, "BelowTempConvert", 0));
264  pComp->Value(mkNamingAdapt(BelowTempConvertDir, "BelowTempConvertDir", 0));
266  "BelowTempConvertTo", ""));
267  pComp->Value(mkNamingAdapt(MinHeightCount, "MinHeightCount", 0));
268  pComp->Value(mkNamingAdapt(SplashRate, "SplashRate", 10));
269  pComp->Value(mkNamingAdapt(KeepSinglePixels, "KeepSinglePixels", false));
270  pComp->Value(mkNamingAdapt(AnimationSpeed, "AnimationSpeed", 100));
271  pComp->Value(mkNamingAdapt(LightAngle, "LightAngle", 255));
272  pComp->Value(mkNamingAdapt(mkArrayAdaptDM(LightEmit, 0), "LightEmit"));
273  pComp->Value(mkNamingAdapt(mkArrayAdaptDM(LightSpot, 16),"LightSpot"));
274  pComp->Value(mkNamingAdapt(MinShapeOverlap, "MinShapeOverlap", 25));
275  pComp->NameEnd();
276  // material reactions
278  "Reaction", std::vector<C4MaterialReaction>()));
279 }
int32_t Extinguisher
Definition: C4Material.h:108
virtual bool hasNaming()
Definition: StdCompiler.h:58
Definition: StdAdaptors.h:780
int32_t MaxSlide
Definition: C4Material.h:104
StdCopyStrBuf sTextureOverlay
Definition: C4Material.h:114
C4TargetRect PXSGfxRt
Definition: C4Material.h:117
int32_t Corrode
Definition: C4Material.h:110
int32_t Instable
Definition: C4Material.h:102
int32_t Friction
Definition: C4Material.h:93
int32_t OverlayType
Definition: C4Material.h:115
int32_t AnimationSpeed
Definition: C4Material.h:133
virtual bool Name(const char *szName)
Definition: StdCompiler.h:77
int32_t BlastFree
Definition: C4Material.h:95
int32_t MinShapeOverlap
Definition: C4Material.h:137
#define toC4CStr(szString)
Definition: StdAdaptors.h:24
int32_t MaxAirSpeed
Definition: C4Material.h:103
const C4TargetRect TargetRect0(0, 0, 0, 0, 0, 0)
int32_t Dig2ObjectCollect
Definition: C4Material.h:98
StdNamingAdapt< T > mkNamingAdapt(T &&rValue, const char *szName)
Definition: StdAdaptors.h:92
int32_t LightAngle
Definition: C4Material.h:134
StdCopyStrBuf sPXSGfx
Definition: C4Material.h:116
int32_t Wdt
Definition: C4Rect.h:30
StdCopyStrBuf sBlastShiftTo
Definition: C4Material.h:119
char Name[C4M_MaxName+1]
Definition: C4Material.h:89
int32_t Light
Definition: C4Material.h:113
int32_t AboveTempConvert
Definition: C4Material.h:126
int32_t AboveTempConvertDir
Definition: C4Material.h:127
static const C4ID None
Definition: C4Id.h:39
int32_t Blast2PXSRatio
Definition: C4Material.h:101
int32_t Blast2ObjectRatio
Definition: C4Material.h:100
StdCopyStrBuf sAboveTempConvertTo
Definition: C4Material.h:128
int32_t MinHeightCount
Definition: C4Material.h:130
void Value(const T &rStruct)
Definition: StdCompiler.h:161
C4ID Blast2Object
Definition: C4Material.h:99
#define mkArrayAdaptDM(A, D)
Definition: StdAdaptors.h:381
StdCopyStrBuf sInMatConvertTo
Definition: C4Material.h:121
int32_t Dig2ObjectRatio
Definition: C4Material.h:97
int32_t Density
Definition: C4Material.h:92
virtual bool isDeserializer()
Definition: StdCompiler.h:53
int32_t Soil
Definition: C4Material.h:111
int32_t PXSGfxSize
Definition: C4Material.h:118
int32_t SplashRate
Definition: C4Material.h:131
int32_t BelowTempConvert
Definition: C4Material.h:123
int32_t WindDrift
Definition: C4Material.h:105
int32_t InMatConvertDepth
Definition: C4Material.h:122
StdSTLContainerAdapt< C > mkSTLContainerAdapt(C &rTarget, StdCompiler::Sep eSep=StdCompiler::SEP_SEP)
Definition: StdAdaptors.h:699
int32_t Corrosive
Definition: C4Material.h:109
C4MaterialCoreShape MapChunkType
Definition: C4Material.h:91
int32_t Placement
Definition: C4Material.h:112
bool KeepSinglePixels
Definition: C4Material.h:132
StdParameterAdapt< T, P > mkParAdapt(T &&rObj, P &&rPar)
Definition: StdAdaptors.h:476
int32_t Incendiary
Definition: C4Material.h:107
int32_t LightEmit[3]
Definition: C4Material.h:135
int32_t TempConvStrength
Definition: C4Material.h:129
int32_t LightSpot[3]
Definition: C4Material.h:136
StdCopyStrBuf sInMatConvert
Definition: C4Material.h:120
std::vector< C4MaterialReaction > CustomReactionList
Definition: C4Material.h:87
StdCopyStrBuf sBelowTempConvertTo
Definition: C4Material.h:125
int32_t DigFree
Definition: C4Material.h:94
virtual void NameEnd(bool fBreak=false)
Definition: StdCompiler.h:78
int32_t BelowTempConvertDir
Definition: C4Material.h:124
int32_t Inflammable
Definition: C4Material.h:106
Here is the call graph for this function:

◆ Default()

void C4MaterialCore::Default ( )
inherited

Definition at line 153 of file C4Material.cpp.

154 {
155  Clear();
156 }

◆ Load()

bool C4MaterialCore::Load ( C4Group hGroup,
const char *  szEntryName 
)
inherited

Definition at line 158 of file C4Material.cpp.

References DensityLiquid(), DensitySolid(), DirSep, StdStrBuf::getData(), C4Group::GetFullName(), and C4Group::LoadEntryString().

160 {
161  StdStrBuf Source;
162  if (!hGroup.LoadEntryString(szEntryName,&Source))
163  return false;
164  StdStrBuf Name = hGroup.GetFullName() + DirSep + szEntryName;
165  if (!CompileFromBuf_LogWarn<StdCompilerINIRead>(*this, Source, Name.getData()))
166  return false;
167  // adjust placement, if not specified
168  if (!Placement)
169  {
170  if (DensitySolid(Density))
171  {
172  Placement=30;
173  if (!DigFree) Placement+=20;
174  if (!BlastFree) Placement+=10;
175  }
176  else if (DensityLiquid(Density))
177  Placement=10;
178  else Placement=5;
179  }
180  return true;
181 }
int32_t BlastFree
Definition: C4Material.h:95
StdStrBuf GetFullName() const
Definition: C4Group.cpp:2078
char Name[C4M_MaxName+1]
Definition: C4Material.h:89
bool DensityLiquid(int32_t dens)
Definition: C4Landscape.h:206
const char * getData() const
Definition: StdBuf.h:442
int32_t Density
Definition: C4Material.h:92
bool LoadEntryString(const char *szEntryName, StdStrBuf *Buf)
Definition: C4Group.cpp:1932
int32_t Placement
Definition: C4Material.h:112
#define DirSep
int32_t DigFree
Definition: C4Material.h:94
bool DensitySolid(int32_t dens)
Definition: C4Landscape.h:196
Here is the call graph for this function:

◆ UpdateScriptPointers()

void C4Material::UpdateScriptPointers ( )

Definition at line 292 of file C4Material.cpp.

293 {
294  for (auto & i : CustomReactionList)
295  i.ResolveScriptFuncs(Name);
296 }
char Name[C4M_MaxName+1]
Definition: C4Material.h:89
std::vector< C4MaterialReaction > CustomReactionList
Definition: C4Material.h:87

Member Data Documentation

◆ AboveTempConvert

int32_t C4MaterialCore::AboveTempConvert
inherited

Definition at line 126 of file C4Material.h.

Referenced by C4Landscape::P::DoScan(), and C4Landscape::P::ExecuteScan().

◆ AboveTempConvertDir

int32_t C4MaterialCore::AboveTempConvertDir
inherited

Definition at line 127 of file C4Material.h.

Referenced by C4Landscape::P::DoScan().

◆ AboveTempConvertTo

int32_t C4Material::AboveTempConvertTo

◆ AnimationSpeed

int32_t C4MaterialCore::AnimationSpeed
inherited

Definition at line 133 of file C4Material.h.

◆ BelowTempConvert

int32_t C4MaterialCore::BelowTempConvert
inherited

Definition at line 123 of file C4Material.h.

Referenced by C4Landscape::P::DoScan(), and C4Landscape::P::ExecuteScan().

◆ BelowTempConvertDir

int32_t C4MaterialCore::BelowTempConvertDir
inherited

Definition at line 124 of file C4Material.h.

Referenced by C4Landscape::P::DoScan().

◆ BelowTempConvertTo

int32_t C4Material::BelowTempConvertTo

◆ Blast2Object

C4ID C4MaterialCore::Blast2Object
inherited

Definition at line 99 of file C4Material.h.

Referenced by C4Landscape::P::BlastMaterial2Objects().

◆ Blast2ObjectRatio

int32_t C4MaterialCore::Blast2ObjectRatio
inherited

Definition at line 100 of file C4Material.h.

Referenced by C4Landscape::P::BlastMaterial2Objects().

◆ Blast2PXSRatio

int32_t C4MaterialCore::Blast2PXSRatio
inherited

Definition at line 101 of file C4Material.h.

Referenced by C4Landscape::P::BlastMaterial2Objects().

◆ BlastFree

int32_t C4MaterialCore::BlastFree
inherited

Definition at line 95 of file C4Material.h.

Referenced by C4Landscape::P::BlastFreePix().

◆ BlastShiftTo

int32_t C4Material::BlastShiftTo

◆ Corrode

int32_t C4MaterialCore::Corrode
inherited

Definition at line 110 of file C4Material.h.

Referenced by C4MaterialMap::CrossMapMaterials(), and C4MaterialMap::mrfCorrode().

◆ Corrosive

int32_t C4MaterialCore::Corrosive
inherited

◆ CustomReactionList

std::vector<C4MaterialReaction> C4MaterialCore::CustomReactionList
inherited

Definition at line 87 of file C4Material.h.

Referenced by C4MaterialMap::CrossMapMaterials().

◆ DefaultMatTex

◆ Density

◆ Dig2Object

C4ID C4MaterialCore::Dig2Object
inherited

Definition at line 96 of file C4Material.h.

Referenced by C4Landscape::P::DigMaterial2Objects().

◆ Dig2ObjectCollect

int32_t C4MaterialCore::Dig2ObjectCollect
inherited

Definition at line 98 of file C4Material.h.

Referenced by C4Landscape::P::DigMaterial2Objects().

◆ Dig2ObjectRatio

int32_t C4MaterialCore::Dig2ObjectRatio
inherited

Definition at line 97 of file C4Material.h.

Referenced by C4Landscape::P::DigMaterial2Objects().

◆ DigFree

◆ Extinguisher

int32_t C4MaterialCore::Extinguisher
inherited

Definition at line 108 of file C4Material.h.

Referenced by C4MaterialMap::CrossMapMaterials().

◆ Friction

int32_t C4MaterialCore::Friction
inherited

Definition at line 93 of file C4Material.h.

◆ Incendiary

int32_t C4MaterialCore::Incendiary
inherited

◆ Inflammable

int32_t C4MaterialCore::Inflammable
inherited

Definition at line 106 of file C4Material.h.

Referenced by C4MaterialMap::CrossMapMaterials(), and C4Landscape::Incinerate().

◆ InMatConvertDepth

int32_t C4MaterialCore::InMatConvertDepth
inherited

Definition at line 122 of file C4Material.h.

Referenced by C4MaterialMap::mrfConvert().

◆ InMatConvertTo

int32_t C4Material::InMatConvertTo

Definition at line 152 of file C4Material.h.

Referenced by C4MaterialMap::mrfConvert().

◆ Instable

int32_t C4MaterialCore::Instable
inherited

Definition at line 102 of file C4Material.h.

Referenced by C4Landscape::CheckInstability(), and C4Landscape::InsertMaterial().

◆ KeepSinglePixels

bool C4MaterialCore::KeepSinglePixels
inherited

Definition at line 132 of file C4Material.h.

Referenced by C4Landscape::CheckInstability().

◆ Light

int32_t C4MaterialCore::Light
inherited

Definition at line 113 of file C4Material.h.

Referenced by PixCol2Mat(), and C4Landscape::UpdatePixMaps().

◆ LightAngle

int32_t C4MaterialCore::LightAngle
inherited

Definition at line 134 of file C4Material.h.

◆ LightEmit

int32_t C4MaterialCore::LightEmit[3]
inherited

Definition at line 135 of file C4Material.h.

◆ LightSpot

int32_t C4MaterialCore::LightSpot[3]
inherited

Definition at line 136 of file C4Material.h.

◆ MapChunkType

C4MaterialCoreShape C4MaterialCore::MapChunkType
inherited

Definition at line 91 of file C4Material.h.

Referenced by C4Landscape::P::ChunkOZoom(), and C4Landscape::DrawChunks().

◆ MaxAirSpeed

int32_t C4MaterialCore::MaxAirSpeed
inherited

Definition at line 103 of file C4Material.h.

◆ MaxSlide

int32_t C4MaterialCore::MaxSlide
inherited

◆ MinHeightCount

int32_t C4MaterialCore::MinHeightCount
inherited

Definition at line 130 of file C4Material.h.

Referenced by C4Landscape::_SetPix2(), and C4Landscape::P::UpdateMatCnt().

◆ MinShapeOverlap

int32_t C4MaterialCore::MinShapeOverlap
inherited

Definition at line 137 of file C4Material.h.

Referenced by C4Landscape::P::ChunkOZoom().

◆ Name

◆ OverlayType

int32_t C4MaterialCore::OverlayType
inherited

Definition at line 115 of file C4Material.h.

Referenced by C4MaterialMap::CrossMapMaterials(), and C4TexMapEntry::Init().

◆ Placement

int32_t C4MaterialCore::Placement
inherited

Definition at line 112 of file C4Material.h.

Referenced by MatPlacement(), PixCol2Mat(), and C4Landscape::UpdatePixMaps().

◆ PXSFace

C4Facet C4Material::PXSFace

Definition at line 157 of file C4Material.h.

Referenced by C4PXSSystem::Draw().

◆ PXSGfxRt

C4TargetRect C4MaterialCore::PXSGfxRt
inherited

Definition at line 117 of file C4Material.h.

Referenced by C4MaterialMap::CrossMapMaterials(), and C4PXSSystem::Draw().

◆ PXSGfxSize

int32_t C4MaterialCore::PXSGfxSize
inherited

Definition at line 118 of file C4Material.h.

Referenced by C4PXSSystem::Draw().

◆ sAboveTempConvertTo

StdCopyStrBuf C4MaterialCore::sAboveTempConvertTo
inherited

Definition at line 128 of file C4Material.h.

Referenced by C4MaterialMap::CrossMapMaterials().

◆ sBelowTempConvertTo

StdCopyStrBuf C4MaterialCore::sBelowTempConvertTo
inherited

Definition at line 125 of file C4Material.h.

Referenced by C4MaterialMap::CrossMapMaterials().

◆ sBlastShiftTo

StdCopyStrBuf C4MaterialCore::sBlastShiftTo
inherited

Definition at line 119 of file C4Material.h.

Referenced by C4MaterialMap::CrossMapMaterials().

◆ sInMatConvert

StdCopyStrBuf C4MaterialCore::sInMatConvert
inherited

Definition at line 120 of file C4Material.h.

Referenced by C4MaterialMap::CrossMapMaterials().

◆ sInMatConvertTo

StdCopyStrBuf C4MaterialCore::sInMatConvertTo
inherited

Definition at line 121 of file C4Material.h.

◆ Soil

int32_t C4MaterialCore::Soil
inherited

Definition at line 111 of file C4Material.h.

◆ SplashRate

int32_t C4MaterialCore::SplashRate
inherited

Definition at line 131 of file C4Material.h.

Referenced by mrfInsertCheck().

◆ sPXSGfx

StdCopyStrBuf C4MaterialCore::sPXSGfx
inherited

Definition at line 116 of file C4Material.h.

Referenced by C4MaterialMap::CrossMapMaterials().

◆ sTextureOverlay

StdCopyStrBuf C4MaterialCore::sTextureOverlay
inherited

◆ TempConvStrength

int32_t C4MaterialCore::TempConvStrength
inherited

Definition at line 129 of file C4Material.h.

Referenced by C4Landscape::P::DoScan().

◆ WindDrift

int32_t C4MaterialCore::WindDrift
inherited

Definition at line 105 of file C4Material.h.

Referenced by C4PXS::Execute().


The documentation for this class was generated from the following files: