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

Method IsEmpty

engine/Poseidon/IO/LockCache.cpp:198–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198bool LockCache::IsEmpty() const
199{
200 bool empty = true;
201 const int rngX = _lockFields.GetXRange();
202 const int rngZ = _lockFields.GetYRange();
203 for (int i = 0; i < rngZ; i++)
204 {
205 for (int j = 0; j < rngX; j++)
206 {
207 LockField* p = _lockFields(j, i);
208 if (p)
209 {
210 empty = false;
211 LOG_DEBUG(Core, "Lock field {},{} not empty", i, j);
212 }
213 }
214 }
215 return empty;
216}
217
218LockField* LockCache::GetLockField(int x, int z)
219{

Callers 2

IssueMoveMethod · 0.45
IssueWatchMethod · 0.45

Calls 2

GetXRangeMethod · 0.80
GetYRangeMethod · 0.80

Tested by

no test coverage detected