forked from as3/as3-utils
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDirection.as
More file actions
29 lines (26 loc) · 701 Bytes
/
Direction.as
File metadata and controls
29 lines (26 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package utils.geom
{
/**
* An enumeration of the four cardinal directions.
* Mirrors the directions in Side.
*
* Make a hybrid direction using '|', e.g. <code>var NW:int = NORTH | WEST;</code>
*
* @author Mims Wright
*
* @see utils.geom.Side
*/
public class Direction
{
public static const UP:int = 1;
public static const DOWN:int = 2;
public static const LEFT:int = 4;
public static const RIGHT:int = 8;
public static const NORTH:int = UP;
public static const SOUTH:int = DOWN;
public static const WEST:int = LEFT;
public static const EAST:int = RIGHT;
public static const NONE:int = 0;
public static const ALL:int = UP | DOWN | LEFT | RIGHT;
}
}