MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / getCanStand

Method getCanStand

game/state/tilemap/tile.cpp:105–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105bool Tile::getCanStand(bool large)
106{
107 if (large)
108 {
109 if (position.x < 1 || position.y < 1)
110 {
111 LogError(
112 "Trying to get standing ability for a large unit when it can't fit! %d, %d, %d",
113 position.x, position.y, position.z);
114 return false;
115 }
116 if (canStand || map.getTile(position.x - 1, position.y, position.z)->canStand ||
117 map.getTile(position.x, position.y - 1, position.z)->canStand ||
118 map.getTile(position.x - 1, position.y - 1, position.z)->canStand)
119 {
120 return true;
121 }
122 }
123 else
124 {
125 if (canStand)
126 {
127 return true;
128 }
129 }
130 return false;
131}
132
133bool Tile::getHasExit(bool large)
134{

Callers 11

initialMapCheckMethod · 0.80
initialUnitSpawnMethod · 0.80
findLosBlockCenterFunction · 0.80
canProneMethod · 0.80
canKneelMethod · 0.80
updateIdlingMethod · 0.80
startMethod · 0.80
setPathToMethod · 0.80
advanceAlongPathMethod · 0.80
updatePathPreviewMethod · 0.80

Calls 1

getTileMethod · 0.80

Tested by

no test coverage detected