From 5124b68339f702ff614e37f2b1eb5f2bd2e54d1a Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 26 Jun 2002 02:37:18 +0000 Subject: [PATCH] Added fine compass directions (NNW, ENE, etc.). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1544 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/util/DirectionCodes.java | 31 +++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/src/java/com/threerings/util/DirectionCodes.java b/src/java/com/threerings/util/DirectionCodes.java index 6133bc75d..5fed7fb73 100644 --- a/src/java/com/threerings/util/DirectionCodes.java +++ b/src/java/com/threerings/util/DirectionCodes.java @@ -1,5 +1,5 @@ // -// $Id: DirectionCodes.java,v 1.2 2002/03/26 01:31:15 shaper Exp $ +// $Id: DirectionCodes.java,v 1.3 2002/06/26 02:37:18 mdb Exp $ package com.threerings.util; @@ -54,6 +54,33 @@ public interface DirectionCodes /** A direction code indicating south. */ public static final int SOUTH = 7; - /** The total number of directions. */ + /** The number of basic compass directions. */ public static final int DIRECTION_COUNT = 8; + + /** A direction code indicating west by southwest. */ + public static final int WESTSOUTHWEST = 8; + + /** A direction code indicating west by northwest. */ + public static final int WESTNORTHWEST = 9; + + /** A direction code indicating north by northwest. */ + public static final int NORTHNORTHWEST = 10; + + /** A direction code indicating north by northeast. */ + public static final int NORTHNORTHEAST = 11; + + /** A direction code indicating east by northeast. */ + public static final int EASTNORTHEAST = 12; + + /** A direction code indicating east by southeast. */ + public static final int EASTSOUTHEAST = 13; + + /** A direction code indicating south by southeast. */ + public static final int SOUTHSOUTHEAST = 14; + + /** A direction code indicating south by southwest. */ + public static final int SOUTHSOUTHWEST = 15; + + /** The number of fine compass directions. */ + public static final int FINE_DIRECTION_COUNT = 16; }