OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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 147 of file C4Material.h.

Constructor & Destructor Documentation

C4Material::C4Material ( )

Definition at line 285 of file C4Material.cpp.

References AboveTempConvertTo, BelowTempConvertTo, BlastShiftTo, InMatConvertTo, and MNone.

286 {
287  BlastShiftTo=0;
291 }
int32_t BlastShiftTo
Definition: C4Material.h:153
int32_t InMatConvertTo
Definition: C4Material.h:154
const int32_t MNone
Definition: C4Constants.h:178
int32_t AboveTempConvertTo
Definition: C4Material.h:156
int32_t BelowTempConvertTo
Definition: C4Material.h:155

Member Function Documentation

void C4MaterialCore::Clear ( )
inherited

Definition at line 99 of file C4Material.cpp.

References C4MaterialCore::AboveTempConvert, C4MaterialCore::AboveTempConvertDir, C4MaterialCore::AnimationSpeed, C4MaterialCore::BelowTempConvert, C4MaterialCore::BelowTempConvertDir, C4MaterialCore::Blast2Object, C4MaterialCore::Blast2ObjectRatio, C4MaterialCore::Blast2PXSRatio, C4MaterialCore::BlastFree, C4M_Flat, StdStrBuf::Clear(), C4MaterialCore::Corrode, C4MaterialCore::Corrosive, C4MaterialCore::CustomReactionList, C4TargetRect::Default(), C4MaterialCore::Density, C4MaterialCore::Dig2Object, C4MaterialCore::Dig2ObjectCollect, C4MaterialCore::Dig2ObjectRatio, C4MaterialCore::DigFree, C4MaterialCore::Extinguisher, C4MaterialCore::Friction, C4MaterialCore::Incendiary, C4MaterialCore::Inflammable, C4MaterialCore::InMatConvertDepth, C4MaterialCore::Instable, C4MaterialCore::KeepSinglePixels, C4MaterialCore::Light, C4MaterialCore::LightAngle, C4MaterialCore::LightEmit, C4MaterialCore::LightSpot, C4MaterialCore::MapChunkType, C4MaterialCore::MaxAirSpeed, C4MaterialCore::MaxSlide, C4MaterialCore::MinHeightCount, C4MaterialCore::MinShapeOverlap, C4MaterialCore::Name, C4ID::None, C4MaterialCore::OverlayType, C4MaterialCore::Placement, C4MaterialCore::PXSGfxRt, C4MaterialCore::PXSGfxSize, C4MaterialCore::sAboveTempConvertTo, C4MaterialCore::sBelowTempConvertTo, C4MaterialCore::sBlastShiftTo, C4MaterialCore::sInMatConvert, C4MaterialCore::sInMatConvertTo, C4MaterialCore::Soil, C4MaterialCore::SplashRate, C4MaterialCore::sPXSGfx, C4MaterialCore::sTextureOverlay, C4MaterialCore::TempConvStrength, and C4MaterialCore::WindDrift.

Referenced by C4MaterialCore::C4MaterialCore(), C4MaterialCore::CompileFunc(), C4MaterialCore::Default(), and C4MaterialCore::~C4MaterialCore().

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

Here is the call graph for this function:

Here is the caller graph for this function:

void C4MaterialCore::CompileFunc ( StdCompiler pComp)
inherited

Definition at line 184 of file C4Material.cpp.

