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

Method updateTileVisionBlock

game/state/battle/battlehazard.cpp:523–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521bool BattleHazard::updateTB(GameState &state) { return updateInner(state, TICKS_PER_TURN); }
522
523void BattleHazard::updateTileVisionBlock(GameState &state)
524{
525 int visionBlock =
526 damageType->effectType == DamageType::EffectType::Smoke ? (lifetime - age) / 3 : 0;
527 if (tileObject->getOwningTile()->updateVisionBlockage(visionBlock))
528 {
529 state.current_battle->queueVisionRefresh(position);
530 }
531}
532
533} // namespace OpenApoc

Callers 2

initBattleMethod · 0.80
placeHazardMethod · 0.80

Calls 3

updateVisionBlockageMethod · 0.80
getOwningTileMethod · 0.80
queueVisionRefreshMethod · 0.80

Tested by

no test coverage detected