dir.h

Go to the documentation of this file.
00001 /*
00002  *  dir.h - Directions.
00003  *
00004  *  Copyright (C) 1998-1999  Jeffrey S. Freedman
00005  *  Copyright (C) 2000-2001  The Exult Team
00006  *
00007  *  This program is free software; you can redistribute it and/or modify
00008  *  it under the terms of the GNU General Public License as published by
00009  *  the Free Software Foundation; either version 2 of the License, or
00010  *  (at your option) any later version.
00011  *
00012  *  This program is distributed in the hope that it will be useful,
00013  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  *  GNU General Public License for more details.
00016  *
00017  *  You should have received a copy of the GNU General Public License
00018  *  along with this program; if not, write to the Free Software
00019  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00020  */
00021 
00022 #ifndef DIR_H
00023 #define DIR_H 1
00024 
00025 /*
00026  *  Directions:
00027  */
00028 enum Direction
00029   {
00030   north = 0,
00031   northeast = 1,
00032   east = 2,
00033   southeast = 3,
00034   south = 4,
00035   southwest = 5,
00036   west = 6,
00037   northwest = 7
00038   };
00039 
00040 Direction Get_direction
00041   (
00042   int deltay,
00043   int deltax
00044   );
00045 Direction Get_direction4
00046   (
00047   int deltay,
00048   int deltax
00049   );
00050 
00051 int Get_direction16
00052   (
00053   int deltay,
00054   int deltax
00055   );
00056 
00057 #endif

Generated on Mon Jul 9 14:42:45 2007 for ExultEngine by  doxygen 1.5.1