References C4MaterialCore::AboveTempConvert, C4MaterialCore::AboveTempConvertDir, C4MaterialCore::AnimationSpeed, C4MaterialCore::BelowTempConvert, C4MaterialCore::BelowTempConvertDir, C4MaterialCore::Blast2Object, C4MaterialCore::Blast2ObjectRatio, C4MaterialCore::Blast2PXSRatio, C4MaterialCore::BlastFree, C4M_Flat, C4M_Octagon, C4M_Rough, C4M_Smooth, C4M_Smoother, C4M_TopFlat, C4MaterialCore::Clear(), C4MaterialCore::Corrode, C4MaterialCore::Corrosive, C4MaterialCore::CustomReactionList, C4MaterialCore::Density, C4MaterialCore::Dig2Object, C4MaterialCore::Dig2ObjectCollect, C4MaterialCore::Dig2ObjectRatio, C4MaterialCore::DigFree, C4MaterialCore::Extinguisher, C4MaterialCore::Friction, StdCompiler::hasNaming(), C4MaterialCore::Incendiary, C4MaterialCore::Inflammable, C4MaterialCore::InMatConvertDepth, C4MaterialCore::Instable, StdCompiler::isDeserializer(), C4MaterialCore::KeepSinglePixels, C4MaterialCore::Light, C4MaterialCore::LightAngle, C4MaterialCore::LightEmit, C4MaterialCore::LightSpot, C4MaterialCore::MapChunkType, C4MaterialCore::MaxAirSpeed, C4MaterialCore::MaxSlide, C4MaterialCore::MinHeightCount, C4MaterialCore::MinShapeOverlap, mkArrayAdaptDM, mkNamingAdapt(), mkParAdapt(), mkSTLContainerAdapt(), StdCompiler::Name(), C4MaterialCore::Name, StdCompiler::NameEnd(), C4ID::None, C4MaterialCore::OverlayType, C4MaterialCore::Placement, C4MaterialCore::PXSGfxRt, C4MaterialCore::PXSGfxSize, StdCompiler::RCT_IdtfAllowEmpty, C4MaterialCore::sAboveTempConvertTo, C4MaterialCore::sBelowTempConvertTo, C4MaterialCore::sBlastShiftTo, C4MaterialCore::sInMatConvert, C4MaterialCore::sInMatConvertTo, C4MaterialCore::Soil, C4MaterialCore::SplashRate, C4MaterialCore::sPXSGfx, C4MaterialCore::sTextureOverlay, TargetRect0(), C4MaterialCore::TempConvStrength, toC4CStr, StdCompiler::Value(), C4Rect::Wdt, and C4MaterialCore::WindDrift.

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

Here is the call graph for this function:

void C4MaterialCore::Default ( )
inherited

Definition at line 154 of file C4Material.cpp.

References C4MaterialCore::Clear().

155 {
156  Clear();
157 }

Here is the call graph for this function:

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

Definition at line 159 of file C4Material.cpp.

References C4MaterialCore::BlastFree, C4MaterialCore::Density, DensityLiquid(), DensitySolid(), C4MaterialCore::DigFree, DirSep, StdStrBuf::getData(), C4Group::GetFullName(), C4Group::LoadEntryString(), C4MaterialCore::Name, and C4MaterialCore::Placement.

161 {
162  StdStrBuf Source;
163  if (!hGroup.LoadEntryString(szEntryName,&Source))
164  return false;
165  StdStrBuf Name = hGroup.GetFullName() + DirSep + szEntryName;
166  if (!CompileFromBuf_LogWarn<StdCompilerINIRead>(*this, Source, Name.getData()))
167  return false;
168  // adjust placement, if not specified
169  if (!Placement)
170  {
171  if (DensitySolid(Density))
172  {
173  Placement=30;
174  if (!DigFree) Placement+=20;
175  if (!BlastFree) Placement+=10;
176  }
177  else if (DensityLiquid(Density))
178  Placement=10;
179  else Placement=5;
180  }
181  return true;
182 }
const char * getData() const
Definition: StdBuf.h:450
int32_t BlastFree
Definition: C4Material.h:97
char Name[C4M_MaxName+1]
Definition: C4Material.h:91
StdStrBuf GetFullName() const
Definition: C4Group.cpp:2078
bool DensityLiquid(int32_t dens)
Definition: C4Landscape.h:209
int32_t Density
Definition: C4Material.h:94
bool LoadEntryString(const char *szEntryName, StdStrBuf *Buf)
Definition: C4Group.cpp:1932
int32_t Placement
Definition: C4Material.h:114
#define DirSep
int32_t DigFree
Definition: C4Material.h:96
bool DensitySolid(int32_t dens)
Definition: C4Landscape.h:199

Here is the call graph for this function:

void C4Material::UpdateScriptPointers ( )

Definition at line 293 of file C4Material.cpp.

References C4MaterialCore::CustomReactionList, and C4MaterialCore::Name.

294 {
295  for (uint32_t i = 0; i < CustomReactionList.size(); ++i)
296  CustomReactionList[i].ResolveScriptFuncs(Name);
297 }
char Name[C4M_MaxName+1]
Definition: C4Material.h:91
std::vector< C4MaterialReaction > CustomReactionList
Definition: C4Material.h:89

Member Data Documentation

