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

Method Init

engine/Poseidon/IO/LockCache.cpp:315–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315void LockCache::Init(Landscape* land)
316{
317 int fieldsRange = land->GetLandRange() / BigFieldSize;
318
319 _lockFields.Dim(fieldsRange, fieldsRange);
320 for (int i = 0; i < fieldsRange; i++)
321 {
322 for (int j = 0; j < fieldsRange; j++)
323 {
324 _lockFields(j, i) = 0;
325 }
326 }
327}
328
329void LockCache::Destroy()
330{

Callers 1

GetOperFieldMethod · 0.45

Calls 2

GetLandRangeMethod · 0.80
DimMethod · 0.45

Tested by

no test coverage detected