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

Method CreateMap

engine/Poseidon/Game/OperMap.cpp:1393–1409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1391}
1392
1393void OperMap::CreateMap(EntityAI* veh, int xMin, int zMin, int xMax, int zMax)
1394{
1395 int mask = MASK_AVOID_OBJECTS | MASK_PREFER_ROADS | MASK_USE_BUFFER;
1396
1397 int i, j;
1398 for (i = xMin; i <= xMax; i++)
1399 {
1400 for (j = zMin; j <= zMax; j++)
1401 {
1402 if (!InRange(i, j))
1403 {
1404 continue;
1405 }
1406 CreateField(i, j, mask, veh);
1407 }
1408 }
1409}
1410
1411bool OperMap::IsSimplePath(AIUnit* unit, int xs, int zs, int xe, int ze)
1412{

Callers 4

IsSimplePathMethod · 0.80
CheckEmptyMethod · 0.80
FindNearestEmptyMethod · 0.80
CreateNoRoadPathMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected