MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / Forest

Method Forest

engine/Poseidon/World/Scene/ObjectClasses.cpp:380–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378DEFINE_FAST_ALLOCATOR(Forest)
379
380Forest::Forest(BuildingType* type, int id) : base(type->GetShape(), id)
381{
382 _type = type;
383 _type->VehicleAddRef();
384
385#if FOREST_PATHS
386 int n = NPos();
387 _locks.Resize(n);
388 for (int i = 0; i < n; i++)
389 _locks[i] = 0;
390#endif
391}
392
393Forest::~Forest()
394{

Callers

nothing calls this directly

Calls 3

VehicleAddRefMethod · 0.80
GetShapeMethod · 0.45
ResizeMethod · 0.45

Tested by

no test coverage detected