int32_t C4MaterialCore::AboveTempConvert
inherited
int32_t C4MaterialCore::AboveTempConvertDir
inherited
int32_t C4Material::AboveTempConvertTo
int32_t C4MaterialCore::AnimationSpeed
inherited

Definition at line 135 of file C4Material.h.

Referenced by C4MaterialCore::Clear(), and C4MaterialCore::CompileFunc().

int32_t C4MaterialCore::BelowTempConvert
inherited
int32_t C4MaterialCore::BelowTempConvertDir
inherited
int32_t C4Material::BelowTempConvertTo
C4ID C4MaterialCore::Blast2Object
inherited
int32_t C4MaterialCore::Blast2ObjectRatio
inherited
int32_t C4MaterialCore::Blast2PXSRatio
inherited
int32_t C4MaterialCore::BlastFree
inherited
int32_t C4Material::BlastShiftTo
int32_t C4MaterialCore::Corrode
inherited
int32_t C4MaterialCore::Corrosive
inherited
std::vector<C4MaterialReaction> C4MaterialCore::CustomReactionList
inherited
C4ID C4MaterialCore::Dig2Object
inherited
int32_t C4MaterialCore::Dig2ObjectCollect
inherited
int32_t C4MaterialCore::Dig2ObjectRatio
inherited
int32_t C4MaterialCore::Extinguisher
inherited
int32_t C4MaterialCore::Friction
inherited

Definition at line 95 of file C4Material.h.

Referenced by C4MaterialCore::Clear(), and C4MaterialCore::CompileFunc().

int32_t C4MaterialCore::Incendiary
inherited
int32_t C4MaterialCore::Inflammable
inherited
int32_t C4MaterialCore::InMatConvertDepth
inherited
int32_t C4Material::InMatConvertTo

Definition at line 154 of file C4Material.h.

Referenced by C4Material(), and C4MaterialMap::mrfConvert().

int32_t C4MaterialCore::Instable
inherited
bool C4MaterialCore::KeepSinglePixels
inherited
int32_t C4MaterialCore::Light
inherited
int32_t C4MaterialCore::LightAngle
inherited

Definition at line 136 of file C4Material.h.

Referenced by C4MaterialCore::Clear(), and C4MaterialCore::CompileFunc().

int32_t C4MaterialCore::LightEmit[3]
inherited

Definition at line 137 of file C4Material.h.

Referenced by C4MaterialCore::Clear(), and C4MaterialCore::CompileFunc().

int32_t C4MaterialCore::LightSpot[3]
inherited

Definition at line 138 of file C4Material.h.

Referenced by C4MaterialCore::Clear(), and C4MaterialCore::CompileFunc().

C4MaterialCoreShape C4MaterialCore::MapChunkType
inherited
int32_t C4MaterialCore::MaxAirSpeed
inherited

Definition at line 105 of file C4Material.h.

Referenced by C4MaterialCore::Clear(), and C4MaterialCore::CompileFunc().

int32_t C4MaterialCore::MinHeightCount
inherited
int32_t C4MaterialCore::MinShapeOverlap
inherited
int32_t C4MaterialCore::OverlayType
inherited
int32_t C4MaterialCore::Placement
inherited
C4Facet C4Material::PXSFace

Definition at line 159 of file C4Material.h.

Referenced by C4PXSSystem::Draw().

C4TargetRect C4MaterialCore::PXSGfxRt
inherited
int32_t C4MaterialCore::PXSGfxSize
inherited
StdCopyStrBuf C4MaterialCore::sAboveTempConvertTo
inherited
StdCopyStrBuf C4MaterialCore::sBelowTempConvertTo
inherited
StdCopyStrBuf C4MaterialCore::sBlastShiftTo
inherited
StdCopyStrBuf C4MaterialCore::sInMatConvert
inherited
StdCopyStrBuf C4MaterialCore::sInMatConvertTo
inherited

Definition at line 123 of file C4Material.h.

Referenced by C4MaterialCore::Clear(), and C4MaterialCore::CompileFunc().

int32_t C4MaterialCore::Soil
inherited
int32_t C4MaterialCore::SplashRate
inherited
StdCopyStrBuf C4MaterialCore::sPXSGfx
inherited
StdCopyStrBuf C4MaterialCore::sTextureOverlay
inherited
int32_t C4MaterialCore::TempConvStrength
inherited
int32_t C4MaterialCore::WindDrift
inherited

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