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

Function wop

MicropolisCore/src/CellEngine/src/cellengine.cpp:5375–5388  ·  view source on GitHub ↗

Return 1 if well pointed by an excited ordinary transmission state, else returns 0. */

Source from the content-addressed store, hash-verified

5373/* Return 1 if well pointed by an excited ordinary transmission state,
5374 else returns 0. */
5375int wop(Byte state, Byte right, Byte up, Byte left, Byte down)
5376{
5377 state &= DM;
5378 return (
5379 ((right == OLX) &&
5380 (state != RD)) ||
5381 ((up == ODX) &&
5382 (state != UD)) ||
5383 ((left == ORX) &&
5384 (state != LD)) ||
5385 ((down == OUX) &&
5386 (state != DD))
5387 );
5388}
5389
5390
5391/* Return 1 if well pointed by an excited special transmission state,

Callers 1

n_jvn29Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected