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

Function increment90

MicropolisCore/src/MicropolisEngine/src/position.h:103–106  ·  view source on GitHub ↗

* Increment the direction by 90 degrees. * @param dir Direction to rotate. * @return Rotated direction, possibly >= DIR2_END. */

Source from the content-addressed store, hash-verified

101 * @return Rotated direction, possibly >= DIR2_END.
102 */
103static inline Direction2 increment90(Direction2 dir)
104{
105 return increment45(dir, 2);
106}
107
108/**
109 * Increment the direction by 45 degrees.

Callers 2

smoothWaterMethod · 0.85
doPowerScanMethod · 0.85

Calls 1

increment45Function · 0.85

Tested by

no test coverage detected