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

Method n_brain

MicropolisCore/src/CellEngine/src/cellengine.cpp:1817–1834  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1815
1816
1817void CellEngine::n_brain()
1818{
1819
1820#define BRAIN ( \
1821 (((c & 0x03) == 0) \
1822 ? ((SUM8REG(1) == 2) ? 1 : 0) \
1823 : 0) | \
1824 ((c << 1) & 0xfe))
1825
1826 if (inflation) {
1827 int last = 0;
1828 int heat = 0;
1829
1830 CAM_MASKED_REG_HEAT6_LOOP(BRAIN)
1831 } else {
1832 CAM_MASKED_REG_LOOP(BRAIN)
1833 }
1834}
1835
1836
1837void CellEngine::n_heat()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected