DayZ 1.24
|
Go to the source code of this file.
Classes | |
class | StaticConstructionMethods |
class | ConstructionBoxTrigger |
Enumerations | |
enum | ConstructionMaterialType { MATERIAL_NONE = 0 , MATERIAL_LOG = 1 , MATERIAL_WOOD = 2 , MATERIAL_STAIRS = 3 , MATERIAL_METAL = 4 , MATERIAL_WIRE = 5 } |
Variables | |
enum ConstructionMaterialType | REPAIR_MATERIAL_PERCENTAGE = 0.15 |
static const float | DECONSTURCT_MATERIAL_LOSS = 0.2 |
ref map< string, ref ConstructionPart > | m_ConstructionParts |
BaseBuildingBase | m_Parent |
Shape | m_CollisionBox |
ConstructionBoxTrigger | m_ConstructionBoxTrigger |
class StaticConstructionMethods | m_AdditionalExcludes |
Data structure for passing parameters (extendable, modable) | |
string | m_PartName |
int | m_PrimaryGeometry |
int | m_SecondaryGeometry |
Enumerator | |
---|---|
MATERIAL_NONE | |
MATERIAL_LOG | |
MATERIAL_WOOD | |
MATERIAL_STAIRS | |
MATERIAL_METAL | |
MATERIAL_WIRE |
Definition at line 1 of file Construction.c.
Definition at line 52 of file Construction.c.
References bsbDebugPrint(), GetConstructionPart(), LogManager::IsBaseBuildingLogEnable(), and m_Parent.
Definition at line 75 of file Construction.c.
References bsbDebugPrint(), DestroyCollisionTrigger(), GetInvulnerabilityTypeString(), GetParent(), LogManager::IsBaseBuildingLogEnable(), and TakeMaterialsServer().
Definition at line 286 of file Construction.c.
References CanUseToolToBuildPart(), HasConflictPart(), HasMaterials(), HasRequiredPart(), IsPartConstructed(), and MaterialIsRuined().
Referenced by GetConstructionPartsToBuild().
Definition at line 529 of file Construction.c.
References HasDependentPart(), and IsPartConstructed().
Referenced by GetConstructionPartToDestroy().
Definition at line 440 of file Construction.c.
References CanUseToolToDismantlePart(), HasDependentPart(), and IsPartConstructed().
Referenced by GetConstructionPartToDismantle().
Definition at line 893 of file Construction.c.
References GetConstructionPart(), GetGame(), and GetParent().
Referenced by CanBuildPart().
Definition at line 914 of file Construction.c.
References GetConstructionPart(), GetGame(), and GetParent().
Referenced by CanDismantlePart().
|
protected |
Definition at line 1236 of file Construction.c.
References m_AdditionalExcludes, m_PartName, m_PrimaryGeometry, and m_SecondaryGeometry.
Referenced by ActionBuildPart::ActionConditionContinue(), ActionBuildShelter::ActionConditionContinue(), and ActionBuildPart::OnFinishProgressServer().
|
protected |
Definition at line 26 of file Construction.c.
References m_ConstructionParts, and SetParent().
Referenced by ActionBuildPart::ActionConditionContinue(), ActionBuildShelter::ActionConditionContinue(), ComplexBuildCollideCheckClient(), ItemBase::ConstructionInit(), ActionDestroyPart::DestroyCondition(), ActionDismantlePart::DismantleCondition(), ItemBase::EEHealthLevelChanged(), ItemBase::GetConstructionPartById(), ActionBuildPart::OnFinishProgressServer(), ActionDestroyPart::OnFinishProgressServer(), ActionDismantlePart::OnFinishProgressServer(), ActionRepairPart::OnFinishProgressServer(), ActionBuildShelter::OnFinishProgressServer(), ActionRepairPart::RepairCondition(), ItemBase::SetPartsFromSyncData(), and StaticConstructionMethods::SpawnConstructionMaterialPiles().
Definition at line 1112 of file Construction.c.
References DestroyCollisionTrigger(), GetGame(), GetOrientation(), GetParent(), ConstructionBoxTrigger::GetPartName(), GetTriggerExtents(), m_ConstructionBoxTrigger, Trigger::SetExtents(), and ConstructionBoxTrigger::SetPartName().
|
protected |
Definition at line 1136 of file Construction.c.
References GetGame(), and m_ConstructionBoxTrigger.
Referenced by BuildPartServer(), and CreateCollisionTrigger().
Definition at line 139 of file Construction.c.
References AT_DESTROY_PART, bsbDebugPrint(), DestroyPartServer(), ExceptionCheck(), GetValidDepenentPartsArray(), and LogManager::IsBaseBuildingLogEnable().
|
protected |
Definition at line 1103 of file Construction.c.
References m_CollisionBox.
Referenced by DrawDebugCollisionBox(), Hologram::UpdateHologram(), and Hologram::~Hologram().
Definition at line 691 of file Construction.c.
References bsbDebugPrint(), GetConstructionPart(), GetGame(), GetParent(), and LogManager::IsBaseBuildingLogEnable().
Referenced by DestroyPartServer().
|
protected |
Definition at line 121 of file Construction.c.
References bsbDebugPrint(), DestroyMaterialsServer(), DropNonUsableMaterialsServer(), GetParent(), and LogManager::IsBaseBuildingLogEnable().
Referenced by DestroyConnectedParts().
Definition at line 98 of file Construction.c.
References bsbDebugPrint(), DropNonUsableMaterialsServer(), GetParent(), LogManager::IsBaseBuildingLogEnable(), and ReceiveMaterialsServer().
Definition at line 1092 of file Construction.c.
References DestroyDebugCollisionBox(), Debug::DrawBox(), GetParent(), and m_CollisionBox.
Referenced by Hologram::IsCollidingBBox().
Definition at line 739 of file Construction.c.
References bsbDebugPrint(), ECE_PLACE_ON_SURFACE, GetConstructionPart(), GetGame(), GetParent(), LogManager::IsBaseBuildingLogEnable(), EntityAI::LocalTakeToDst(), RF_DEFAULT, and EntityAI::ServerTakeToDst().
Referenced by DestroyPartServer(), and DismantlePartServer().
Exceptions from 'dependent parts' hierarchy are handled here.
Definition at line 155 of file Construction.c.
References GetConstructionPart().
Referenced by DestroyConnectedParts().
|
protected |
Definition at line 360 of file Construction.c.
References m_ConstructionParts.
Definition at line 1068 of file Construction.c.
References Vector().
Referenced by IsColliding(), and IsCollidingEx().
Definition at line 1051 of file Construction.c.
References GetConstructionPart(), GetGame(), ConstructionPart::GetMainPartName(), and GetParent().
Referenced by IsColliding(), and IsCollidingEx().
Definition at line 1039 of file Construction.c.
References Math::AbsFloat(), and Vector().
Referenced by GetTriggerExtents(), IsColliding(), and IsCollidingEx().
|
protected |
Definition at line 270 of file Construction.c.
References m_ConstructionParts.
Referenced by AddToConstructedParts(), CanUseToolToBuildPart(), CanUseToolToDismantlePart(), DestroyMaterialsServer(), DropNonUsableMaterialsServer(), ExceptionCheck(), GetCollisionBoxData(), GetConstructionPartToDestroy(), GetConstructionPartToDismantle(), GetMaterialType(), HasConflictPart(), HasMaterials(), HasRequiredPart(), IsColliding(), IsCollidingEx(), IsPartConstructed(), MaterialIsRuined(), ReceiveMaterialsServer(), RemoveFromConstructedParts(), SetLockOnAttachedMaterials(), and TakeMaterialsServer().
|
protected |
Definition at line 265 of file Construction.c.
References m_ConstructionParts.
|
protected |
Definition at line 327 of file Construction.c.
References CanBuildPart(), and m_ConstructionParts.
|
protected |
Definition at line 521 of file Construction.c.
References CanDestroyPart(), and GetConstructionPart().
|
protected |
Definition at line 432 of file Construction.c.
References CanDismantlePart(), and GetConstructionPart().
|
protected |
Definition at line 375 of file Construction.c.
References m_ConstructionParts.
|
protected |
Definition at line 935 of file Construction.c.
References GetConstructionPart(), GetGame(), and GetParent().
Definition at line 511 of file Construction.c.
References GetGame(), and GetParent().
Referenced by UpdateConstructionParts().
Definition at line 1080 of file Construction.c.
References GetCollisionBoxSize().
Referenced by CreateCollisionTrigger().
|
protected |
Definition at line 468 of file Construction.c.
References m_ConstructionParts, and name.
Referenced by DestroyConnectedParts().
Definition at line 414 of file Construction.c.
References GetConstructionPart(), GetGame(), ConstructionPart::GetMainPartName(), GetParent(), and IsPartConstructed().
Referenced by CanBuildPart().
Definition at line 450 of file Construction.c.
References m_ConstructionParts.
Referenced by CanDestroyPart(), and CanDismantlePart().
Definition at line 576 of file Construction.c.
References Math::Floor(), GetConstructionPart(), GetGame(), ConstructionPart::GetMainPartName(), GetParent(), HasMaterialWithQuantityAttached(), Math::Max(), and REPAIR_MATERIAL_PERCENTAGE.
Referenced by CanBuildPart().
Definition at line 615 of file Construction.c.
References GetParent().
Referenced by HasMaterials().
Definition at line 390 of file Construction.c.
References GetConstructionPart(), GetGame(), ConstructionPart::GetMainPartName(), GetParent(), and IsPartConstructed().
Referenced by CanBuildPart().
Definition at line 545 of file Construction.c.
References bsbDebugPrint(), GetParent(), and LogManager::IsBaseBuildingLogEnable().
Referenced by UpdateVisuals().
Definition at line 557 of file Construction.c.
References GetParent().
Referenced by UpdatePhysics().
|
protected |
Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)
Definition at line 34 of file Construction.c.
References UpdateConstructionParts().
|
protected |
Definition at line 220 of file Construction.c.
References bsbDebugPrint(), InitVisuals(), LogManager::IsBaseBuildingLogEnable(), and m_Parent.
Referenced by ItemBase::EEInit().
|
protected |
Definition at line 171 of file Construction.c.
References bsbDebugPrint(), LogManager::IsBaseBuildingLogEnable(), m_ConstructionParts, m_Parent, and ShowConstructionPart().
Referenced by InitBaseState(), and ItemBase::InitBaseState().
Definition at line 949 of file Construction.c.
References GetBoxCenter(), GetCollisionBoxData(), GetCollisionBoxSize(), GetConstructionPart(), CfgGameplayHandler::GetDisableIsCollidingCheck(), GetGame(), GetOrientation(), GetParent(), and Vector().
|
protected |
Collision check for building part.
Definition at line 998 of file Construction.c.
References GetBoxCenter(), GetCollisionBoxData(), GetCollisionBoxSize(), GetConstructionPart(), CfgGameplayHandler::GetDisableIsCollidingCheck(), GetGame(), GetOrientation(), GetParent(), and Vector().
Definition at line 563 of file Construction.c.
References GetConstructionPart().
Referenced by CanBuildPart(), CanDestroyPart(), CanDismantlePart(), BaseBuildingBase::CanDisplayAttachmentCategory(), BaseBuildingBase::CanReceiveAttachment(), HasConflictPart(), and HasRequiredPart().
|
protected |
Definition at line 1142 of file Construction.c.
References ConstructionBoxTrigger::IsColliding(), and m_ConstructionBoxTrigger.
Definition at line 294 of file Construction.c.
References GetConstructionPart(), GetGame(), ConstructionPart::GetMainPartName(), and GetParent().
Referenced by CanBuildPart().
|
protected |
Definition at line 679 of file Construction.c.
References GetConstructionPart(), GetGame(), GetParent(), and StaticConstructionMethods::SpawnConstructionMaterialPiles().
Referenced by DismantlePartServer().
Definition at line 63 of file Construction.c.
References bsbDebugPrint(), GetConstructionPart(), LogManager::IsBaseBuildingLogEnable(), and m_Parent.
Definition at line 845 of file Construction.c.
References bsbDebugPrint(), GetConstructionPart(), GetGame(), ConstructionPart::GetMainPartName(), GetParent(), and LogManager::IsBaseBuildingLogEnable().
|
protected |
Definition at line 539 of file Construction.c.
References bsbDebugPrint(), GetParent(), and LogManager::IsBaseBuildingLogEnable().
Referenced by InitVisuals(), and UpdateVisuals().
Definition at line 552 of file Construction.c.
References GetParent().
Referenced by UpdatePhysics().
Definition at line 626 of file Construction.c.
References Math::Floor(), GetConstructionPart(), GetGame(), ConstructionPart::GetMainPartName(), GetParent(), Math::Max(), and REPAIR_MATERIAL_PERCENTAGE.
Referenced by BuildPartServer().
|
protected |
Definition at line 227 of file Construction.c.
References bsbDebugPrint(), GetGame(), GetParent(), GetRequiredParts(), LogManager::IsBaseBuildingLogEnable(), m_ConstructionParts, and name.
Referenced by Init().
|
protected |
Definition at line 199 of file Construction.c.
References bsbDebugPrint(), HideConstructionPartPhysics(), LogManager::IsBaseBuildingLogEnable(), m_ConstructionParts, m_Parent, and ShowConstructionPartPhysics().
Referenced by ItemBase::EEInit(), ItemBase::OnItemLocationChanged(), ItemBase::Refresh(), and ItemBase::RefreshPhysics().
|
protected |
Definition at line 184 of file Construction.c.
References bsbDebugPrint(), HideConstructionPart(), LogManager::IsBaseBuildingLogEnable(), m_ConstructionParts, m_Parent, and ShowConstructionPart().
Referenced by EEInit(), ItemBase::EEInit(), Plastic_Explosive::OnDisarmed(), ImprovisedExplosive::OnTriggerAttached(), Plastic_Explosive::OnTriggerAttached(), ImprovisedExplosive::OnTriggerDetached(), Plastic_Explosive::OnTriggerDetached(), ImprovisedExplosive::OnVariablesSynchronized(), Plastic_Explosive::OnVariablesSynchronized(), OnVariablesSynchronized(), ItemBase::Refresh(), and Synchronize().
Definition at line 14 of file Construction.c.
|
protected |
Data structure for passing parameters (extendable, modable)
Referenced by CollisionCheckData().
|
protected |
Definition at line 19 of file Construction.c.
Referenced by DestroyDebugCollisionBox(), and DrawDebugCollisionBox().
|
protected |
Definition at line 21 of file Construction.c.
Referenced by CreateCollisionTrigger(), DestroyCollisionTrigger(), and IsTriggerColliding().
|
protected |
Definition at line 15 of file Construction.c.
Referenced by Construction(), GetBaseConstructionPart(), GetConstructionPart(), GetConstructionParts(), GetConstructionPartsToBuild(), GetGateConstructionPart(), GetValidDepenentPartsArray(), HasDependentPart(), InitVisuals(), UpdateConstructionParts(), UpdatePhysics(), and UpdateVisuals().
|
protected |
Definition at line 16 of file Construction.c.
|
protected |
Definition at line 1232 of file Construction.c.
Referenced by CollisionCheckData().
|
protected |
Definition at line 1233 of file Construction.c.
Referenced by CollisionCheckData().
|
protected |
Definition at line 1234 of file Construction.c.
Referenced by CollisionCheckData().
enum ConstructionMaterialType REPAIR_MATERIAL_PERCENTAGE = 0.15 |
Referenced by HasMaterials(), and TakeMaterialsServer().