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

Enum Direction2

MicropolisCore/src/MicropolisEngine/src/position.h:72–85  ·  view source on GitHub ↗

Another direction enumeration class, with 8 possible directions. * @todo Eliminate #Direction. * @todo After eliminating #Direction, rename this enum to Direction. */

Source from the content-addressed store, hash-verified

70 * @todo After eliminating #Direction, rename this enum to Direction.
71 */
72enum Direction2 {
73 DIR2_INVALID, ///< Invalid direction.
74 DIR2_NORTH, ///< Direction pointing north.
75 DIR2_NORTH_EAST, ///< Direction pointing north-east.
76 DIR2_EAST, ///< Direction pointing east.
77 DIR2_SOUTH_EAST, ///< Direction pointing south-east.
78 DIR2_SOUTH, ///< Direction pointing south.
79 DIR2_SOUTH_WEST, ///< Direction pointing south-west.
80 DIR2_WEST, ///< Direction pointing west.
81 DIR2_NORTH_WEST, ///< Direction pointing north-west.
82
83 DIR2_BEGIN = DIR2_NORTH, ///< First valid direction.
84 DIR2_END = DIR2_NORTH_WEST + 1, ///< End-condition for directions
85};
86
87/**
88 * Increment the direction by 45 degrees.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected