Home
last modified time | relevance | path

Searched refs:safeTiles (Results 1 – 2 of 2) sorted by relevance

/dports/games/openra/OpenRA-release-20200503/OpenRA.Mods.Common/Traits/
H A DDamagedByTerrain.cs65 var safeTiles = 0; in INotifyAddedToWorld.AddedToWorld()
71 safeTiles++; in INotifyAddedToWorld.AddedToWorld()
78 …o.DamageThreshold * (long)health.MaxHP + (100 - Info.DamageThreshold) * safeTiles * (long)health.M… in INotifyAddedToWorld.AddedToWorld()
/dports/games/barony/Barony-3.3.7/src/
H A Dactplayer.cpp2615 …std::vector<std::pair<std::pair<int, int>, real_t>> safeTiles; // pair of coordinates, with a dist… in actPlayer() local
2636 safeTiles.push_back(std::make_pair(std::make_pair(u, v), dist)); in actPlayer()
2644 if ( !safeTiles.empty() ) in actPlayer()
2649 for ( auto it = safeTiles.begin(); it != safeTiles.end(); ++it ) in actPlayer()
2653 lowestIndex = it - safeTiles.begin(); in actPlayer()
2658 int newx = safeTiles.at(lowestIndex).first.first; in actPlayer()
2659 int newy = safeTiles.at(lowestIndex).first.second; in actPlayer()
2714 else if ( safeTiles.empty() ) in actPlayer()