summaryrefslogtreecommitdiffstats
path: root/src/model/Direction.ts
blob: 7f925881165b445704890495b1bb5a4dd1ef3a4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'use strict';


export enum Direction {
        North,
        East,
        South,
        West
};

export module Direction {
        export function reverse(r: Direction): Direction { return (r+2) % 4; }
}

export default Direction;