PF_API 0.52

Code/Libs/PF_LIB/PFConsts.h

Go to the documentation of this file.
00001 
00002 //    Copyright (C) 2004-2007 Dylan Blair
00003 //
00004 //    email: dblair@alumni.cs.utexas.edu
00005 //
00006 //    This library is free software; you can redistribute it and/or
00007 //    modify it under the terms of the GNU Lesser General Public
00008 //    License as published by the Free Software Foundation; either
00009 //    version 2.1 of the License, or (at your option) any later version.
00010 //
00011 //    This library is distributed in the hope that it will be useful,
00012 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 //    Lesser General Public License for more details.
00015 //
00016 //    You should have received a copy of the GNU Lesser General Public
00017 //    License along with this library; if not, write to the Free Software
00018 //    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020 
00021 #ifndef PFCONSTS_H
00022 #define PFCONSTS_H
00023 
00028 namespace OpenSkyNet {
00031     namespace PF {
00033         enum RESULT { FAILURE, DRIVER_NOT_IN_RANGE, TARGET_NOT_IN_RANGE, PF_UNFINISHED, PATH_NOT_FOUND, SUCCESS };
00034 
00035         inline bool isSuccessful(RESULT result_) { return result_ >= SUCCESS; }
00036 
00038         const double MAX_SECONDS_WITH_SAME_BIN = 5.0;
00039 
00044         const Utils::uint MAX_BFS_PATH_STEPS = 19;
00045 
00048         const float MAX_DESIRED_TARGET_DISTANCE = 5.0f;
00049     }
00050 }
00051 
00052 #endif //PFCONSTS_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines