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

Method CountRules

MicropolisCore/src/CellEngine/src/cellengine.cpp:932–942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

930
931
932int CellEngine::CountRules()
933{
934 if (ruleCount < 0) {
935 ruleCount = 0;
936 while (ruleTables[ruleCount << 1] != NULL) {
937 ruleCount++;
938 } // while
939 } // if
940
941 return ruleCount;
942}
943
944
945const char *CellEngine::GetRuleName(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected