The OpenD Programming Language

Dir

Represents the four basic directions on a grid. You can conveniently use it like:

Point pt = Point(5, 3);
pt += Dir.N; // moves up

The opposite direction btw can be gotten with pt * -1.

Values

ValueMeaning
NPoint(0, -1)
SPoint(0, 1)
WPoint(-1, 0)
EPoint(1, 0)

Meta

History

Added May 3, 2020