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

Method tally

MicropolisCore/src/MicropolisEngine/src/tool.cpp:527–532  ·  view source on GitHub ↗

* Can the tile be auto-bulldozed?. * @param tileValue Value of the tile. * @return \c True if the tile can be auto-bulldozed, else \c false. */

Source from the content-addressed store, hash-verified

525 * @return \c True if the tile can be auto-bulldozed, else \c false.
526 */
527bool Micropolis::tally(short tileValue)
528{
529 return (tileValue >= FIRSTRIVEDGE && tileValue <= LASTRUBBLE) ||
530 (tileValue >= POWERBASE + 2 && tileValue <= POWERBASE + 12) ||
531 (tileValue >= TINYEXP && tileValue <= LASTTINYEXP + 2);
532}
533
534
535/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected