MCPcopy Create free account
hub / github.com/SimHacker/micropolis / vulnerable

Method vulnerable

MicropolisCore/src/MicropolisEngine/src/disasters.cpp:320–329  ·  view source on GitHub ↗

* Is tile vulnerable for an earthquake? * @param tem Tile data * @return Function returns \c true if tile is vulnerable, and \c false if not */

Source from the content-addressed store, hash-verified

318 * @return Function returns \c true if tile is vulnerable, and \c false if not
319 */
320bool Micropolis::vulnerable(int tem)
321{
322 int tem2 = tem & LOMASK;
323
324 if (tem2 < RESBASE || tem2 > LASTZONE || (tem & ZONEBIT)) {
325 return false;
326 }
327
328 return true;
329}
330
331
332/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected