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

Function Wall

MicropolisCore/src/pyMicropolis/cellEngine/cellrulecompiler.py:241–245  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

239 (state['cw0'] == state['ccw0']) and \
240 (state['c0'] != state['cw0'])
241 def Wall(state):
242 return state['c1'] or \
243 state['opp1'] or \
244 state['cw1'] or \
245 state['ccw1']
246 plane1 = 2 * state['c1']
247 if Wall(state) or Collision(state):
248 return state['c0'] + plane1

Callers 2

GasRuleFunction · 0.85
DendriteRuleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected