MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / getBigWall

Method getBigWall

src/Ruleset/MapData.cpp:114–118  ·  view source on GitHub ↗

* Gets whether this is a big wall, which blocks all surrounding paths. * * Return value key: * 0: not a bigWall * 1: regular bigWall * 2: allows movement in ne/sw direction * 3: allows movement in nw/se direction * 4: acts as a west wall * 5: acts as a north wall * 6: acts as an east wall * 7: acts as a south wall * 8: acts as a south and east wall. * @return An integer representing wh

Source from the content-addressed store, hash-verified

112 * @return An integer representing what kind of bigwall this is.
113 */
114int MapData::getBigWall() const
115{
116 if (_terrainLevel < 0) return 0; // this is a hack for eg. Skyranger Ramps
117 return _bigWall;
118}
119
120/**
121 * Gets whether this is a normal door.

Callers 6

getTUCostMethod · 0.80
isBigWallMethod · 0.80
getFootstepSoundMethod · 0.80
drawTerrainMethod · 0.80
isBlockedMethod · 0.80
blockageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected