#include "C4Include.h"
#include "landscape/C4Material.h"
#include "c4group/C4Components.h"
#include "c4group/C4Group.h"
#include "editor/C4ToolsDlg.h"
#include "game/C4Physics.h"
#include "landscape/C4PXS.h"
#include "landscape/C4Texture.h"
#include "landscape/C4Landscape.h"
#include "lib/C4Random.h"
#include "platform/C4SoundSystem.h"
#include "script/C4Aul.h"
#include "script/C4Effect.h"
Go to the source code of this file.
Classes | |
struct | ReactionFuncMapEntry |
Functions | |
bool | mrfInsertCheck (int32_t &iX, int32_t &iY, C4Real &fXDir, C4Real &fYDir, int32_t &iPxsMat, int32_t iLsMat, bool *pfPosChanged, bool no_slide=false) |
bool | mrfUserCheck (C4MaterialReaction *pReaction, int32_t &iX, int32_t &iY, int32_t iLSPosX, int32_t iLSPosY, C4Real &fXDir, C4Real &fYDir, int32_t &iPxsMat, int32_t iLsMat, MaterialInteractionEvent evEvent, bool *pfPosChanged) |
Variables | |
int32_t | MVehic =MNone |
int32_t | MHalfVehic =MNone |
int32_t | MTunnel =MNone |
int32_t | MWater =MNone |
int32_t | MEarth =MNone |
BYTE | MCVehic =0 |
BYTE | MCHalfVehic =0 |
const ReactionFuncMapEntry | ReactionFuncMap [] |
C4MaterialMap | MaterialMap |
struct ReactionFuncMapEntry |
Definition at line 42 of file C4Material.cpp.
Class Members | ||
---|---|---|
C4MaterialReactionFunc | pFunc | |
const char * | szRFName |
bool mrfInsertCheck | ( | int32_t & | iX, |
int32_t & | iY, | ||
C4Real & | fXDir, | ||
C4Real & | fYDir, | ||
int32_t & | iPxsMat, | ||
int32_t | iLsMat, | ||
bool * | pfPosChanged, | ||
bool | no_slide = false |
||
) |
Definition at line 667 of file C4Material.cpp.
References C4M_Solid, C4REAL100(), C4MaterialCore::Density, C4Landscape::GetDensity(), GravAccel, C4MaterialCore::Incendiary, itofix(), Landscape, C4MaterialMap::Map, MaterialMap, Random(), and C4MaterialCore::SplashRate.
Referenced by C4MaterialMap::mrfIncinerate(), C4MaterialMap::mrfInsert(), and mrfUserCheck().
bool mrfUserCheck | ( | C4MaterialReaction * | pReaction, |
int32_t & | iX, | ||
int32_t & | iY, | ||
int32_t | iLSPosX, | ||
int32_t | iLSPosY, | ||
C4Real & | fXDir, | ||
C4Real & | fYDir, | ||
int32_t & | iPxsMat, | ||
int32_t | iLsMat, | ||
MaterialInteractionEvent | evEvent, | ||
bool * | pfPosChanged | ||
) |
Definition at line 741 of file C4Material.cpp.
References C4MaterialReaction::fInsertionCheck, C4MaterialReaction::iExecMask, meePXSMove, and mrfInsertCheck().
Referenced by C4MaterialMap::mrfConvert(), C4MaterialMap::mrfCorrode(), C4MaterialMap::mrfInsert(), C4MaterialMap::mrfPoof(), and C4MaterialMap::mrfScript().
C4MaterialMap MaterialMap |
Definition at line 974 of file C4Material.cpp.
Referenced by C4Landscape::_SetPix2(), C4EditCursor::ApplyToolPicker(), C4Landscape::P::BlastFreePix(), C4Landscape::P::BlastMaterial2Objects(), c4_material_map_handle_new(), C4Landscape::CheckInstability(), C4Game::Clear(), C4MassMover::Corrosion(), C4Landscape::P::CreateMapS2(), C4MaterialMap::CrossMapMaterials(), C4Game::Default(), C4Landscape::P::DigFreePix(), C4Landscape::P::DigFreePixNoInstability(), C4Landscape::P::DigMaterial2Objects(), C4Landscape::P::DoScan(), C4PXSSystem::Draw(), C4Landscape::DrawChunks(), C4Landscape::DrawMap(), C4Object::ExecLife(), C4MassMover::Execute(), C4PXS::Execute(), C4Landscape::P::ExecuteScan(), C4Landscape::FindMatTop(), C4Landscape::P::GetBridgeMatConversion(), C4TextureMap::GetIndexMatTex(), C4Landscape::Incinerate(), C4TexMapEntry::Init(), C4Game::InitMaterialTexture(), C4Landscape::InsertMaterial(), C4Game::LinkScriptEngine(), C4Landscape::P::MapToSurface(), Mat2PixColDefault(), MatDensity(), MatDigFree(), MatPlacement(), MatValid(), C4MaterialMap::mrfConvert(), C4MaterialMap::mrfCorrode(), mrfInsertCheck(), C4Game::ReLinkScriptEngine(), C4Landscape::RemoveUnusedTexMapEntries(), C4Landscape::SaveMap(), C4ToolsDlg::SetTexture(), C4Landscape::P::ShakeFreePix(), C4Landscape::P::UpdateMatCnt(), C4Landscape::UpdatePixMaps(), and C4EditCursor::UpdateStatusBar().
BYTE MCHalfVehic =0 |
Definition at line 38 of file C4Material.cpp.
Referenced by C4MaterialMap::CrossMapMaterials(), IsMCHalfVehicle(), and C4SolidMask::SetHalfVehicle().
BYTE MCVehic =0 |
Definition at line 37 of file C4Material.cpp.
Referenced by C4SolidMask::C4SolidMask(), C4MaterialMap::CrossMapMaterials(), C4Landscape::GetPix(), C4Landscape::P::InitBorderPix(), IsMCVehicle(), C4SolidMask::Put(), C4SolidMask::Remove(), and C4SolidMask::SetHalfVehicle().
int32_t MEarth =MNone |
Definition at line 36 of file C4Material.cpp.
Referenced by C4MaterialMap::CrossMapMaterials(), and C4Game::PlaceInEarth().
int32_t MHalfVehic =MNone |
Definition at line 36 of file C4Material.cpp.
Referenced by C4MaterialMap::CrossMapMaterials().
int32_t MTunnel =MNone |
Definition at line 36 of file C4Material.cpp.
Referenced by C4MaterialMap::CrossMapMaterials(), C4TextureMap::DefaultBkgMatTex(), and C4MCOverlay::Evaluate().
int32_t MVehic =MNone |
Definition at line 36 of file C4Material.cpp.
Referenced by C4SolidMask::CheckConsistency(), C4MaterialMap::CrossMapMaterials(), C4Object::ExecLife(), MatVehicle(), and PathFreeIgnoreVehiclePix().
int32_t MWater =MNone |
Definition at line 36 of file C4Material.cpp.
Referenced by C4MaterialMap::CrossMapMaterials(), and C4Object::ExecLife().
const ReactionFuncMapEntry ReactionFuncMap[] |
Definition at line 44 of file C4Material.cpp.
Referenced by C4MaterialReaction::CompileFunc().