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

Method getSolidGround

game/state/tilemap/tile.cpp:78–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76sp<BattleMapPart> Tile::getItemSupportingObject() { return supportProviderForItems; }
77
78bool Tile::getSolidGround(bool large)
79{
80 if (large)
81 {
82 if (position.x < 1 || position.y < 1)
83 {
84 LogError("Trying to get solid ground for a large unit when it can't fit! %d, %d, %d",
85 position.x, position.y, position.z);
86 return false;
87 }
88 if (solidGround || map.getTile(position.x - 1, position.y, position.z)->solidGround ||
89 map.getTile(position.x, position.y - 1, position.z)->solidGround ||
90 map.getTile(position.x - 1, position.y - 1, position.z)->solidGround)
91 {
92 return true;
93 }
94 }
95 else
96 {
97 if (solidGround)
98 {
99 return true;
100 }
101 }
102 return false;
103}
104
105bool Tile::getCanStand(bool large)
106{

Callers

nothing calls this directly

Calls 1

getTileMethod · 0.80

Tested by

no test coverage detected